LDAP First Name not passed on to application
-
Hello there,
I'm facing this weird issue, and I'm at loss at how to troubleshoot further. I installed Leantime in a LAMP stack which works perfectly, but I'm having issues with the LDAP connector. For some reason some parameters are not passed properly. For example the first name. This is my configuration:
## Ldap LEAN_LDAP_USE_LDAP = true # Set to true if you want to use LDAP LEAN_LDAP_LDAP_TYPE = 'OL' # Select the correct directory type. Currently Supported: OL - OpenLdap, AD - Active Directory LEAN_LDAP_HOST = '172.18.0.1' # FQDN LEAN_LDAP_PORT = 3002 # Default Port LEAN_LDAP_DN = 'ou=users,dc=cloudron' # Location of users, example: CN=users,DC=example,DC=com # Leantime->Ldap attribute mapping LEAN_LDAP_KEYS="{ \"username\":\"username\", \"groups\":\"memberof\", \"email\":\"mail\", \"firstname\":\"givenName\", \"lastname\":\"sn\", \"phonenumber\":\"telephoneNumber\" }"
According to the packaging documentation,
givenName
should pass the first name, correct? Unfortunately the field stays blank. UsingdisplayName
instead works for example so I don't think the issue is with Leantime. -
@andreasdueren bizzarely, LDAP is case insensitive (!). Can you try with
givenname
intead ofgivenName
(nothing the fact that somehowdisplayName
did work for you).Cloudron also has no UI to enter first name and last name explicity. We derive the parts like so:
const nameParts = displayName.split(' '); const firstName = nameParts[0]; const lastName = nameParts.length > 1 ? nameParts[nameParts.length - 1] : ''; // choose last part, if it exists
Just wondering, does your name have a
<space>
in it? -
-
-
-
@girish Yeah, unfortunately won't work yet.
https://forum.cloudron.io/topic/8940/apps-with-openid-connect-provider-beta/13