<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LDAP First Name not passed on to application]]></title><description><![CDATA[<p dir="auto">Hello there,</p>
<p dir="auto">I'm facing this weird issue, and I'm at loss at how to troubleshoot further. I installed <a href="https://github.com/Leantime/leantime" target="_blank" rel="noopener noreferrer nofollow ugc">Leantime</a> 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:</p>
<pre><code>## 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-&gt;Ldap attribute mapping
LEAN_LDAP_KEYS="{
        \"username\":\"username\",
        \"groups\":\"memberof\",
        \"email\":\"mail\",
        \"firstname\":\"givenName\",
        \"lastname\":\"sn\",
        \"phonenumber\":\"telephoneNumber\"
}"
</code></pre>
<p dir="auto">According to the <a href="https://docs.cloudron.io/packaging/addons/" target="_blank" rel="noopener noreferrer nofollow ugc">packaging documentation</a>,  <code>givenName</code>should pass the first name, correct? Unfortunately the field stays blank. Using <code>displayName</code> instead works for example so I don't think the issue is with Leantime.</p>
<p dir="auto"><img src="/assets/uploads/files/1686318608555-screenshot-2023-06-09-at-07.49.06.png" alt="Screenshot 2023-06-09 at 07.49.06.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/topic/9374/ldap-first-name-not-passed-on-to-application</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 17:09:55 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/9374.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Jun 2023 13:50:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LDAP First Name not passed on to application on Sat, 10 Jun 2023 19:34:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Yeah, unfortunately won't work yet.<br />
<a href="https://forum.cloudron.io/topic/8940/apps-with-openid-connect-provider-beta/13">https://forum.cloudron.io/topic/8940/apps-with-openid-connect-provider-beta/13</a></p>
]]></description><link>https://forum.cloudron.io/post/68046</link><guid isPermaLink="true">https://forum.cloudron.io/post/68046</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Sat, 10 Jun 2023 19:34:46 GMT</pubDate></item><item><title><![CDATA[Reply to LDAP First Name not passed on to application on Sat, 10 Jun 2023 02:42:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andreasdueren" aria-label="Profile: andreasdueren">@<bdi>andreasdueren</bdi></a> did you try OpenID  - <a href="https://github.com/Leantime/leantime/blob/d9d9a020135f6b77b8f63c34289644a62077b96d/.dev/.env#L95" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Leantime/leantime/blob/d9d9a020135f6b77b8f63c34289644a62077b96d/.dev/.env#L95</a> ?</p>
]]></description><link>https://forum.cloudron.io/post/68019</link><guid isPermaLink="true">https://forum.cloudron.io/post/68019</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 10 Jun 2023 02:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to LDAP First Name not passed on to application on Fri, 09 Jun 2023 21:11:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> <code>givenname</code> worked, thanks!</p>
]]></description><link>https://forum.cloudron.io/post/68013</link><guid isPermaLink="true">https://forum.cloudron.io/post/68013</guid><dc:creator><![CDATA[andreasdueren]]></dc:creator><pubDate>Fri, 09 Jun 2023 21:11:47 GMT</pubDate></item><item><title><![CDATA[Reply to LDAP First Name not passed on to application on Fri, 09 Jun 2023 18:23:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andreasdueren" aria-label="Profile: andreasdueren">@<bdi>andreasdueren</bdi></a> bizzarely, LDAP is case insensitive (!). Can you try with <code>givenname</code>intead of <code>givenName</code> (nothing the fact that somehow <code>displayName</code> did work for you).</p>
<p dir="auto">Cloudron also has no UI to enter first name and last name explicity. We derive the parts like so:</p>
<pre><code>        const nameParts = displayName.split(' ');
        const firstName = nameParts[0];
        const lastName = nameParts.length &gt; 1  ? nameParts[nameParts.length - 1] : ''; // choose last part, if it exists
</code></pre>
<p dir="auto">Just wondering, does your name have a <code>&lt;space&gt;</code> in it?</p>
]]></description><link>https://forum.cloudron.io/post/68002</link><guid isPermaLink="true">https://forum.cloudron.io/post/68002</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 09 Jun 2023 18:23:09 GMT</pubDate></item></channel></rss>