Thanks a lot Michael, it works like a charm!!!!. -Gabriel
-----Mensaje original----- De: Michael Jumper <[email protected]> Enviado el: domingo, 14 de mayo de 2023 12:42 a. m. Para: [email protected] Asunto: Re: Users can connect only once to Guacamole Client page. On 5/13/23 18:32, Gabriel Huerta Araujo wrote: > Thanks Michael > > My observations: > >>> You should use AbstractUserContext (you'll end up implementing a ton of >>> stub functions otherwise), override invalidate(), and implement any >>> remaining functions that have no implementation according to >> the JavaDoc: > >>> https://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/ >>> net/auth/AbstractUserContext.html > >>> The overview of the above class describes this in more detail. > > I tried to do about above and I got an error: > > /home/admin-cns/tacacs/guacamole-client-1.4.0/extensions/guacamole-aut > h-tacacs/src/main/java/org/apache/guacamole/auth/tacacs/user/UserConte > xt.java:[31,7] error: > org.apache.guacamole.auth.tacacs.user.UserContext is not abstract and > does not override abstract method self() in > org.apache.guacamole.net.auth.UserContext > > I do not see how self function has to be implemented according to > https://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/AbstractUserContext.html. > This link just mentions: "Implementations must provide their own > UserContext.self()" > https://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/UserContext.html#self() Simplest would be just returning an instance of SimpleUser with the username of the user that authenticated: https://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/simple/SimpleUser.html#%3Cinit%3E(java.lang.String) - Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
