> +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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to