We have an application which connects to an Active Directory (MS) using LDAP protocol.
We give usually the following parameters:
ldapUrl = ldap://myserver.mydomain.ext:389
ldapBaseDn = OU=DPT,DC=mydomain,DC=org
ldapBindDn = CN=ldapuser,OU=Service Account,DC=mydomain,DC=org
ldapBindPwd = thepassword
Some people in our organisation says that the hostname (myserver) is not mandatory anymore and the url could be defined like this:
ldapUrl = ldap://mydomain.ext/
... and the domain controller will find automatically find which LDAP (AD) server to use (it is in a clustered environment)
I know the port is not mandatory as the 389 is the default port for LDAP protocol, but I never heard that the server is optional as well.
Can somebody confirm it is correct or not and if it is, point me to an article (because yes, I tried to google it, but did not find anything useful).
I guess if that notation is supported it is not always the case for all (LDAP) clients and perhaps it is only a Microsoft shortcut.