Skip to content

Commit 1f9a211

Browse files
committed
CA-395025: Local command shell login failed on XS9
Pam passwd service is updated to handle updating password only Here before offer local shell, we want to authenticate username and password, thus password-auth pam service should be used This fix is compatible with XS8 and XS9 Signed-off-by: Lin Liu <[email protected]>
1 parent d563fb9 commit 1f9a211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XSConsoleAuth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def TCPAuthenticate(self, inUsername, inPassword):
113113
session.close()
114114

115115
def PAMAuthenticate(self, inUsername, inPassword):
116-
if not pam.authenticate(inUsername, inPassword, service="passwd"):
116+
if not pam.authenticate(inUsername, inPassword, service="password-auth"):
117117
# Display a generic message for all failures
118118
raise Exception(Lang("The system could not log you in. Please check your access credentials and try again."))
119119

0 commit comments

Comments
 (0)