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:
parent
a18889fd77
commit
aa1fce645a
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user