Variables from Users module DBI is not used when Authentication module is LDAP (chain: [LDAP,DBI]
Concerned version
Version: %2.0.5
Summary
The problem is: The user variables from the database are not stored in session for the chain [LDAP,DBI].
This is because in:
https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/blob/7bd1d230876ad554e82f898938a1c48e881c1c31/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/UserDB/DBI.pm
in the function setSessionInfo
on line 57 $req->data->{entry} contains the LDAP search result and not the row from the database, which was stored in line 41.
This bug is linked to this request: #1786 Here it was also indicated that is used for different things by the backends LDAP and DBI.
Possible fixes
I fixed this for me by renaming $req->data->{entry} to $req->data->{entry2} in DBI.pm
Backends used
LDAP, DBI