4.1.2.4.3.1 Initial State
Querying the user object whose sAMAccountName is kimakers in the domain NC DC=CONTOSO, DC=COM on DC1:
ldap_search_s("DC=contoso,DC=com", wholeSubtree, "(sAMAccountName=kimakers)", [objectClass, distinguishedName, sAMAccountName, objectSid, sIDHistory])
Result <0>: (null)
Matched DNs:
Getting 1 entry:
Dn: CN=Kim Akers,CN=Users,DC=contoso,DC=com
4> objectClass: top; person; organizationalPerson; user;
1> distinguishedName: CN=Kim Akers,CN=Users,DC=contoso,DC=com;
1> sAMAccountName: KimAkers
1> objectSid: S-1-5-21-254470460-2440132622-709970653-1144
Querying the user object whose sAMAccountName is kimakers1 in the domain NC DC=LEGACYCONTOSO, DC=COM on DC9:
ldap_search_s("DC=legacycontoso,DC=com", wholeSubtree, "(sAMAccountName=kimakers1)", [objectClass, distinguishedName, sAMAccountName, objectSid, sIDHistory])
Result <0>: (null)
Matched DNs:
Getting 1 entries:
>> Dn: CN=Kim Akers1,CN=Users,DC=legacycontoso,DC=com
4> objectClass: top; person; organizationalPerson; user;
1> distinguishedName: CN=Kim Akers1,CN=Users,DC=legacycontoso,DC=com;
1> sAMAccountName: KimAkers1;
1> objectSid: S-1-5-21-1137440724-3092688314-3181763971-1153;