D
David
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
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