README.md 2.06 KB
Newer Older
Damiano Falcioni's avatar
Damiano Falcioni committed
1 2
# LDAP Config

Damiano Falcioni's avatar
Damiano Falcioni committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
## Requirements

Apache Directory Studio 2.0

## Instructions

1) In Apache Directory Studio create a new LDAP server with default configuration: Right click in the LDAP Server tab visible in the main window of Apache Directory Studio.

2) Start the created LDAP server: in the LDAP Server tab, right click over the new created server and click 'Run'.

3) Create a connection to the server: in the LDAP Server tab, right click over the new created server and click 'Create connection'. 

4) Import the provided schema: in the LDAP Browser tab, right click over the Root DSE entry, then Import, then LDIF Import. Select the olive_ldap_schema.ldif file and click 'Finish'.

ATTENTION: after this phase you need to manually edit your LDAP schema in the following way or once stopped the server will not be able to start again:

5) Open the following file with a text editor:<br>
(on windows) C:\Users\youruser\.ApacheDirectoryStudio\.metadata\.plugins\org.apache.directory.studio.ldapservers\servers\ff45f39f-aee0-4e8a-94a4-463ac1bb2ad6\partitions\schema\ou=schema\cn=pwm.ldif<br>
(on linux) .ApacheDirectoryStudio is in your home folder

6) Edit the creatorsName field changing its value to 'creatorsName: cn=admin'

Now your server will be able to restart

damianofalcioni's avatar
damianofalcioni committed
27 28 29 30 31
7) Disallow the Anonymous access: In the LDAP Server tab do a right click over your server anc click 'Open configuration', then unselect 'Allow Anonymous Access'

8) Update the default omilab.admin mail: In the LDAP Browser tab open the user identified by cn=omilab.admin and change the default mail (test.boc.pl@gmail.com) with your one. Here you will receive notification on new proposed Olive Projects.


Damiano Falcioni's avatar
Damiano Falcioni committed
32 33 34 35 36 37 38 39 40 41 42 43 44
The imported schema contain two users:
- admin: to use as admin user for the LDAP
- omilab.admin: to use as admin user for the Olive platform

for both users the default password is 'password'

The LDAP can be connected using the following configuration in Olive:

ldap.url=ldap://localhost:10389<br>
ldap.base=dc=example,dc=com<br>
ldap.auth=true<br>
ldap.user=cn=admin,ou=people,dc=example,dc=com<br>
ldap.password=password<br>