Explaining parts of the ldap line "LDAP: // DC = amrs, DC = win, DC = ml, dc = COM"

can someone explain the composition of the parts of the ldap string.

the one I have:

string strSQL = "SELECT mail FROM 'LDAP://DC=amrs,DC=win,DC=ml,dc=COM' WHERE samaccountname = '" + UserName.Replace(@"AMRS\", "") + "'";

it receives an email for a specific username. now I need to get other information from the ldap request and not get the correct setting, and also I do not know that the values ​​are in the ldap settings. "LDAP: // DC = amrs, DC = win, DC = ml, dc = COM"

Can someone please explain this to me?

+3
source share
3 answers

DC= LDAP (dc). , LDAP. .

" DNS" : (something).amrs.win.ml.com (, , ..)

, LDAP - , DC=, ou= ( ) cn= ( ).

+16

LDAP. LDAP, JXplorer, , . .

DC . URL- LDAP: . where samaccountname .

0

LDAP. , . , , , . LDAP , LDAP, , Windows. :

LDAP Active Directory sAMAccountName

, . , , , - , , , , , DC, dc = mydomain, DC = . , , , . .

0
source

Source: https://habr.com/ru/post/1777931/


All Articles