s4:passwords.py - use "self" before "enable_account" to make really sure which LDB...
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 11 Jun 2010 08:04:19 +0000 (10:04 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 11 Jun 2010 08:04:19 +0000 (10:04 +0200)
source4/lib/ldb/tests/python/passwords.py

index eb88fc48249ba381a8e15710268a95f6618d1d84..5988cf6b1a97cce1d3b85abe7900612d857b874e 100755 (executable)
@@ -87,7 +87,7 @@ class PasswordTests(unittest.TestCase):
              "objectclass": ["user", "person"],
              "sAMAccountName": "testuser",
              "userPassword": "thatsAcomplPASS1" })
-        ldb.enable_account("(sAMAccountName=testuser)")
+        self.ldb.enable_account("(sAMAccountName=testuser)")
 
         # Open a second LDB connection with the user credentials. Use the
         # command line credentials for informations like the domain, the realm