[SCM] Samba Shared Repository - branch master updated - 52571a0333d50c58675e858774c6d5eb68a48658

Stefan (metze) Metzmacher metze at samba.org
Sat Dec 13 09:05:08 GMT 2008


> +if opts.interactive:
> +	from getpass import getpass
> +	import readline
> +	import socket
> +	def ask(prompt, default=None):
> +		if default is not None:
> +			print "%s [%s]: " % (prompt,default),
> +		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)

shouldn't the domain just be the first part of the realm?

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-cvs/attachments/20081213/49aa2d4d/signature.bin


More information about the samba-cvs mailing list