summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd/newuser.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python/samba/netcmd/newuser.py')
-rw-r--r--source4/scripting/python/samba/netcmd/newuser.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/source4/scripting/python/samba/netcmd/newuser.py b/source4/scripting/python/samba/netcmd/newuser.py
index 6f12de50e7..3815219460 100644
--- a/source4/scripting/python/samba/netcmd/newuser.py
+++ b/source4/scripting/python/samba/netcmd/newuser.py
@@ -59,12 +59,7 @@ class cmd_newuser(Command):
lp = sambaopts.get_loadparm()
creds = credopts.get_credentials(lp)
- if H is not None:
- url = H
- else:
- url = lp.get("sam database")
-
- samdb = SamDB(url=url, session_info=system_session(), credentials=creds,
+ samdb = SamDB(url=H, session_info=system_session(), credentials=creds,
lp=lp)
samdb.newuser(username, unixname, password,
force_password_change_at_next_login_req=must_change_at_next_login)