Project

General

Profile

RedmineLDAP » History » Version 2

Jean-Philippe Lang, 2007-12-10 21:44

1 1 Jean-Philippe Lang
h1. LDAP Authentication
2
3
Redmine natively supports LDAP authentication using one or multiple LDAP directories.
4
5
h2. Declaring the LDAP
6
7
Go to Administration -> Authentification and click *New authentication mode*.
8
9
Enter the following:
10
11
* *Name*: an arbitrary name for the directory
12
* *Host*: the LDAP host name
13
* *Port*: the LDAP port (default is 389)
14
* *LDAPS*: check this if you want or need to use LDAPS to access the directory
15
* *Account*: leave this field empty if your LDAP can be read anonymously, otherwise enter a username that has read access to the LDAP
16
* *Password*: password for the account
17
* *Base DN*: the top level DN of your LDAP directory tree
18
* *Login attribute*: enter the name of the LDAP attribute that will be used as the Redmine username
19
20 2 Jean-Philippe Lang
Redmine users should now be able to authenticate using their LDAP username and password if their accounts are set to use the LDAP for authentication.
21
To test this, create a Redmine user with a login that matches his LDAP account and select the newly created LDAP in the *Authentication mode* drop-down list (this field is visible only if a LDAP is declared).
22 1 Jean-Philippe Lang
23
h2. On the fly user creation
24
25
By checking *on-the-fly user creation*, any LDAP user will have his Redmine account automatically created the first time he logs into Redmine.
26
For that, you have to specify the LDAP attributes name (firstname, lastname, email) that will be used to create their Redmine accounts.
27
28
Here is an typical example using Active Directory:
29
30
<pre>
31
Name     = My Directory
32
Host     = host.domain.org
33
Port     = 389
34
LDAPS    = no
35
Account  = MyDomain\UserName
36
Password = <password>
37
Base DN  = CN=users,DC=host,DC=domain,DC=org
38
39
On-the-fly user creation = yes
40
Attributes
41
  Login     = sAMAccountName
42
  Firstname = givenName
43
  Lastname  = sN
44
  Email     = mail
45
</pre>
46
47
Note that LDAP attribute names are *case sensitive*.
48
49
h2. Troubleshooting
50
51
If you want to use on-the-fly user creation, make sure you don't have any user custom field marked as required.