ogun
ogun

Reputation: 1334

Do I have to use domain controller name in LDAP path?

We are using some LDAP queries in our company. Our queries produced an error and did not return any result yesterday. After realizing that we started to try to solve this problem and found something interesting. We use LDAP path like this for our queries (this style produced an error: KRB_AP_ERR_MODIFIED):

LDAP://xxx.yyy.net.tr/DC=xxx,DC=yyy,DC=net,DC=tr

After we changed the LDAP path as shown below, our queries started to work correctly:

LDAP://DC=xxx,DC=yyy,DC=net,DC=tr

What is the difference between two LDAP paths and why the first one does not work sometimes?

Thanks.

Upvotes: 2

Views: 1992

Answers (1)

user207421
user207421

Reputation: 310893

The difference is that the second form uses 'localhost' as the host name, with the effect of curing the problem noted here. But surely there are three slashes before the DN, not two?

Upvotes: 1

Related Questions