My Oracle Support Banner

OUD - Need to Use ldapsearch Command from OUD Distribution (Doc ID 1374393.1)

Last updated on SEPTEMBER 01, 2019

Applies to:

Oracle Unified Directory - Version and later
Information in this document applies to any platform.


Problem Description:

The OS ldapsearch command can create  some confusion, as it might work in somes cases, but not when connecting to the admin port.

 which ldapsearch

<basedir>/oud/Oracle/Middeware/<OUD_INSTANCE>/OUD/bin# ldapsearch -p 2221 -D "cn=Directory Manager" -w PASSWORD -b "dc=example,dc=com" uid=user.0

dn: uid=user.0,ou=People,dc=example,dc=com
uid: user.0
description: This is the description for Aaccf Amar.
givenName: Aaccf
objectClass: person
objectClass: organizationalperson
objectClass: inetorgperson
objectClass: top
cn: Aaccf Amar
sn: Amar

 <basedir>/oud/Oracle/Middeware/ds_2221/OUD/bin/ldapsearch  -p 2224 -D "cn=Directory Manager" -w PASSWORD -b  "cn=config" objectclass=* ldap_simple_bind: Can't contact LDAP server


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
 Problem Description:
 Documentation pointer:

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