Menu

LDAP Session Timeout

Sean Dugan
2012-06-04
2013-03-28
  • Sean Dugan

    Sean Dugan - 2012-06-04

    Is there a way to set a longer timeout period for the login session when using LDAP authentication?

     
  • Michael

    Michael - 2012-06-04

    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 .

     
  • Sean Dugan

    Sean Dugan - 2012-06-04

    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

     
  • Sean Dugan

    Sean Dugan - 2012-06-04

    session.gc_maxlifetime wasn't it. :(

    Testing LDAP_OPT_TIMELIMIT…

     
  • Sean Dugan

    Sean Dugan - 2012-06-05

    LDAP_OPT_TIMELIMIT didn't work.  I set it to 4 hours, but it times out somewhere between 30 minutes and an hour.

     
  • Bruno Bonfils

    Bruno Bonfils - 2012-06-06

    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"

     
  • Sean Dugan

    Sean Dugan - 2012-06-06

    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.

     
  • Markus

    Markus - 2013-03-28

    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!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.