diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-11-05 02:29:17 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:44:15 +0100 |
commit | c805934017af2c983b31738cb888103a5f972fdc (patch) | |
tree | e6106624285cd82e992a6e1ec69c7984ea19ea97 /testprogs | |
parent | 495271588c5ef8ce88826961fa3883506d74ad33 (diff) | |
download | samba-c805934017af2c983b31738cb888103a5f972fdc.tar.gz |
r25826: Prove that adding a user or computer via LDAP doesn't magicly give
them any more group memberships.
Andrew Bartlett
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/ejs/ldap.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testprogs/ejs/ldap.js b/testprogs/ejs/ldap.js index 8376b15fbbe..56fbf4f0dff 100755 --- a/testprogs/ejs/ldap.js +++ b/testprogs/ejs/ldap.js @@ -432,6 +432,8 @@ objectClass: user assert(res.msgs[0].objectCategory == ("CN=Person,CN=Schema,CN=Configuration," + base_dn)); assert(res.msgs[0].sAMAccountType == 805306368); // assert(res[0].userAccountControl == 546); + assert(res.msgs[0].memberOf[0] == ("CN=ldaptestgroup2,CN=Users," + base_dn)); + assert(res.msgs[0].memberOf.length == 1); println("Testing ldb.search for (&(cn=ldaptestuser)(objectCategory=cn=person,cn=schema,cn=configuration," + base_dn + "))"); var res2 = ldb.search("(&(cn=ldaptestuser)(objectCategory=cn=person,cn=schema,cn=configuration," + base_dn + "))"); @@ -510,6 +512,7 @@ objectClass: user // assert(res.msgs[0].sAMAccountType == 805306368); // assert(res.msgs[0].userAccountControl == 546); assert(res.msgs[0].memberOf[0] == ("CN=ldaptestgroup2,CN=Users," + base_dn)); + assert(res.msgs[0].memberOf.length == 1); println("Testing ldb.search for (&(cn=ldaptestcomputer)(objectCategory=cn=computer,cn=schema,cn=configuration," + base_dn + "))"); var res2 = ldb.search("(&(cn=ldaptestcomputer)(objectCategory=cn=computer,cn=schema,cn=configuration," + base_dn + "))"); |