Finding the Root Domain Name - Advanced SQL Engine - Teradata Database

Security Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2022-02-15
dita:mapPath
ppz1593203596223.ditamap
dita:ditavalPath
wrg1590696035526.ditaval
dita:id
B035-1100
lifecycle
previous
Product Category
Teradata Vantage™

All Active Directory servers in a forest publish the rootDomainNamingContext attribute in their RootDSE object. This attribute contains the DN of the GC naming context. It also corresponds to the DNS domain name where the GC registers itself.

  1. Use the ldapsearch utility to obtain the DNS domain name:
    ldapsearch -x -b "" -s base -H ldap://dir_name rootDomainNamingContext

    The meanings of -x, -b, “”, -s base, and -H:// are similar to those shown in Locating the Configuration Naming Context.

    dir_name is the DNS name of a directory in the root domain.

    The ldapsearch command produces output similar to:

    # extended LDIF
    #
    # LDAPv3
    # base <> with scope base
    # filter: (objectclass=*)
    # requesting: rootDomainNamingContext
    #
    #
    dn:
    rootDomainNamingContext: DC=ROOTDOMAIN,DC=COM
    
    # search result
    search: 2
    result: 0 Success
    
    # numResponses: 2
    # numEntries: 1

    where the rootDomainNamingContext is DC=ROOTDOMAIN,DC=COM.

  2. You can derive the DNS domain name from the value of the rootDomainNamingContext by removing the DC=, resulting in the DNS domain name ROOTDOMAIN.COM.
    Since domain names are not case sensitive, you can use the name rootdomain.com, where required, for the remaining tasks in this procedure.