How To Compare Userpassword Attribute Using DBMS_LDAP.compare_s API routine

(Doc ID 820206.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Internet Directory - Version: 9.0.4 to 10.1.4
Information in this document applies to any platform.


This note provides an example of how to programmatically compare the userpassword attribute of a given user DN using the dbms_ldap.compare_s PL/SQL function.

1. There is very little error handling in the example. It is a very simple code sample used to illustrate the necessary calls to compare userpassword.
2. The ldap server name, port, authentication value, etc., have been hard coded into the program. These will need to be changed before compiling/running the provided code on another system.


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