Configure pam_krb5 on the client only if sssd is not configured

https://fedorahosted.org/freeipa/ticket/1775
This commit is contained in:
Alexander Bokovoy 2011-10-04 14:33:36 +03:00 committed by Martin Kosek
parent bc83472b5b
commit 39a64a5272

View File

@ -1052,13 +1052,14 @@ def install(options, env, fstore, statestore):
auth_config.execute() auth_config.execute()
print message print message
#Modify pam to add pam_krb5 if not options.sssd:
auth_config.reset() #Modify pam to add pam_krb5 only when sssd is not in use
auth_config.enable("krb5").\ auth_config.reset()
add_option("update").\ auth_config.enable("krb5").\
add_option("nostart") add_option("update").\
auth_config.execute() add_option("nostart")
print "Kerberos 5 enabled" auth_config.execute()
print "Kerberos 5 enabled"
# Update non-SSSD LDAP configuration after authconfig calls as it would # Update non-SSSD LDAP configuration after authconfig calls as it would
# change its configuration otherways # change its configuration otherways