DBMS_LDAP Example of LDAP Authentication
Last updated on MARCH 08, 2017
Applies to:Oracle Internet Directory - Version 188.8.131.52 to 184.108.40.206.0 [Release 10gR1 to 11g]
Information in this document applies to any platform.
***Checked for relevance on 30-July-2013***
This note provides an example of using DBMS_LDAP to authenticate to an OID and an Active Directory server.
1. There is very little error handling in either of the code examples. These are very simple code samples that are used to illustrate the necessary calls to authenticate a user.
2. The ldap server name, port, dn and authentication realm values have also been hard coded into the program. For example, the dn is coded as cn=, if you wish to test this against a SunOne Iplanet server then this needs to be changed to uid=. The realm has been coded to 'cn=users,dc=mycompany,dc=com'. These values will need to be changed before compiling/running the provided code on another system.
3. Support for DBMS_LDAP against a 3rd party directory will not be supported unless/until the problem can be reproduced in an OID environment (see note:215532.1)
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms