Missing Ldap attribute in CAS ticket if equals 0
Concerned version
Version: 2.0.6
Platform: Nginx
Summary
In Ldap records, if an attribute has the value 0, it is not returned in the CAS ticket provided
Logs
Ldap record :
ldapsearch -x uid=pro1 typeadmin
typeadmin: 0
ldapsearch -x uid=admin typeadmin
typeadmin: 1
LemonLdap returned records :
{ 'email': ['admin@test.com'], 'nom': ['admin'], 'mail': ['admin@test.com'], 'sn': ['admin'], 'uid': ['admin'], 'cn': ['admin admin'], 'typeadmin': ['1']}
{'email': ['pro1@test.com'], 'nom': ['Pro1'], 'mail': ['pro1@test.com'], 'cn': ['Pro1'], 'uid': ['pro1'], 'sn': ['Pro1']}
{'email': ['pro2@test.com'], 'nom': ['Pro2'], 'mail': ['pro2@test.com'], 'cn': ['Pro2'], 'uid': ['pro2'], 'sn': ['Pro2'], 'typeadmin': ['2']}
Backends used
Ldap V3, LemonLdap CAS procotol for authentification