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

Teradata Vantage™ - Advanced SQL Engine Security Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Security
Publication ID
B035-1100-171K
Language
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.
-x
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 "".
dir_name:port
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.
configurationNamingContext
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.