[SCM] Samba Shared Repository - branch master updated

Nadezhda Ivanova nivanova at samba.org
Sun Jul 4 15:23:03 MDT 2010


The branch, master has been updated
       via  d300085... Changed passwords.py to use the correct account as acl checks now pass.
      from  81240b1... s4-dsdb: Implementation of User-Change-Password and User-Force-Password-Change

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d300085868b7ba3f5cd4dd24fbea8e35ad9f87ee
Author: Nadezhda Ivanova <nivanova at samba.org>
Date:   Mon Jul 5 00:20:37 2010 +0300

    Changed passwords.py to use the correct account as acl checks now pass.

-----------------------------------------------------------------------

Summary of changes:
 source4/dsdb/tests/python/passwords.py |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/dsdb/tests/python/passwords.py b/source4/dsdb/tests/python/passwords.py
index c288ed5..de1889f 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("""


-- 
Samba Shared Repository


More information about the samba-cvs mailing list