17.10 - Locating the Configuration Naming Context - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Advanced SQL Engine Security Administration

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Publication ID
English (United States)

You can access site information for a domain using the configuration naming context for the domain. The RootDSE object for each directory in the domain contains a configurationNamingContext attribute, with a CN value that is the naming context.

To find the configurationNamingContext, run the ldapsearch utility from the Vantage command prompt, using the DNS name of any directory server in the domain:

ldapsearch -x -b "" -s base -H ldap://dir_name:port  configurationNamingContext
The preceding ldapsearch command uses the -H ldap scheme, which usually requires only an anonymous bind, that is, it does not use credentials to authenticate the user executing the command.
Specifies simple binding for the anonymous authentication of the user that executes the command.
-b ""
Specifies the base of the search, in this case the default base "".
The DNS name of a directory server in the domain and the server port designation. If no port is specified, ldapsearch uses the default port for the scheme. See LdapServerName.
Identifies the object that the command locates.

The command produces output similar to:

# extended LDIF
# LDAPv3
# base <> with scope base
# filter: (objectclass=*)
# requesting: configurationNamingContext
dn: configurationNamingContext: CN=Configuration,DC=DOMAIN1,DC=COM
# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

where CN=Configuration,DC=DOMAIN1,DC=COMis the distinguished name that you must use to construct a search base in Locating the Site Objects in a Domain.