diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-08-07 09:01:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:01:32 -0500 |
commit | c4e5fcc349ae8648e50c5fa893fd3fd47336fed2 (patch) | |
tree | b49fac0f010bf6ecb7de4e92634061d0d535c110 /testprogs/ejs | |
parent | ae7819d715e80cfbd17c4bec1c93685198febe6a (diff) | |
download | samba-c4e5fcc349ae8648e50c5fa893fd3fd47336fed2.tar.gz samba-c4e5fcc349ae8648e50c5fa893fd3fd47336fed2.tar.bz2 samba-c4e5fcc349ae8648e50c5fa893fd3fd47336fed2.zip |
r24263: Fix bug 4846 (unable to copy users in MMC Active Directory Users and
Computers).
We now generate a security descriptor for each object, when it is
created. This seems to keep MMC happy. The next step is to honour
it.
Andrew Bartlett
(This used to be commit 72f4ae82463c5c1f9f6b7f18f125c4c8fb56ae4f)
Diffstat (limited to 'testprogs/ejs')
-rwxr-xr-x | testprogs/ejs/ldap.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testprogs/ejs/ldap.js b/testprogs/ejs/ldap.js index bb7e482ec8..5735b8b391 100755 --- a/testprogs/ejs/ldap.js +++ b/testprogs/ejs/ldap.js @@ -258,7 +258,7 @@ 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); - + 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 + "))"); if (res2.error != 0 || res2.msgs.length != 1) { @@ -439,8 +439,9 @@ objectClass: user // assert(res.msgs[0].userAccountControl == 4098); + var attrs = new Array("cn", "name", "objectClass", "objectGUID", "whenCreated", "ntSecurityDescriptor"); println("Testing ldb.search for (&(cn=ldaptestUSer2)(objectClass=user))"); - var res = ldb.search("(&(cn=ldaptestUSer2)(objectClass=user))"); + var res = ldb.search("(&(cn=ldaptestUSer2)(objectClass=user))", base_dn, ldb.SCOPE_SUBTREE, attrs); if (res.error != 0 || res.msgs.length != 1) { println("Could not find (&(cn=ldaptestUSer2)(objectClass=user))"); assert(res.error == 0); @@ -456,6 +457,7 @@ objectClass: user assert(res.msgs[0].objectClass[3] == "user"); assert(res.msgs[0].objectGUID != undefined); assert(res.msgs[0].whenCreated != undefined); + assert(res.msgs[0].ntSecurityDescriptor != undefined); ok = ldb.del(res.msgs[0].dn); if (ok.error != 0) { |