Răsfoiți Sursa

PamBackend authentication fails with PAM_AUTH_ERR or PAM_SYSTEM_ERR (#3322)

Internal Jira: CDPD-56693
Mahesh Balakrishnan 2 ani în urmă
părinte
comite
283e24fc32
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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))
       LOG.debug('Setting username to %s using PAM pwd module for user %s' % (getpwnam(username).pw_name, username))
       username = getpwnam(username).pw_name
       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
       is_super = False
       if User.objects.exclude(id=install_sample_user().id).count() == 0:
       if User.objects.exclude(id=install_sample_user().id).count() == 0:
         is_super = True
         is_super = True