OUD - Need To Use Ldapsearch From OUD Distribution (Doc ID 1374393.1)

Last updated on AUGUST 24, 2017

Applies to:

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

Goal

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
/usr/bin/ldapsearch

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

dn: uid=user.0,ou=People,dc=example,dc=com
postalAddress: Aaccf Amar$01251 Chestnut Street$Panama City, DE  50369
postalCode: 50369
title: PDG
uid: user.0
description: This is the description for Aaccf Amar.
userPassword: {SSHA}<ENCRYPTED PASSWORD>
employeeNumber: 0
initials: ASA
givenName: Aaccf
objectClass: person
objectClass: organizationalperson
objectClass: inetorgperson
objectClass: top
pager: +1 779 041 6341
mobile: +1 010 154 3228
cn: Aaccf Amar
telephoneNumber: +1 685 622 6202
sn: Amar
street: 01251 Chestnut Street
homePhone: +1 225 216 5900
l: Panama City
mail: user.0@maildomain.net
st: DE
displayName: Amar Aaccf

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

Solution

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