1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Use fqdn rather than gethostname when guessing realm.

This commit is contained in:
Jelmer Vernooij 2009-01-05 00:27:49 +01:00
parent af744e0954
commit ca05542d3d

View File

@ -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):