Citation :
LdapConnection ldapConn= new LdapConnection();
ldapConn.Connect ("AdresseIP ou nommachine",389);
ldapConn.Bind("Pseudo","MotdePasse" );
string[] filtre=new string[2];
filtre[0]="samaccountname";
filtre[1]="objectclass";
string searchFilter="(&(objectclass=user)(!(comment=*)))";
string searchBase = "dc=support,dc=local";
LdapSearchResults lsc = ldapConn.Search(searchBase,LdapConnection.SCOPE_SUB,searchFilter ,filtre,false);
|