forked from thelounge/thelounge.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes thelounge#145
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
layout: documentation | ||
title: Set up LDAP authentication for The Lounge | ||
--- | ||
|
||
Open your configuration file, located at `${THELOUNGE_HOME}/config.js` and look for the `ldap` key, | ||
and set the following values: | ||
|
||
* `enable` - Set to true to enable LDAP | ||
* `url` - A url of the form `ldaps://<ldapserver>:<ldapport>`. For plain connections, use the `ldap` scheme | ||
* `baseDN` - LDAP base DN. When unset, the LDAP auth logic with use `searchDN` instead to locate users (see below). | ||
For example, set it to `"ou=accounts,dc=example,dc=com"`. | ||
* `primaryKey` - LDAP primary key. It is set to `"uid"` by default | ||
* `searchDN` - This method is used for searching and identifying a user DN before authenticating a user. | ||
This field is only used when `baseDN` is unset. This object with the following fields: | ||
* `rootDN` - The bind DN to be used for searching | ||
* `rootPassword` - The bind password to be used for searching | ||
* `base` - The base DN to search for users | ||
* `filter` - The filter to be used for searching. For example, `(objectclass=user)` | ||
* `scope` - The scope of the search. For example, `sub` | ||
|