sss_obfuscate revision c9f6ca2ca7399c301853ff774c20883fef2b2267
human-unreadable format and places it into \
appropriate domain section of the SSSD config \
file. The password can be passed in by stdin, \
specified on the command-line or entered \
interactively")
print >> sys.stderr, "Cannot parse options"
return 1
if not options.domain:
print >> sys.stderr, "No domain specified"
return 1
print('Passwords do not match. Try again')
else:
try:
return 1
# Obfuscate the password
# Save the obfuscated password into the domain
try:
print "Cannot open config file %s" % options.filename
return 1
try:
print "No such domain %s" % options.domain
return 1
try:
print "The domain %s does not seem to support the required options" % \
return 1
return 0
if __name__ == "__main__":