Code:
adoquery1.Active:=false;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('SELECT telephonenumber,givenName, sn FROM ''' + 'LDAP://
DC=[color=green] Windows2000 Domäne[/color] ,
DC=[color=green]Domänensuffix[/color]' + ''' WHERE objectClass=''' + 'user' + '''AND [size=18][color=red]sn = ''' + Edit1.Text + '*' + '''[/color][/size] ORDER BY sn');
adoquery1.active:=true;
Das sollte dir weiterhelfen
[edit=sakura] [pre]Tags. Mfg, sakura[/edit]