Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Much like PublickeyAuthenticator and Command (SSHD-3 and SSHD-11) the PasswordAuthenticator and Shell should also have access to the ServerSession to exchange information.
In my case the PasswordAuthenticator creates a Apache Commons VFS FileObject as Identity which should be consumed by a VFS backed Shell to initialize the root of the file system. Since the identity is not an explicit part of the model, the most symmetric solution would be to pass the ServerSession to the authenticate method and to use a SessionAware interface on the Shell.
I have implemented a solution and will submit the patch shortly.