summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd/setpassword.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python/samba/netcmd/setpassword.py')
-rw-r--r--source4/scripting/python/samba/netcmd/setpassword.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/source4/scripting/python/samba/netcmd/setpassword.py b/source4/scripting/python/samba/netcmd/setpassword.py
index e86711d9ce..c4a9b00698 100644
--- a/source4/scripting/python/samba/netcmd/setpassword.py
+++ b/source4/scripting/python/samba/netcmd/setpassword.py
@@ -65,12 +65,7 @@ class cmd_setpassword(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(),
+ samdb = SamDB(url=H, session_info=system_session(),
credentials=creds, lp=lp)
samdb.setpassword(filter, password,