|
Lines 122-127
Link Here
|
| 122 |
|
122 |
|
| 123 |
try: |
123 |
try: |
| 124 |
pam.authenticate() |
124 |
pam.authenticate() |
|
|
125 |
self._validate_account(pam) |
| 125 |
except PAMError as pam_err: |
126 |
except PAMError as pam_err: |
| 126 |
AUTH.error("PAM: authentication error: %s" % (pam_err,)) |
127 |
AUTH.error("PAM: authentication error: %s" % (pam_err,)) |
| 127 |
|
128 |
|
|
Lines 129-138
Link Here
|
| 129 |
self._validate_account(pam) |
130 |
self._validate_account(pam) |
| 130 |
|
131 |
|
| 131 |
raise AuthenticationFailed(self.error_message(pam_err)) |
132 |
raise AuthenticationFailed(self.error_message(pam_err)) |
| 132 |
self.__workaround_pw_expired = False |
133 |
else: |
|
|
134 |
self.__workaround_pw_expired = False |
| 133 |
|
135 |
|
| 134 |
self._validate_account(pam) |
|
|
| 135 |
|
| 136 |
def _validate_account(self, pam): |
136 |
def _validate_account(self, pam): |
| 137 |
try: |
137 |
try: |
| 138 |
pam.acct_mgmt() |
138 |
pam.acct_mgmt() |