You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using AuthPassword with an expired password. The server (a vanilla debian 12) didn't send SSH_MSG_USERAUTH_PASSWD_CHANGEREQ. The auth passed, and sshclient.isAuthenticated() returns true. Only when trying to start a subsystem, say SFTPClient, will an exception be thrown.
I assume this is the correct behaviour? because the server sends USERAUTH_SUCCESS.
The banner did says "You are required to change your password immediately (administrator enforced)"
The app I am developing wants to change the password (thru PasswordUpdateProvider) and obviously it isn't working (since no CHANGEREQ was received).
Is it some server settings that controls the sending of CHANGEREQ messages?
Other than grepping the banner, or try to start SFTPClient, is there any other way to check if the auth was "truely" successful?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When using AuthPassword with an expired password. The server (a vanilla debian 12) didn't send SSH_MSG_USERAUTH_PASSWD_CHANGEREQ. The auth passed, and sshclient.isAuthenticated() returns true. Only when trying to start a subsystem, say SFTPClient, will an exception be thrown.
I assume this is the correct behaviour? because the server sends USERAUTH_SUCCESS.
The banner did says "You are required to change your password immediately (administrator enforced)"
The app I am developing wants to change the password (thru PasswordUpdateProvider) and obviously it isn't working (since no CHANGEREQ was received).
Is it some server settings that controls the sending of CHANGEREQ messages?
Other than grepping the banner, or try to start SFTPClient, is there any other way to check if the auth was "truely" successful?
Beta Was this translation helpful? Give feedback.
All reactions