On Sat, 2008-12-13 at 10:05 +0100, Stefan (metze) Metzmacher wrote:
> > +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?Indeed, that should be the default. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Red Hat Inc.
signature.asc
Description: This is a digitally signed message part
