diff options
Diffstat (limited to 'source4/setup')
-rwxr-xr-x | source4/setup/newuser | 7 |
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; |