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:
parent
af744e0954
commit
ca05542d3d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user