浏览代码

PamBackend authentication fails with PAM_AUTH_ERR or PAM_SYSTEM_ERR (#3322)

Internal Jira: CDPD-56693
Mahesh Balakrishnan 2 年之前
父节点
当前提交
283e24fc32
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/auth/backend.py

+ 1 - 1
desktop/core/src/desktop/auth/backend.py

@@ -425,7 +425,7 @@ class PamBackend(DesktopBackendBase):
       LOG.debug('Setting username to %s using PAM pwd module for user %s' % (getpwnam(username).pw_name, username))
       username = getpwnam(username).pw_name
 
-    if pam.authenticate(username, password, AUTH.PAM_SERVICE.get()):
+    if pam.authenticate(username, password, AUTH.PAM_SERVICE.get(), print_failure_messages=True, resetcreds=False):
       is_super = False
       if User.objects.exclude(id=install_sample_user().id).count() == 0:
         is_super = True