1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-13 08:59:08 +03:00

s4-net: Simplify SamDB connect code.

This commit is contained in:
Jelmer Vernooij
2010-04-08 12:19:51 +02:00
parent 2578072541
commit 479fd9c03f
8 changed files with 10 additions and 49 deletions

View File

@ -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)