<?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[Directus with LDAP or SSO auth]]></title><description><![CDATA[<p dir="auto">Hi there, are there any plans to add LDAP or other means of SSO authentication to the current package? It seems to <a href="https://docs.directus.io/configuration/config-options/#ldap-ldap" target="_blank" rel="noopener noreferrer nofollow ugc">be supported</a>, but LDAP is not activated in the manifest</p>
]]></description><link>https://forum.cloudron.io/topic/6574/directus-with-ldap-or-sso-auth</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 12:57:03 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6574.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Mar 2022 15:40:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Tue, 15 Nov 2022 21:56:10 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> happy to report that this is working like a charm, thanks a lot!</p>
]]></description><link>https://forum.cloudron.io/post/56228</link><guid isPermaLink="true">https://forum.cloudron.io/post/56228</guid><dc:creator><![CDATA[msbt]]></dc:creator><pubDate>Tue, 15 Nov 2022 21:56:10 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Tue, 15 Nov 2022 21:25:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/msbt" aria-label="Profile: msbt">@<bdi>msbt</bdi></a> See <a href="https://docs.cloudron.io/apps/directus/#cloudron-directory" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/apps/directus/#cloudron-directory</a> as well</p>
]]></description><link>https://forum.cloudron.io/post/56226</link><guid isPermaLink="true">https://forum.cloudron.io/post/56226</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 15 Nov 2022 21:25:15 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Tue, 15 Nov 2022 21:20:12 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> ohhh very nice! appreciate the effort, going to check it out asap <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>https://forum.cloudron.io/post/56225</link><guid isPermaLink="true">https://forum.cloudron.io/post/56225</guid><dc:creator><![CDATA[msbt]]></dc:creator><pubDate>Tue, 15 Nov 2022 21:20:12 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Tue, 15 Nov 2022 21:03:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/msbt" aria-label="Profile: msbt">@<bdi>msbt</bdi></a> I pushed a new package with LDAP.</p>
]]></description><link>https://forum.cloudron.io/post/56219</link><guid isPermaLink="true">https://forum.cloudron.io/post/56219</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 15 Nov 2022 21:03:26 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Mon, 14 Nov 2022 20:43:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/msbt" aria-label="Profile: msbt">@<bdi>msbt</bdi></a> tried this again and it crashes.</p>
<pre><code>21:41:35 - [20:41:34] ERROR (146 on 6278be82-2fa6-460d-bbbe-93a0b7594d5e): name (string) required
21:41:35 - err: {
21:41:35 - "type": "TypeError",
21:41:35 - "message": "name (string) required",
21:41:35 - "stack":
21:41:35 - TypeError: name (string) required
21:41:35 - at Object.parse (/app/code/node_modules/ldapjs/lib/dn.js:158:43)
21:41:35 - at ensureDN (/app/code/node_modules/ldapjs/lib/client/client.js:85:15)
21:41:35 - at Client.search (/app/code/node_modules/ldapjs/lib/client/client.js:596:18)
21:41:35 - at /app/code/node_modules/directus/dist/auth/drivers/ldap.js:71:29
21:41:35 - at new Promise (&lt;anonymous&gt;)
21:41:35 - at LDAPAuthDriver.validateBindClient (/app/code/node_modules/directus/dist/auth/drivers/ldap.js:69:16)
21:41:35 - at LDAPAuthDriver.getUserID (/app/code/node_modules/directus/dist/auth/drivers/ldap.js:185:20)
21:41:35 - at AuthenticationService.login (/app/code/node_modules/directus/dist/services/authentication.js:45:37)
21:41:35 - at /app/code/node_modules/directus/dist/auth/drivers/ldap.js:317:84
21:41:35 - at /app/code/node_modules/directus/dist/utils/async-handler.js:3:66
21:41:35 - }

