Use PAM service

This allows authentication types to be customised for radicale.
This commit is contained in:
Stephen Paul Weber 2015-08-11 16:46:46 -05:00
parent b4438d25f7
commit 2de4f53fc3

View File

@ -81,7 +81,7 @@ def is_authenticated(user, password):
"The PAM user belongs to the required group (%s)" %
GROUP_MEMBERSHIP)
# Check the password
if pam_authenticate(user, password):
if pam_authenticate(user, password, service='radicale'):
return True
else:
log.LOGGER.debug("Wrong PAM password")