diff options
Diffstat (limited to 'source4/scripting/python/samba/netcmd/pwsettings.py')
-rw-r--r-- | source4/scripting/python/samba/netcmd/pwsettings.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source4/scripting/python/samba/netcmd/pwsettings.py b/source4/scripting/python/samba/netcmd/pwsettings.py index 50525cc5ce..dda009ae06 100644 --- a/source4/scripting/python/samba/netcmd/pwsettings.py +++ b/source4/scripting/python/samba/netcmd/pwsettings.py @@ -69,12 +69,7 @@ class cmd_pwsettings(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) domain_dn = SamDB.domain_dn(samdb) |