</code></pre>
<p dir="auto">Have to debug.</p>
]]></description><link>https://forum.cloudron.io/post/56114</link><guid isPermaLink="true">https://forum.cloudron.io/post/56114</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 14 Nov 2022 20:43:39 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Fri, 11 Nov 2022 01:32:48 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> they just added SAML support in one of their <a href="https://github.com/directus/directus/releases/tag/v9.20.0" target="_blank" rel="noopener noreferrer nofollow ugc">last releases</a>, any chance you could check again if LDAP works as well? Maybe with <code>DEFAULT_ROLE_ID</code> or <code>AUTH_LDAP_GROUP_DN</code>? I don't remember seeing that the last time I checked <a href="https://docs.directus.io/self-hosted/config-options.html#authentication" target="_blank" rel="noopener noreferrer nofollow ugc">this page</a>.</p>
<p dir="auto"><img src="/assets/uploads/files/1668130282217-091995f3-cbbf-4ffe-8f37-6844c501d86f-grafik-resized.png" alt="091995f3-cbbf-4ffe-8f37-6844c501d86f-grafik.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/post/55868</link><guid isPermaLink="true">https://forum.cloudron.io/post/55868</guid><dc:creator><![CDATA[msbt]]></dc:creator><pubDate>Fri, 11 Nov 2022 01:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Mon, 21 Mar 2022 10:00:44 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> what's the status on this, won't it work properly even with the patched LDAP server?</p>
]]></description><link>https://forum.cloudron.io/post/45048</link><guid isPermaLink="true">https://forum.cloudron.io/post/45048</guid><dc:creator><![CDATA[msbt]]></dc:creator><pubDate>Mon, 21 Mar 2022 10:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Sat, 05 Mar 2022 07:14:49 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> nice one! I was about to say, I could swear I tried with <code>AUTH_LDAP_USER_ATTRIBUTE=username</code> as well <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>https://forum.cloudron.io/post/44320</link><guid isPermaLink="true">https://forum.cloudron.io/post/44320</guid><dc:creator><![CDATA[msbt]]></dc:creator><pubDate>Sat, 05 Mar 2022 07:14:49 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Fri, 04 Mar 2022 22:27:17 GMT]]></title><description><![CDATA[<p dir="auto">I was able to get login to work but users are created with no roles . There is a discussion here - <a href="https://github.com/directus/directus/discussions/9854" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/directus/directus/discussions/9854</a></p>
<p dir="auto">I used the following settings:</p>
<pre><code>export AUTH_PROVIDERS="ldap"
export AUTH_DISABLE_DEFAULT="true"

export AUTH_LDAP_DRIVER="ldap"
export AUTH_LDAP_CLIENT_URL="${CLOUDRON_LDAP_URL}"
export AUTH_LDAP_BIND_DN="${CLOUDRON_LDAP_BIND_DN}"
export AUTH_LDAP_BIND_PASSWORD="${CLOUDRON_LDAP_BIND_PASSWORD}"
export AUTH_LDAP_USER_DN="${CLOUDRON_LDAP_USERS_BASE_DN}"
export AUTH_LDAP_USER_ATTRIBUTE=username
</code></pre>
<p dir="auto">Had to patch our ldap server a bit with:</p>
<pre><code>    gServer.search('ou=apps,dc=cloudron', function(req, res /*, next */) {
        const obj = {
            dn: dn.toString(),
        };
            finalSend([obj], req, res, next);
    });
</code></pre>
]]></description><link>https://forum.cloudron.io/post/44311</link><guid isPermaLink="true">https://forum.cloudron.io/post/44311</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 04 Mar 2022 22:27:17 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Wed, 02 Mar 2022 19:38:25 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> I tried repacking it with LDAP earlier today and wasted quite some time, because of "Unexpected Errors". But there's an already <a href="https://github.com/directus/directus/pull/11750" target="_blank" rel="noopener noreferrer nofollow ugc">merged PR</a> that that will come with the next release, maybe that fixes the issue.</p>
<p dir="auto">For reference, this is what I added to my env file, at least the LDAP tab shows up, but it wouldn't let me in:</p>
<pre><code>export LOG_LEVEL="trace"

export AUTH_PROVIDERS="ldap"
# AUTH_DISABLE_DEFAULT="true"

export AUTH_LDAP_DRIVER="ldap"
export AUTH_LDAP_CLIENT_URL="ldap://172.18.0.1:3002"
export AUTH_LDAP_BIND_DN="cn=...,ou=apps,dc=cloudron"
export AUTH_LDAP_BIND_PASSWORD="superlongpwd"
export AUTH_LDAP_USER_DN="ou=users,dc=cloudron"
export AUTH_LDAP_GROUP_DN="ou=groups,dc=cloudron"
</code></pre>
<p dir="auto">Leaving AUTH_LDAP_BIND_DN and AUTH_LDAP_BIND_PASSWORD empty resulted in the same <code>[Error]: Invalid provider config</code> from the PR, but maybe I'm missing something else.</p>
]]></description><link>https://forum.cloudron.io/post/44180</link><guid isPermaLink="true">https://forum.cloudron.io/post/44180</guid><dc:creator><![CDATA[msbt]]></dc:creator><pubDate>Wed, 02 Mar 2022 19:38:25 GMT</pubDate></item><item><title><![CDATA[Reply to Directus with LDAP or SSO auth on Wed, 02 Mar 2022 19:04:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/msbt" aria-label="Profile: msbt">@<bdi>msbt</bdi></a> Great find! I wasn't aware it supported LDAP.</p>
]]></description><link>https://forum.cloudron.io/post/44179</link><guid isPermaLink="true">https://forum.cloudron.io/post/44179</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 02 Mar 2022 19:04:07 GMT</pubDate></item></channel></rss>