summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/setup/newuser3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/setup/newuser b/source4/setup/newuser
index cf2c7b8382..c114338d27 100755
--- a/source4/setup/newuser
+++ b/source4/setup/newuser
@@ -16,7 +16,7 @@ options = GetOptions(ARGV,
'quiet');
if (options == undefined) {
- println("Failed to parse options: " + options.ERROR);
+ println("Failed to parse options");
return -1;
}
@@ -56,6 +56,7 @@ if (options['username'] == undefined) {
ShowHelp();
}
if (options['password'] == undefined) {
+ random_init(local);
options.password = randpass(12);
printf("chose random password %s\n", options.password);
}