# LDAP authentication

**URL:** <https://kanboard.discourse.group/t/ldap-authentication/1129>\
**Category:** Questions\
**Created:** [April 8, 2020, 1:45pm UTC](https://kanboard.discourse.group/t/ldap-authentication/1129 "2020-04-08T13:45:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrwormo](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/mrwormo/32/587_2.png) [@mrwormo](https://kanboard.discourse.group/u/mrwormo)\
**Post date:** [April 8, 2020, 1:45pm UTC](https://kanboard.discourse.group/t/ldap-authentication/1129/1 "2020-04-08T13:45:56Z")

</div>

Hello folks,

Is there a way to authenticate ldap’s users without `define('LDAP_USER_CREATION', true)` in config.php ?  
I just wanted to only authorize users i put into groups i defined in my openldap.

Or maybe i didn’t understand how ldap authentication works…

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![manne65-hd](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/manne65-hd/32/561_2.png) [@manne65-hd](https://kanboard.discourse.group/u/manne65-hd)\
**Post date:** [April 10, 2020, 9:17am UTC](https://kanboard.discourse.group/t/ldap-authentication/1129/2 "2020-04-10T09:17:56Z")

</div>

Hi mrwormo,  
I just did some testing on one of the Kanboard-Instances I run with “ActiveDirectory-Integration” via LDAP … and found out this:

If `LDAP_USER_CREATION` is set to TRUE, then Kanboard will create a new user-account if an LDAP-authentification is valid, but that user does not yet exist in the Kanboard-user-table!

If `LDAP_USER_CREATION` is set to FALSE, then logging in with valid LDAP-credentials will only succeed, if that user is already present in the Kanboard-user-table!

That means:

- If you want all your LDAP users to be able to login to Kanboard, set this to TRUE
  - It just means, that Kanboard will automatically create non-existing Kanboard users on their first login

- If you want to control, which of your LDAP users are allowed to login to Kanboard do this:
  - Create all your LDAP users manually in Kanboard by checking the option “Remote user” in the Authentication-area and leaving the password-fields blank.
  - These users can then login to Kanboard with their LDAP-credentials

When I said _“all your LDAP users”_ I should more precisely say:  
All the LDAP-users that can be found beneath the `LDAP_USER_BASE_DN` !

Hope this helps,  
Manfred

---

<div class="post-metadata">

**Author:** ![mrwormo](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/mrwormo/32/587_2.png) [@mrwormo](https://kanboard.discourse.group/u/mrwormo)\
**Post date:** [April 12, 2020, 4:05pm UTC](https://kanboard.discourse.group/t/ldap-authentication/1129/3 "2020-04-12T16:05:11Z")

</div>

Hey Manfred,

So Kanboard’s LDAP authentication works like i though…

Thx for your answer !
