The UserAuth interface you'll have to implement is given the ServerSession
as a parameter and you can use get/setAttributes() to associate your id
with the ssh session.
When you want to kick users, you can enumerate the sessions using
sshServer.getActiveSessions() and check what you need there, eventually
calling close() on the sessions.

On Fri, Jul 13, 2012 at 2:41 PM, Wright, Omari <[email protected]>wrote:

> I have OpenAM which I plan to use to handle user authentication again an
> Active Directory server. I plan to make a call during the SSHD authenticate
> method passing along username/password. The returned value of this call is
> a token id if it is successful and null otherwise. I then want to associate
> this value with the session as a type of session id. Is this possible? If
> so, how can I go about doing this?
>
> The token id would basically be an added property on the session. The
> reason I want this functionality is that I then want to be able to kick
> users based off the token id passed to the disconnect method. The reason
> for this is a need to have OpenAM manage user disconnects.
>



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
FuseSource, Integration everywhere
http://fusesource.com

Reply via email to