Merge pull request #304 from singpolyma/pam-service

Use PAM service
This commit is contained in:
Guillaume Ayoub 2015-08-12 10:27:55 +02:00
commit 634c3c6e3e

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")