How do I get a Java program to listen for LDAP queries?
From: David (junk1_at_davidbevan.co.uk)
Date: 10/15/04
- Next message: Bryce: "Re: Am I the only one who questions JSTL, Struts Tags, XSL Tags?"
- Previous message: Chris Smith: "Re: Compiler trick"
- Next in thread: Will Hartung: "Re: How do I get a Java program to listen for LDAP queries?"
- Reply: Will Hartung: "Re: How do I get a Java program to listen for LDAP queries?"
- Reply: Carsten Zerbst: "Re: How do I get a Java program to listen for LDAP queries?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Bryce: "Re: Am I the only one who questions JSTL, Struts Tags, XSL Tags?"
- Previous message: Chris Smith: "Re: Compiler trick"
- Next in thread: Will Hartung: "Re: How do I get a Java program to listen for LDAP queries?"
- Reply: Will Hartung: "Re: How do I get a Java program to listen for LDAP queries?"
- Reply: Carsten Zerbst: "Re: How do I get a Java program to listen for LDAP queries?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|