summaryrefslogtreecommitdiff
path: root/source4/setup
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-16 16:17:30 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-16 16:17:30 +0100
commitb09d2edf26f1713e015920dddaacc6212f1f779a (patch)
tree8ecd79c2e4dd6ee349a41522f5b4b57fb754f74a /source4/setup
parentfda16c1c71ca84d5824173cc5fb3dafc84e7b67c (diff)
downloadsamba-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.
Diffstat (limited to 'source4/setup')
-rwxr-xr-xsource4/setup/provision4
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: ")