Jack
Jack

Reputation: 7557

What is the domain name in this LDAP connection string?

I am a beginner in LDAP. Could anybody please tell me what is the domain name in this LDAP connection string:

connectionString="LDAP://AD/dc=Demo, dc=Local"

whether it is AD or Demo or Local?

Upvotes: 0

Views: 2932

Answers (1)

Dai
Dai

Reputation: 155433

dc means "domain component", and are read from most-to-least specific order, so the DNS domain name is "demo.local".

"AD" is the hostname of the LDAP server to connect to.

Other LDAP path components like ou and cn refer to containers and objects in the directory hierarchy, so ldap://domainController/cn=Foobar,ou=Users,dc=domain,dc=local refers to an object called "Foobar" inside a container called "Users" within a directory for the domain name "domain.local"

Upvotes: 5

Related Questions