diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/sss_obfuscate | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools/sss_obfuscate b/src/tools/sss_obfuscate index cd911615..faa2d981 100644 --- a/src/tools/sss_obfuscate +++ b/src/tools/sss_obfuscate @@ -19,8 +19,8 @@ def parse_options(): dest="stdin", default=False, help="Read the password from stdin.") parser.add_option("-d", "--domain", - dest="domain", default="default", - help="The domain to use the password in (default: default)", + dest="domain", default=None, + help="The domain to use the password in (mandatory)", metavar="DOMNAME") parser.add_option("-f", "--file", dest="filename", default=None, @@ -40,6 +40,10 @@ def main(): print >> sys.stderr, "Cannot parse options" return 1 + if not options.domain: + print >> sys.stderr, "No domain specified" + return 1 + if not options.stdin and not options.password: pprompt = lambda: (getpass.getpass("Enter password: "), getpass.getpass("Re-enter password: ")) p1, p2 = pprompt() |