summaryrefslogtreecommitdiff
path: root/source4/setup
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-06 21:45:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:49 -0500
commit27f997e6825827ec99e1580370218c294d455e79 (patch)
tree4bf1d7f3f359beb5ee9f761ca3e0410824159fba /source4/setup
parent528470d4a74b1e2068fdc98b62076e8b19db47fc (diff)
downloadsamba-27f997e6825827ec99e1580370218c294d455e79.tar.gz
samba-27f997e6825827ec99e1580370218c294d455e79.tar.bz2
samba-27f997e6825827ec99e1580370218c294d455e79.zip
r12749: Fix the newuser script.
Andrew Bartlett (This used to be commit 42cdad5e3f06c307baf80396fd8449b803ef84c3)
Diffstat (limited to 'source4/setup')
-rwxr-xr-xsource4/setup/newuser7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/setup/newuser b/source4/setup/newuser
index c114338d27..4d2acf5373 100755
--- a/source4/setup/newuser
+++ b/source4/setup/newuser
@@ -10,6 +10,7 @@ options = GetOptions(ARGV,
"POPT_AUTOHELP",
"POPT_COMMON_SAMBA",
"POPT_COMMON_VERSION",
+ "POPT_COMMON_CREDENTIALS",
'username=s',
'unixname=s',
'password=s',
@@ -70,6 +71,10 @@ if (nss.getpwnam(options.unixname) == undefined) {
exit(1);
}
-newuser(options.username, options.unixname, options.password, message);
+var creds = options.get_credentials();
+var system_session = system_session();
+
+
+newuser(options.username, options.unixname, options.password, message, system_session, creds);
return 0;