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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -