# Confusion about LDAP setup

**URL:** https://meta.discourse.org/t/confusion-about-ldap-setup/358146
**Category:** Self-hosting
**Tags:** login
**Created:** [March 20, 2025, 1:14pm UTC](https://meta.discourse.org/t/confusion-about-ldap-setup/358146 "2025-03-20T13:14:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![marcoc](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@marcoc](https://meta.discourse.org/u/marcoc)
#### Post date: [March 20, 2025, 1:14pm UTC](https://meta.discourse.org/t/confusion-about-ldap-setup/358146/1 "2025-03-20T13:14:01Z")

</div>

Hi everyone,

I am trying to setup LDAP in our local discourse to use the LDAP server of our university. I got a working configuration of another app from a colleague and tried to adapt it to use it with the discourse LDAP plugin ([GitHub - jonmbake/discourse-ldap-auth: Discourse plugin to enable LDAP/Active Directory authentication. · GitHub](https://github.com/jonmbake/discourse-ldap-auth)) but I cannot get it right. Presumably I got the syntax or attribute names wrong. Unfortunately I have no experience using LDAP.  
The connection to the server seems to work but I always get “(ldap) Authentication failure! invalid\_credentials encountered.”  
Below you find the current discourse LDAP configuration as well as the working configuration of the other app.

Many thanks for your help in advance!

Best,  
Marco

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/f/e/6fe636dc11c822556d48356b3ce76378bc7489d2.png)

Reference:

```plaintext
LDAP_HOST="ldaps://ldap.uni-freiburg.de"
LDAP_PORT=636
LDAP_USE_SSL=True
LDAP_BASE_DN="dc=uni-freiburg,dc=de"
LDAP_USER_DN="ou=people"
LDAP_USER_RDN_ATTR="cn"
LDAP_USER_LOGIN_ATTR="uid"
LDAP_USER_OBJECT_FILTER="(objectclass=*)"
LDAP_SEARCH_FOR_GROUPS=False
LDAP_USER_SEARCH_SCOPE="SUBTREE"

```

---

<div class="post-metadata">

### Author: ![marcoc](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@marcoc](https://meta.discourse.org/u/marcoc)
#### Post date: [March 20, 2025, 2:34pm UTC](https://meta.discourse.org/t/confusion-about-ldap-setup/358146/2 "2025-03-20T14:34:22Z")

</div>

Ok, our computing center advised me not to use LDAP and instead use their OAuth2 IAM. I will try that.  
Thank you anyway!  
Marco

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 19, 2025, 2:34pm UTC](https://meta.discourse.org/t/confusion-about-ldap-setup/358146/3 "2025-04-19T14:34:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
