X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=source4%2Flib%2Fldb%2Ftests%2Fpython%2Fldap.py;fp=source4%2Flib%2Fldb%2Ftests%2Fpython%2Fldap.py;h=db69b47ab3b1e85e5ff7fde58493272da37e5547;hp=9682b4bc5320ba3afdf624582a5d0ddd37e9de10;hb=bdd83c0639ad0066a2b0e77611548f2d165bb747;hpb=d604d499390dea1a10bfdd462b512bfe1845a101 diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py index 9682b4bc532..db69b47ab3b 100755 --- a/source4/lib/ldb/tests/python/ldap.py +++ b/source4/lib/ldb/tests/python/ldap.py @@ -1028,6 +1028,13 @@ objectClass: container "dn": "cn=ldaptestuser,cn=users," + self.base_dn, "objectclass": ["user", "person"]}) + # We should be able to reset our actual primary group + m = Message() + m.dn = Dn(ldb, "cn=ldaptestuser,cn=users," + self.base_dn) + m["primaryGroupID"] = MessageElement("513", FLAG_MOD_REPLACE, + "primaryGroupID") + ldb.modify(m) + # Try to add invalid primary group m = Message() m.dn = Dn(ldb, "cn=ldaptestuser,cn=users," + self.base_dn)