4.1.4.4.1 Initial State

Querying the user object with name KimAkers in the domain NC DC=CONTOSO, DC=COM on DC1:

  • ldap_search_s("CN=Kim Akers,CN=Users,DC=contoso,DC=com", baseObject, "(objectClass=user)", [objectClass, distinguishedName, sAMAccountName])

  • Result <0>: (null)

  • Matched DNs:

  • Getting 1 entries:

  • >> 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

Querying the crossRef object for the domain NC CONTOSO.COM on DC1 by performing the following LDAP search:

  • ldap_search_s("CN=CONTOSO,CN=Partitions,CN=Configuration,DC=contoso,DC=com", baseObject, "(objectClass=crossRef)", [objectClass, nCName, dnsRoot, nETBIOSName])

  • Result <0>: (null)

  • Matched DNs:

  • Getting 1 entries:

  • >> Dn: CN=CONTOSO,CN=Partitions,CN=Configuration,DC=contoso,DC=com

    • 2> objectClass: top; crossRef;

    • 1> nCName: DC=contoso,DC=com;

    • 1> dnsRoot: contoso.com;

    • 1> nETBIOSName: CONTOSO;

Show: