How do I get a Java program to listen for LDAP queries?

From: David (junk1_at_davidbevan.co.uk)
Date: 10/15/04


Date: 15 Oct 2004 07:54:42 -0700

I need to write a java class that can recieve and process LDAP queries
and would appreciate some help.

...the reason I need to do this is that several of our applications
rely on user/password & group info that is all stored in DB2 (ie is a
proprietry legacy user directory).

We want our new apps to use J2EE security in which case the server
will try and query an LDAP server to authenticate/authorize etc. But
since the user info is in DB2 what I would like to try and do is write
some kind of bridge between LDAP and this backend data structure.

ie a class that is listening for an LDAP query that says "Is the
password for 'Bill' equal to 'monday'?" and turn that into a series of
SQL statements to look up and compare the password for Bill in the DB2
tables and return an LDAP 'Yes'/'No'

...and likewise for "Is 'Bill' in the 'managers' group?"

The DB2 bit of it is easy, but im not sure how to get a Java class to
listen to a certain port?

...is this allowed in Java? or is it prevented for security reasons?

Any help much appreciated!

David Bevan

http://www.davidbevan.co.uk



Relevant Pages

  • Active Directory Lookups using Java JNDI
    ... We use a custom e-mail distribution system that does an ... Java class with a JNDI context to get a users "e-mail" ... able to get this LDAP query ...
    (microsoft.public.exchange.connectivity)
  • LDAP and DBMS was Cheryl
    ... as we run Adabas and no DB2. ... I'd really like to do LDAP, but it requires DB2 to be useful. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • re: z/OS LDAP (was: Cheryl)
    ... I'd really like to do LDAP, but it requires DB2 to be useful. ... IBM intends to deliver a new LDAP server for z/OS designed to improve performance, scalability, auditability, availability, and ease of use. ...
    (bit.listserv.ibm-main)
  • DB2 LDAP queries
    ... the LPARs that we are running AIX 5.3 and DB2 ESE (with ldap ... authentication setup) we are seeing excessive queries to ldap for the ... DB2 accounts. ... just user accounts which are then su'd to the db2 accounts for admin ...
    (comp.unix.aix)
  • Re: Servers dependent on Active Directory
    ... I'm happy with the infrastructure too. ... appliance has the IP address of a DC hard coded to do LDAP lookups. ... and you just don't understand what those reason were just yet. ...
    (microsoft.public.windows.server.active_directory)