diff options
author | Nadezhda Ivanova <nivanova@samba.org> | 2010-07-05 00:20:37 +0300 |
---|---|---|
committer | Nadezhda Ivanova <nivanova@samba.org> | 2010-07-05 00:20:37 +0300 |
commit | d300085868b7ba3f5cd4dd24fbea8e35ad9f87ee (patch) | |
tree | f724ab16461938943958ee7c73e29c6a781d840d /source4/dsdb/tests | |
parent | 81240b13b365400e2da903a7fc0af1f501bc1249 (diff) | |
download | samba-d300085868b7ba3f5cd4dd24fbea8e35ad9f87ee.tar.gz samba-d300085868b7ba3f5cd4dd24fbea8e35ad9f87ee.tar.bz2 samba-d300085868b7ba3f5cd4dd24fbea8e35ad9f87ee.zip |
Changed passwords.py to use the correct account as acl checks now pass.
Diffstat (limited to 'source4/dsdb/tests')
-rwxr-xr-x | source4/dsdb/tests/python/passwords.py | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/source4/dsdb/tests/python/passwords.py b/source4/dsdb/tests/python/passwords.py index c288ed524e..de1889fbea 100755 --- a/source4/dsdb/tests/python/passwords.py +++ b/source4/dsdb/tests/python/passwords.py @@ -93,12 +93,8 @@ class PasswordTests(samba.tests.TestCase): # command line credentials for informations like the domain, the realm # and the workstation. creds2 = Credentials() - # FIXME: Reactivate the user credentials when we have user password - # change support also on the ACL level in s4 - creds2.set_username(creds.get_username()) - creds2.set_password(creds.get_password()) - #creds2.set_username("testuser") - #creds2.set_password("thatsAcomplPASS1") + creds2.set_username("testuser") + creds2.set_password("thatsAcomplPASS1") creds2.set_domain(creds.get_domain()) creds2.set_realm(creds.get_realm()) creds2.set_workstation(creds.get_workstation()) @@ -338,8 +334,7 @@ userPassword: thatsAcomplPASS1 """) self.fail() except LdbError, (num, _): - self.assertEquals(num, ERR_UNWILLING_TO_PERFORM) -# self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS) + self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS) try: ldb.modify_ldif(""" @@ -425,8 +420,7 @@ userPassword: thatsAcomplPASS2 """) self.fail() except LdbError, (num, _): - self.assertEquals(num, ERR_UNWILLING_TO_PERFORM) -# self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS) + self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS) try: ldb.modify_ldif(""" @@ -456,8 +450,7 @@ userPassword: thatsAcomplPASS2 """) self.fail() except LdbError, (num, _): - self.assertEquals(num, ERR_UNWILLING_TO_PERFORM) -# self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS) + self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS) try: ldb.modify_ldif(""" @@ -487,8 +480,7 @@ userPassword: thatsAcomplPASS3 """) self.fail() except LdbError, (num, _): - self.assertEquals(num, ERR_UNWILLING_TO_PERFORM) -# self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS) + self.assertEquals(num, ERR_INSUFFICIENT_ACCESS_RIGHTS) # Reverse order does work self.ldb2.modify_ldif(""" |