you could try to set the LDAP_OPT_TIMELIMIT in the file modules/authent-ldap/module.authent-ldap.php (near the end of the file 2 other LDAP options are set), see the PHP manual pagehttp://www.php.net/manual/en/function.ldap-set-option.php .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What are you trying to do exactly? LDAP_OPT_TIMELIMIT is an option to specify a timeout for an ldap operation, like when you check login/password at login, it's not related at all with the iTop session.
You should have a look at "session.cookie_lifetime"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, ya I didn't think LDAP_OPT_TIMELIMIT was related, but tried it out. I see session.cookie_lifetime for the php server (although set at 0), but not specifically for iTop.
I'm trying to extend the amount of time that iTop will stay logged in with a user account authenticated with LDAP. If it sits logged in on an idle browser tab for a period of time it requires a login when going back to use it. In my dev environment it'd be handy to be able to stay logged in for more than 30 minutes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to set a longer timeout period for the login session when using LDAP authentication?
you could try to set the LDAP_OPT_TIMELIMIT in the file modules/authent-ldap/module.authent-ldap.php (near the end of the file 2 other LDAP options are set), see the PHP manual page http://www.php.net/manual/en/function.ldap-set-option.php .
I did look at that, but it says that is the timelimit for search results from the LDAP server…although I didn't actually test that out.
http://us.php.net/manual/en/ldap.constants.php
I'm trying a setting within php.ini (this is the only thing running on this server).
/etc/php5/apache2/php.ini
session.gc_maxlifetime
session.gc_maxlifetime wasn't it. :(
Testing LDAP_OPT_TIMELIMIT…
LDAP_OPT_TIMELIMIT didn't work. I set it to 4 hours, but it times out somewhere between 30 minutes and an hour.
What are you trying to do exactly? LDAP_OPT_TIMELIMIT is an option to specify a timeout for an ldap operation, like when you check login/password at login, it's not related at all with the iTop session.
You should have a look at "session.cookie_lifetime"
Ok, ya I didn't think LDAP_OPT_TIMELIMIT was related, but tried it out. I see session.cookie_lifetime for the php server (although set at 0), but not specifically for iTop.
I'm trying to extend the amount of time that iTop will stay logged in with a user account authenticated with LDAP. If it sits logged in on an idle browser tab for a period of time it requires a login when going back to use it. In my dev environment it'd be handy to be able to stay logged in for more than 30 minutes.
Hi @all,
is there a solution for that? I have the same problem. The Options LDAP_OPT_TIMELIMIT and session.gc_maxlifetime didn´t work!