How can I get all AuthenticationProviders installed into Guacamole? To be 
consulted from Tacacs Authentication Provider code?

-Gabriel

De: Gabriel Huerta Araujo
Enviado el: miƩrcoles, 19 de abril de 2023 08:56 a. m.
Para: [email protected]
Asunto: RE: Change to the way of authenticating provided by Guacamole

Ok Michael

With incorrect change, Active Sessions are shown. With correct implementation 
not are shown.

How can I solve this issue?

-Gabriel

De: Michael Jumper <[email protected]<mailto:[email protected]>>
Enviado el: martes, 18 de abril de 2023 09:29 p. m.
Para: [email protected]<mailto:[email protected]>
Asunto: Re: Change to the way of authenticating provided by Guacamole

On Tue, Apr 18, 2023, 6:23 PM Gabriel Huerta Araujo 
<[email protected]<mailto:[email protected]>> 
wrote:
...
It was like this
    @Override
    public UserContext getUserContext(AuthenticatedUser authenticatedUser)
            throws GuacamoleException {
        // No associated data whatsoever
       return null;
    }

This is correct for an extension that provides no data of its own.

With below modification, It works like a charm now.
    @Override
    public UserContext getUserContext(AuthenticatedUser authenticatedUser)
            throws GuacamoleException {
        // No associated data whatsoever
       return 
authenticatedUser.getAuthenticationProvider().getUserContext(authenticatedUser);
    }

Sorry, but the above is very incorrect. You are essentially performing the same 
call to getUserContext() that Guacamole itself would make, returning a second 
copy of a UserContext from a different AuthenticationProvider as if it came 
from this one. This may cause really odd behavior or break in unexpected ways.

What you had before was correct.

- Mike

Reply via email to