diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-16 16:17:30 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-16 16:17:30 +0100 |
commit | b09d2edf26f1713e015920dddaacc6212f1f779a (patch) | |
tree | 8ecd79c2e4dd6ee349a41522f5b4b57fb754f74a | |
parent | fda16c1c71ca84d5824173cc5fb3dafc84e7b67c (diff) | |
download | samba-b09d2edf26f1713e015920dddaacc6212f1f779a.tar.gz samba-b09d2edf26f1713e015920dddaacc6212f1f779a.tar.bz2 samba-b09d2edf26f1713e015920dddaacc6212f1f779a.zip |
s4/provision: Upper case default realm, use only first part of realm as default domain name.
-rwxr-xr-x | source4/setup/provision | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/setup/provision b/source4/setup/provision index 882a92ad48..bf6898faa8 100755 --- a/source4/setup/provision +++ b/source4/setup/provision @@ -131,8 +131,8 @@ if opts.interactive: else: print "%s: " % (prompt,), return sys.stdin.readline().rstrip("\n") or default - opts.realm = ask("Realm", socket.gethostname().split(".", 1)[1]) - opts.domain = ask("Domain", opts.realm) + opts.realm = ask("Realm", socket.gethostname().split(".", 1)[1].upper()) + opts.domain = ask("Domain", opts.realm.split(".")[0]) opts.server_role = ask("Server Role (dc, member, standalone)", "dc") for i in range(3): opts.adminpass = getpass("Administrator password: ") |