mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s4:passwords.py - add another two failure cases
This commit is contained in:
parent
9aa0ed2c3a
commit
acffe25896
@ -402,6 +402,27 @@ userPassword: thatsAcomplPASS1
|
|||||||
dn: cn=testuser,cn=users,""" + self.base_dn + """
|
dn: cn=testuser,cn=users,""" + self.base_dn + """
|
||||||
changetype: modify
|
changetype: modify
|
||||||
delete: userPassword
|
delete: userPassword
|
||||||
|
userPassword: thatsAcomplPASS1
|
||||||
|
""")
|
||||||
|
self.fail()
|
||||||
|
except LdbError, (num, _):
|
||||||
|
self.assertEquals(num, ERR_CONSTRAINT_VIOLATION)
|
||||||
|
|
||||||
|
try:
|
||||||
|
ldb.modify_ldif("""
|
||||||
|
dn: cn=testuser,cn=users,""" + self.base_dn + """
|
||||||
|
changetype: modify
|
||||||
|
delete: userPassword
|
||||||
|
""")
|
||||||
|
self.fail()
|
||||||
|
except LdbError, (num, _):
|
||||||
|
self.assertEquals(num, ERR_CONSTRAINT_VIOLATION)
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.ldb2.modify_ldif("""
|
||||||
|
dn: cn=testuser,cn=users,""" + self.base_dn + """
|
||||||
|
changetype: modify
|
||||||
|
delete: userPassword
|
||||||
""")
|
""")
|
||||||
self.fail()
|
self.fail()
|
||||||
except LdbError, (num, _):
|
except LdbError, (num, _):
|
||||||
|
Loading…
Reference in New Issue
Block a user