Using ldapsearch to find DNS-DHCP locator objects

  • 7010886
  • 08-Oct-2012
  • 17-Dec-2013

Environment

Open Enterprise Server 11 (OES11)
Open Enterprise Server 11SP1 (OES11SP1)
Novell DNS
Domain Services for Windows
DSfW

Situation

Ho To find DNS-DHCP locator objects
Not all Zones are displayed in the DNS/DHCP Management Console
How many locator objects are in the tree?
How to discover where a DNS-DHCP locator object is in the tree.

Resolution

The objectclass for a DNS-DHCP locator object is DNIP:locator dn

Example of a simple anonymous ldapsearch for all locator objects
ldapsearch -x -b “” -s sub objectClass=dNIPlocator

Example of secure simple bind ldapsearch
In this example user is admin.novell and the base container is o=novell
/usr/bin/ldapsearch -x -H ldaps:// -D cn=admin,o=novell -W -b "o=novell" -s sub "(objectclass=dnip:locator)" dn

Example of a DSfW IPCEXTERNAL bind ldapsearch on a DSfW server
Be sure to export the LAPCONF=/etc/opt/novell/xad/openldap/ldap.conf before running the search
/usr/bin/ldapsearch -Y EXTERNAL -b "" -s sub "(objectclass=dnip:locator)" dn

-x is for simple binds
-H ldaps:// is the secure bind
-D is the bind user name and context
-W prompts for password
-b is the base
-s is the scope, use sub to do a subtree seach
"(objectclass=dnip:locator)" is the filter
dn means only the dn will be returned
Add -LLL to remove search results additional info that is displayed

For DSfW the -Y EXTERNAL is using the IPCEXTERNAL bind

Additional Information

iManager can also be used.
In the View Objects | Search tab | set the context to [root], place a check mark in Search sub-containers, place a * for name and for Type select Locator.  Press Search and all DNS DHCP Locator objects will be returned.