1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

ldap: Fix test failure that seemed to go unreported previously.

This commit is contained in:
Jelmer Vernooij 2010-01-17 12:35:26 +13:00
parent a18889fd77
commit aa1fce645a

View File

@ -1813,8 +1813,7 @@ objectclass: user
sAMAccountName: """ + user_name + """
nTSecurityDescriptor:: """ + desc_base64)
res = self.ldb.search(base=user_dn, attrs=["nTSecurityDescriptor"])
print res
self.assertRaises(KeyError, lambda: res[0]["nTSecurityDescriptor"])
self.assertTrue("nTSecurityDescriptor" in res[0])
finally:
self.delete_force(self.ldb, user_dn)