My Oracle Support Banner

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.


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

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.