4.1.10.7.1 Initial State

User "Kim Akers" is created on DC1 with the sAMAccountName "KimAkers"

ldap_add_s("CN=Kim Akers,CN=Users,DC=contoso,DC=com", [sAMAccountName])

Added {CN=Kim Akers,CN=Users,DC=contoso,DC=com }.

Querying the nTDSDSA objects for the root domain NC DC=CONTOSO, DC=COM for DC1:

  • ldap_search_s("CN=NTDS Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=contoso,DC=com", baseObject, "(objectClass=*)", [objectClass, cn ... objectGUID])

  • Result <0>: (null)

  • Matched DNs:

  • Getting 1 entries:

  • >> Dn: CN=NTDS Settings,CN=DC1,CN=Servers, CN=Default-First-Site-Name,CN=Sites, CN=Configuration,DC=contoso,DC=com

    • 3> objectClass: top; applicationSettings; nTDSDSA;

    • 1> cn: NTDS Settings;

    • 1> distinguishedName: CN=NTDS Settings,CN=DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=contoso,DC=com;

    • 1> objectGUID: c20bc312-4d35-4cc0-9903-b1073368af4a;

Querying the user object "CN=Kim Akers, CN=Users, DC=CONTOSO, DC=COM" on DC1:

  • ldap_search_s("CN=Kim Akers,CN=Users,DC=contoso,DC=com", baseObject, "(objectClass=*)", [objectClass, cn ... objectCategory])

  • 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> cn: Kim Akers;

    • 1> sn: Dow;

    • 1> givenName: Kim;

    • 1> distinguishedName: CN=Kim Akers,CN=Users,DC=contoso,DC=com;

    • 1> instanceType: 0x4 = ( IT_WRITE );

    • 1> whenCreated: 07/17/2006 13:50:32 Pacific Standard Pacific Daylight Time;

    • 1> whenChanged: 07/17/2006 13:50:33 Pacific Standard Pacific Daylight Time;

    • 1> displayName: Kim Akers;

    • 1> uSNCreated: 29345;

    • 1> uSNChanged: 29350;

    • 1> name: Kim Akers;

    • 1> objectGUID: 39ab8618-d3fd-410c-b627-64b65104384d;

    • 1> userAccountControl: 0x200 = ( UF_NORMAL_ACCOUNT );

    • 1> badPwdCount: 0;

    • 1> codePage: 0;

    • 1> countryCode: 0;

    • 1> badPasswordTime: 01/01/1601 00:00:00 UNC ;

    • 1> lastLogoff: 01/01/1601 00:00:00 UNC ;

    • 1> lastLogon: 01/01/1601 00:00:00 UNC ;

    • 1> pwdLastSet: 07/17/2006 13:50:33 Pacific Standard Time Pacific Daylight Time;

    • 1> primaryGroupID: 513;

    • 1> objectSid: S-1-5-21-254470460-2440132622-709970653-1129;

    • 1> accountExpires: 09/14/30828 02:48:05 UNC ;

    • 1> logonCount: 0;

    • 1> sAMAccountName: KimAkers;

    • 1> sAMAccountType: SAM_NORMAL_USER_ACCOUNT;

    • 1> userPrincipalName: KimAkers@contoso.com;

    • 1> objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=contoso,DC=com;

Querying the repsFrom attribute on the NC root object for domain DC=CONTOSO, DC=COM on DC2:

  • ldap_search_s("DC=contoso,DC=com", baseObject, "(objectclass=*)", )

  • Result <0>: (null)

  • Matched DNs:

  • Getting 1 entries:

  • >> Dn: DC=contoso,DC=com

    • 1> repsFrom: dwVersion = 1, V1.cb: 276, V1.cConsecutiveFailures: 4

      • V1.timeLastSuccess: 12797642625 V1.timeLastAttempt: 12797643058

        V1.ulResultLastAttempt: 0x2108 V1.cbOtherDraOffset: 216

        V1.cbOtherDra: 60 V1.ulReplicaFlags: 0x70

      • V1.rtSchedule: <ldp:skipped> V1.usnvec.usnHighObjUpdate: 29322

        V1.usnvec.usnHighPropUpdate: 29322

      • V1.uuidDsaObj: c20bc312-4d35-4cc0-9903-b1073368af4a

        V1.uuidInvocId: c20bc312-4d35-4cc0-9903-b1073368af4a

        V1.uuidTransportObj: 00000000-0000-0000-0000-000000000000

      • V1.mtx_address: c20bc312-4d35-4cc0-9903-b1073368af4a._msdcs.contoso.com

      • V1.cbPASDataOffset: 0

        Where V1 represents the REPS_FROM structure. V1.mtx_address represents the MTX_ADDR structure stored in the data field of the REPS_FROM structure.

Querying the user object "CN=Kim Akers, CN=Users, DC=CONTOSO, DC=COM" on DC2 returns no entries because the object is not present on DC2.

  • ldap_search_s("CN=Kim Akers,CN=Users,DC=contoso,DC=com", singleLevel, "(objectclass=*)", null)

  • Error: Search: No Such Object.

  • Matched DNs: CN=Users,DC=contoso,DC=com

  • Getting 0 entries:

Show: