I need to set session timeout for users in MaaS to login for a users but in MaaS UI ‘Configuration → Security’ section there is no ‘session timeout’ option available.
Kindly suggest how can i get that option to set session time out.
Hi @rithishdream,
What version of MAAS are you using? snap or deb? Are you logged in with a user with an Admin role?
You could also use the MAAS CLI to change the current session timeout. Note that the timeout units are in seconds and by default is 2 weeks:
maas $USER maas get-config name=session_length
Change its value to, for example, 1 day (86400 s), using the following CLI command:
maas $USER maas set-config name=session_length value=86400
Hi @javier-fs ,
Here is the answer of your questions.
What version of MAAS are you using?
We using MAAS version is of 3.3.
Are you logged in with a user with an Admin role?
Yes, I logged in with an Admin role.
I tried with commands which you shared. But i am getting '“session_length is not a valid config setting”.
Kindly suggest in setting session timeout for users in other possible ways or in solution.
Thank you
Session timeout was introduced in 3.4:
In MAAS 3.4, we’ve introduced the Configurable Session Timeout feature, offering better control over session length. This feature allows you to set a personalised duration for your sessions, hopefully avoiding abrupt disconnections or lingering sessions.
Note that MAAS 3.3 is not supported anymore. Consider this as an opportunity to upgrade to 3.4 or 3.5:
https://maas.io/docs/how-to-upgrade-maas
Thanks for suggesting.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.