summaryrefslogtreecommitdiffstats
path: root/source4/setup
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-01-05 00:27:49 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-01-05 00:27:49 +0100
commitca05542d3defe76c3bce48eaff1fc749821a976c (patch)
treeac676907759980628558f815576b6790b3443d05 /source4/setup
parentaf744e0954bbe9ddfa2e3da173e79de65e640a4c (diff)
downloadsamba-ca05542d3defe76c3bce48eaff1fc749821a976c.tar.gz
samba-ca05542d3defe76c3bce48eaff1fc749821a976c.tar.xz
samba-ca05542d3defe76c3bce48eaff1fc749821a976c.zip
Use fqdn rather than gethostname when guessing realm.
Diffstat (limited to 'source4/setup')
-rwxr-xr-xsource4/setup/provision2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/setup/provision b/source4/setup/provision
index c6b3491cdb2..55a438cb659 100755
--- a/source4/setup/provision
+++ b/source4/setup/provision
@@ -129,7 +129,7 @@ if opts.interactive:
else:
print "%s: " % (prompt,),
return sys.stdin.readline().rstrip("\n") or default
- opts.realm = ask("Realm", socket.gethostname().split(".", 1)[1].upper())
+ opts.realm = ask("Realm", socket.getfqdn().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):