Apache-AuthCookieLDAP
view release on metacpan or search on metacpan
AuthCookieLDAP.pm view on Meta::CPAN
# These are optional, the module sets sensible defaults.
PerlSetVar WhatEverLDAP_filter F=on
PerlSetVar WhatEverDBI_GroupsTable "groups"
PerlSetVar WhatEverDBI_GroupField "grp"
PerlSetVar WhatEverDBI_GroupUserField "user"
PerlSetVar WhatEverLDAP_host ldap.bank.com
PerlSetVar WhatEverLDAP_EncryptionType "none"
PerlSetVar WhatEverLDAP_SessionLifetime 00-24-00-00
# Protected by AuthCookieLDAP.
<Directory /www/domain.com/authcookieldap>
AuthType Apache::AuthCookieLDAP
AuthName WhatEver
PerlAuthenHandler Apache::AuthCookieLDAP->authenticate
PerlAuthzHandler Apache::AuthCookieLDAP->authorize
require valid-user
# or you can require users:
require user jacob
AuthCookieLDAP.pm view on Meta::CPAN
=item C<WhatEverLDAP_SessionLifetime>
How long tickets are good for after being issued. Note that presently
Apache::AuthCookie does not set a client-side expire time, which means that
most clients will only keep the cookie until the user quits the browser.
However, if you wish to force people to log in again sooner than that, set
this value. This can be 'forever' or a life time specified as:
DD-hh-mm-ss -- Days, hours, minute and seconds to live.
This is not required and defaults to '00-24-00-00' or 24 hours.
=cut
$c{ LDAP_sessionlifetime }
= _dir_config_var( $r, 'LDAP_SessionLifetime' ) || '00-24-00-00';
## This is for some leftover DBI code:
=item C<WhatEverDBI_DSN>
( run in 1.095 second using v1.01-cache-2.11-cpan-7add2cbd662 )