Hi all If I update MySQL password saved, replacing it by Tacacs password, is automatically application updated to see Active Sessions?
-Gabriel -----Mensaje original----- De: Gabriel Huerta Araujo Enviado el: martes, 11 de abril de 2023 06:49 p. m. Para: [email protected] Asunto: RE: Change to the way of authenticating provided by Guacamole I didn´t realize a problem with new Tacacs authentication. When I enter with a user registered into Tacacs, Active session tab is not presented with its active sessions (It just appears a gear working). When I enter with a user registered into DB MySQL, Active session tab, presents its sessions. What I need to do in order to see Active sessions with user accesed by Tacacs authentication?. _Gabriel -----Mensaje original----- De: Gabriel Huerta Araujo Enviado el: martes, 11 de abril de 2023 05:36 p. m. Para: [email protected] Asunto: RE: Change to the way of authenticating provided by Guacamole Finally I found error related to Tacacs authentication provider. Thanks a lot for your valuable support, Nick. I appreciate it. This is the solution to this matter (It is the condition that is commented) /** * Returns an AuthenticatedUser representing the user authenticated by the * given credentials. * * @param credentials * The credentials to use for authentication. * * @return * An AuthenticatedUser representing the user authenticated by the * given credentials. * * @throws GuacamoleException * If an error occurs while authenticating the user, or if access is * denied. */ public AuthenticatedUser authenticateUser(Credentials credentials) throws GuacamoleException { validateTacacsAuthentication(credentials); AuthenticatedUser authenticatedUser = authenticatedUserProvider.get(); if (authenticatedUser != null && credentials.getUsername() != null) { // This line is solution to memory leak error. logger.debug("User:" + credentials.getUsername() + " [" + credentials.getPassword() + "]"); authenticatedUser.init(credentials.getUsername(), credentials); return authenticatedUser; } // Authentication not provided via Tacacs, yet, so we request it. throw new GuacamoleInvalidCredentialsException("Invalid login.", CredentialsInfo.USERNAME_PASSWORD); } - -----Mensaje original----- De: Gabriel Huerta Araujo Enviado el: jueves, 6 de abril de 2023 08:34 p. m. Para: [email protected] Asunto: RE: Change to the way of authenticating provided by Guacamole Thanks a lot Nick, I was not available. I will follow your suggestions. -Gabriel -----Mensaje original----- De: Nick Couchman <[email protected]> Enviado el: sábado, 1 de abril de 2023 01:14 p. m. Para: [email protected] Asunto: Re: Change to the way of authenticating provided by Guacamole On Sat, Apr 1, 2023 at 3:01 PM Gabriel Huerta Araujo <[email protected]> wrote: > > I am running guacamole in a Linux box. By an IDE with a debugger: ¿A > reference to configure Guacamole into Windows? > There's no reason to switch to Windows - there are plenty of good IDEs with debuggers for Linux. Like NetBeans: https://netbeans.apache.org/ > > But how can I enable debug-level logging? > This is covered in the manual: https://guacamole.apache.org/doc/gug/configuring-guacamole.html#logging-within-the-web-application If you do this you'll also want to make sure that you've put some debug logging into your custom extension, using org.slf4j.Logger and the "debug()" method. This is used extensively throughout the Guacamole Client code, so you should be able to find plenty of examples. -Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
