setup:ldap
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| setup:ldap [2013/07/19 11:22] – created root | setup:ldap [2013/07/19 11:49] (current) – root | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Therefore, if you don't read carefully the following instructions, | Therefore, if you don't read carefully the following instructions, | ||
| + | |||
| + | ===== Slapd Installation ===== | ||
| + | |||
| + | Well, it works pretty nicely on debian: | ||
| + | |||
| + | < | ||
| + | |||
| + | Please notice that you may have conflicts with samba as debian implementation launches a LDAP directody by default. | ||
| + | |||
| ===== Enable access to cn=config from PHPLdapAdmin ===== | ===== Enable access to cn=config from PHPLdapAdmin ===== | ||
| Line 25: | Line 34: | ||
| < | < | ||
| + | ===== Add a new root DN ===== | ||
| + | |||
| + | For this part, let's assume we want to create a Root DN '' | ||
| + | |||
| + | ==== Storage Backend Configuration ==== | ||
| + | |||
| + | 1st thing to do is to configure the backend to serve the root DN you want to create. To do so, the simplest way is to copy then edit the '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== Create the DN and populate the admin user ==== | ||
| + | |||
| + | Put the following content in a file (add_dc_acme.ldif in our case). | ||
| + | < | ||
| + | dn: dc=acme | ||
| + | objectclass: | ||
| + | objectclass: | ||
| + | objectclass: | ||
| + | dc: acme | ||
| + | o: acme | ||
| + | description: | ||
| + | |||
| + | # Entry 2: cn=admin, | ||
| + | dn: cn=admin, | ||
| + | objectclass: | ||
| + | objectclass: | ||
| + | cn: admin | ||
| + | description: | ||
| + | userPassword: | ||
| + | |||
| + | One again, '' | ||
| + | Then execute the following command in your shell: | ||
| + | < | ||
| + | As far as I have understood, performing a basic authentication will use olcRootDN and olcRootPW from the backend data for authentication. If you screw up something with '' | ||
setup/ldap.1374225774.txt.gz · Last modified: 2013/07/19 11:22 by root