Hi,
I am trying to integrate my custom shell (that is based on Apache Commons VFS)
in the sshd server. It starts to take form but I have some trouble.
I have created a custom PasswordAuthenticator that I give a path that points to
a Virtual File System. When it authenticates the user it returns a handle to a
FileObject that represents the root directory as Identity.
I also created a custom ShellFactory and custom Shell. In my shell I should
initialize the current directory by giving it a FileObject that contains the
authentication information.
So I would need to have access to the Identity created during the
authentication for this. Through the Environment given at the start of the
shell I can have access to the username but that is not enough. Would it be
possible to add the Identity object to the Environment? Are there better
solutions?
Thanks,
Frank
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/