diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-01-05 00:27:49 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-01-05 00:27:49 +0100 |
commit | ca05542d3defe76c3bce48eaff1fc749821a976c (patch) | |
tree | ac676907759980628558f815576b6790b3443d05 /source4/setup | |
parent | af744e0954bbe9ddfa2e3da173e79de65e640a4c (diff) | |
download | samba-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-x | source4/setup/provision | 2 |
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): |