sss_obfuscate revision 530ba03ecabb472f17d5d1ab546aec9390492de1
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen parser.add_option("-s", "--stdin", action="store_true",
bdd978e5ecd8daa2542d4d4e1988c78a622cd7f4nd help="The domain to use the password in (default: default)",
bdd978e5ecd8daa2542d4d4e1988c78a622cd7f4nd help="Set input file to FILE (default: Use system default, usually /etc/sssd/sssd.conf)",
bdd978e5ecd8daa2542d4d4e1988c78a622cd7f4nd # If no password given as positional paramater, read up from stdin
20189240503ef2c8f5dc6e2248b57faab4b23b5and print "Missing password parameter!"
117c1f888a14e73cdd821dc6c23eb0411144a41cnd # Obfuscate the password
bdd978e5ecd8daa2542d4d4e1988c78a622cd7f4nd # Save the obfuscated password into the domain
bdd978e5ecd8daa2542d4d4e1988c78a622cd7f4nd domain.set_option('ldap_default_authtok_type', 'obfuscated_password')
20189240503ef2c8f5dc6e2248b57faab4b23b5and print "The domain %s does not seem to support the required options" % \