kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
739 stars 253 forks source link

LDAP wants to enable session timeout, #227

Open imran-baig-se opened 5 years ago

imran-baig-se commented 5 years ago

Hello team,

I would like to enable session time out like 24h re-authenticate the user again.

my default conf.

server {

listen       80;

    auth_ldap "Authentication is required";
    auth_ldap_servers ldapserver;

access_log /www/logs/nginx/access.log;
error_log /www/logs/nginx/error.log;

disable_symlinks off;

location = /robots.txt {
  allow all;
  log_not_found off;
  access_log off;
}

location / { proxy_pass http://xxx-dev.xxxx.io:5601; }

deny dot-files

location ~ /\. {
  deny all;
  access_log off;
  log_not_found off;
}

location ~* .(jpg|jpeg|gif|png|css|js|ico|xml)$ {

access_log on;

log_not_found on;

expires 360d;

}

}

Please help on this I tried to below directives without any luck.

- UPLOAD_MAX_SIZE=2G
- AUTH_LDAP_CACHE_ENABLED=on
- AUTH_LDAP_CACHE_EXPIRATION_TIME=1000
- AUTH_LDAP_CACHE_SIZE=1000

Thanks in advance @kvspb