On Mon, Oct 10, 2022 at 4:40 AM Arthur Toumassian <[email protected]> wrote: > > Hello, > > We use database authentication to store users and connections. In addition, > sometimes we use the valid_from and valid_until properties to restrict access. > But for some cases, we want to give access despite the veto induced by these > properties. If i understand well, these properties exist only in the DB > authentication mode extension, so these are not part of the core guacamole > features. > My question: is it still possible to override the this behavior from a custom > extension?
You might be able to, yes, but implementing an extension that decorates the JDBC users and then forcing authentication to succeed based on some criteria that bypasses the valid_from and valid_to dates. I'm not 100% certain that this would work without looking at the code and really trying it out, but my gut tells me you could probably do it. Depending on your use case it might actually be better to invert that logic, though - allow logins to succeed by default without using valid_from and valid_to, and have the custom authentication extension veto the logins in cases where you want to restrict things. -Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
