From 27f997e6825827ec99e1580370218c294d455e79 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 6 Jan 2006 21:45:36 +0000 Subject: r12749: Fix the newuser script. Andrew Bartlett (This used to be commit 42cdad5e3f06c307baf80396fd8449b803ef84c3) --- source4/setup/newuser | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source4/setup') 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; -- cgit