DBMS_LDAP Example of LDAP Authentication
(Doc ID 1350152.1)
Last updated on AUGUST 30, 2023
Applies to:
Oracle Internet Directory - Version 9.0.4.3 and laterInformation in this document applies to any platform.
Goal
This note provides an example of using DBMS_LDAP to authenticate to an OID and an Microsoft (MS) Active Directory (AD) server.
Notes:
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= as the rdn. 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=<COMPANY>,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)
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |