saml sessions not being purged by purgeCentralCache script
Concerned version
Version: 1.9.7
Platform: Apache
Summary
We have a ll::ng 1.9.7 acting as an samlv2 identity provider. In the portal, session module for saml and saml storage options are not configured (blank). Local config file (lemonldap-ng.ini) doesn't override this settings. By design the main session module is used to store saml sessions (globalStorage : Apache::Session::Postgres) but the cron job 'purgeCentralCache' doesn't purge old saml sessions in the dedicated table of the database. The 'purgeCentralCache' script doesn't detect saml module because $conf->{samlStorage}
is not defined and keys %{ $conf->{samlStorageOptions}
returns 0.
Logs
n/a
Backends used
globalStorage : Apache::Session::Postgres
Possible fixes
When using saml, i think configuration of session module for saml is required in the portal, so 'samlStorage' gets defined and 'purgeCentralCache' adds module in managed backends
Thank you very much for your work on ll::ng !