summaryrefslogtreecommitdiff
path: root/source4/setup/provision
diff options
context:
space:
mode:
Diffstat (limited to 'source4/setup/provision')
-rwxr-xr-xsource4/setup/provision12
1 files changed, 9 insertions, 3 deletions
diff --git a/source4/setup/provision b/source4/setup/provision
index 4316ad00c6..57183540db 100755
--- a/source4/setup/provision
+++ b/source4/setup/provision
@@ -165,11 +165,17 @@ if opts.interactive:
opts.server_role = ask("Server Role (dc, member, standalone)", "dc")
for i in range(3):
- opts.adminpass = getpass("Administrator password: ")
- if not opts.adminpass:
+ adminpass = getpass("Administrator password: ")
+ if not adminpass:
print >>sys.stderr, "Invalid administrator password."
else:
- break
+ adminpassverify = getpass("Retype password: ")
+ if not adminpass == adminpassverify:
+ print >>sys.stderr, "Sorry, passwords do not match."
+ else:
+ opts.adminpass = adminpass
+ break
+
else:
if opts.realm in (None, ""):
opts.realm = sambaopts._lp.get('realm')