RedmineLDAP » History » Version 1
Jean-Philippe Lang, 2007-12-10 21:29
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 | Existing Redmine users should now be able to authenticate using their LDAP username and password. |
||
21 | |||
22 | h2. On the fly user creation |
||
23 | |||
24 | By checking *on-the-fly user creation*, any LDAP user will have his Redmine account automatically created the first time he logs into Redmine. |
||
25 | For that, you have to specify the LDAP attributes name (firstname, lastname, email) that will be used to create their Redmine accounts. |
||
26 | |||
27 | h2. Example |
||
28 | |||
29 | Here is an typical example using Active Directory: |
||
30 | |||
31 | <pre> |
||
32 | Name = My Directory |
||
33 | Host = host.domain.org |
||
34 | Port = 389 |
||
35 | LDAPS = no |
||
36 | Account = MyDomain\UserName |
||
37 | Password = <password> |
||
38 | Base DN = CN=users,DC=host,DC=domain,DC=org |
||
39 | |||
40 | On-the-fly user creation = yes |
||
41 | Attributes |
||
42 | Login = sAMAccountName |
||
43 | Firstname = givenName |
||
44 | Lastname = sN |
||
45 | Email = mail |
||
46 | </pre> |
||
47 | |||
48 | Note that LDAP attribute names are *case sensitive*. |
||
49 | |||
50 | h2. Troubleshooting |
||
51 | |||
52 | If you want to use on-the-fly user creation, make sure you don't have any user custom field marked as required. |