summaryrefslogtreecommitdiff
path: root/source4/dsdb/tests
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-01 17:23:01 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-01 17:23:01 +0200
commitc2e2f783d02c7128ce1d7748ec2764998edc1be1 (patch)
treea8c6b32d4084e7e40403efd030e5530d8ea46e24 /source4/dsdb/tests
parent21c215512661907832570d18e7e61b3bb6447dcf (diff)
downloadsamba-c2e2f783d02c7128ce1d7748ec2764998edc1be1.tar.gz
samba-c2e2f783d02c7128ce1d7748ec2764998edc1be1.tar.bz2
samba-c2e2f783d02c7128ce1d7748ec2764998edc1be1.zip
s4:dsdb/tests/python/passwords.py - add the right result codes for user password changes
They will be enabled once the ACL modules supports it. It was my fault to not import them earlier.
Diffstat (limited to 'source4/dsdb/tests')
-rwxr-xr-xsource4/dsdb/tests/python/passwords.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dsdb/tests/python/passwords.py b/source4/dsdb/tests/python/passwords.py
index fd2ed1c105..bf9e90976a 100755
--- a/source4/dsdb/tests/python/passwords.py
+++ b/source4/dsdb/tests/python/passwords.py
@@ -26,7 +26,7 @@ from samba.auth import system_session
from samba.credentials import Credentials
from ldb import SCOPE_BASE, LdbError
from ldb import ERR_NO_SUCH_OBJECT, ERR_ATTRIBUTE_OR_VALUE_EXISTS
-from ldb import ERR_UNWILLING_TO_PERFORM
+from ldb import ERR_UNWILLING_TO_PERFORM, ERR_INSUFFICIENT_ACCESS_RIGHTS
from ldb import ERR_NO_SUCH_ATTRIBUTE
from ldb import ERR_CONSTRAINT_VIOLATION
from ldb import Message, MessageElement, Dn
@@ -341,6 +341,7 @@ userPassword: thatsAcomplPASS1
self.fail()
except LdbError, (num, _):
self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
+# self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS)
try:
ldb.modify_ldif("""
@@ -427,6 +428,7 @@ userPassword: thatsAcomplPASS2
self.fail()
except LdbError, (num, _):
self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
+# self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS)
try:
ldb.modify_ldif("""
@@ -457,6 +459,7 @@ userPassword: thatsAcomplPASS2
self.fail()
except LdbError, (num, _):
self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
+# self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS)
try:
ldb.modify_ldif("""
@@ -487,6 +490,7 @@ userPassword: thatsAcomplPASS3
self.fail()
except LdbError, (num, _):
self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
+# self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS)
# Reverse order does work
self.ldb2.modify_ldif("""