c# - explaining the parts of the ldap string "LDAP://DC=amrs,DC=win,DC=ml,dc=COM" -
can explain makeup of ldap string parts.
the 1 have is:
string strsql = "select mail 'ldap://dc=amrs,dc=win,dc=ml,dc=com' samaccountname = '" + username.replace(@"amrs\", "") + "'";
this gets email particular username. need other info ldap query , fail setting correct , have no clue values in ldap settings. "ldap://dc=amrs,dc=win,dc=ml,dc=com"
can explain me please?
the dc=
prefix in ldap string stands domain component (dc). these parts make domain of ldap server. fixed , need used object on server.
in "dns style", read: (something).amrs.win.ml.com
(e.g. server name, machine name etc.)
richard mueller has great post explaining commonly found prefixes in ldap bind strings - stuff dc=
, ou=
(organizational unit) or cn=
(common name).
Comments
Post a Comment