Просмотр исходного кода

Merge pull request #304 from singpolyma/pam-service

Use PAM service
Guillaume Ayoub 10 лет назад
Родитель
Сommit
634c3c6e3e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      radicale/auth/PAM.py

+ 1 - 1
radicale/auth/PAM.py

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