Thursday, May 03, 2007

Search OID For a DN From a Servlet

Accomplished step 2: searching Oracle Internet Directory for the Distinguished Name taken from the client certificate. I studied the code in the Sample Application Demonstrating User Authentication using Oracle Internet Directory Java API . This is a short sample that loads sample users into OID and then searches for a user using the javax.naming.directory and oracle.ldap.util APIs. Although the sample is run from the command prompt, I was able to adapt it to run in my test servlet. I can now find a user by their DN.

Next - if a user isn't found in OID, prompt them for a username and use it to search a table in the Oracle 10g backend database.

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home