tests/samba-tool user_wdigest: Add accounts to local database
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 10 May 2022 00:59:06 +0000 (12:59 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 May 2022 23:05:31 +0000 (23:05 +0000)
Adding accounts over LDAP means transactions cannot be used, potentially
leading to problems.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/samba_tool/user_wdigest.py

index dd728e1f6bed9bac4cbe92b12828f031ca241995..0d03b51fe3d506a4ffbb098732a5b3941f1c1aa0 100644 (file)
@@ -64,12 +64,7 @@ class UserCmdWdigestTestCase(SambaToolCmdTest):
         self.runsubcmd("user",
                        "create",
                        USER_NAME,
-                       self.password,
-                       "-H",
-                       "ldap://%s" % os.environ["DC_SERVER"],
-                       "-U%s%%%s" % (
-                            os.environ["DC_USERNAME"],
-                            os.environ["DC_PASSWORD"]))
+                       self.password)
 
     def tearDown(self):
         super(UserCmdWdigestTestCase, self).tearDown()