How to find the DSFW domain name

  • 7006307
  • 18-Jun-2010
  • 27-Apr-2012

Environment

Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 2
Novell Domain Services for Windows
DSFW

Situation

How do I know what the DSFW domain name is besides looking in the /etc/hosts file?

Resolution


Here are two ways to tell the DSFW domain name
  1. Look in the /etc/opt/novell/xad/xad.ini for the Root Domain name.  An easy way to do this is cat /etc/opt/novell/xad/xad.ini | grep -i Root\ Domain
  2. Do a ldapsearch for objectClass=DomainDNS and the defaultNamingContext attirbute.
For the ldapsearch you can reference TID 7003070 for doing ldapsearches for DSFW. 
You can export the LDAPCONF before doing the ldapsearch as in KB 7003070 suggests or run the following command:

LDAPCONF=/etc/opt/novell/xad/openldap/ldap.conf ldapsearch -Y EXTERNAL -b "" -s base objectClass=DomainDNS defaultNamingContext

Example of what is returned for domain named novell.com that is mapped to o=novell

# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: objectClass=DomainDNS
# requesting: defaultNamingContext
#

#
dn:
defaultNamingContext: DC=novell,DC=com

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1