|
Name: OpenLDAP HomePage: http://lam.sourceforge.net/ Function: OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol Name: phpldapadmin HomePage: http://phpldapadmin.sourceforge.net/ Function: phpldapadmin is a web based interface into an ldap database
1. Firstly we need to get openLDAP working edit the ldap.conf nano /etc/openldap/ldap.conf
ldap.conf:
HOST mc1.fedora.directory.server BASE dc=fedora,dc=directory,dc=server
|
2. Next we need to do some bdb database definitions. edit the slapd.conf file once more futher to the bottom this time you will find 'ldbm and/or bdb database definitions' under that replace it with.
nano etc/openldap/slapd.conf
slapd.conf:
database bdb suffix "dc=fedora,dc=directory,dc=server" rootdn "uid=root,dc=fedora,dc=directory,dc=server" rootpw
|
3. Now we need to create a LDAP password so while in the command line type. slappasswd
once you have entered your password you will end up with something like this
{SSHA}HLuLNn9wv8r9Qkgvh9qNWWZUupfro0+1 copy it and paste it in the slapd.conf were is says 'rootpw'. (as can be scene below) nano etc/openldap/slapd.conf
slapd.conf:
database bdb suffix "dc=fedora,dc=directory,dc=server" rootdn "uid=root,dc=fedora,dc=directory,dc=server" rootpw {SSHA}HLuLNn9wv8r9Qkgvh9qNWWZUupfro0+1
|
4. Now we have to add the LDAP entries file create a file in /tmp folder called domain.ldif then fill it with the following.
nano /tmp/domain.ldif
domain.ldif:
dn: dc=fedora,dc=directory,dc=server objectclass: dcobject objectClass: organization o: Fedora Directory Server dc: fedora
|
5. Once you have made your domain.ldif file then run the following command. /usr/bin/ldapadd -x -D 'uid=root,dc=fedora,dc=directory,dc=server' -W -f /tmp/domain.ldif
6. We need to start the openLDAP service now /etc/init.d/ldap start 7. Now we need to download the phpldapadmin source from http://phpldapadmin.sourceforge.net/ 8. Then we need to place it in the Apache web servers directory cp phpldapadmin-1.0.0.zip /var/www/html 9. Then unzip the folder unzip phpldapadmin-1.0.0.zip 10. Now change the permission of the files chown apache:apache -R phpldapadmin-1.0.0 chmod ug+rwx -R phpldapadmin-1.0.0 11. Then move into the config folder cd phpldapadmin-1.0.0/config 12. Now make the config.php file cp config.php.example config.php 13. Now edit the config.php file to suit your ldap server
nano phpldapadmin-1.0.0/config
config.php:
$blowfish_secret = ''; /* Server(s) configuration */ $servers[$i]['name'] = 'My LDAP Server'; $servers[$i]['host'] = 'localhost'; $servers[$i]['base'] = 'dc=example,dc=com'; $servers[$i]['port'] = 389; $servers[$i]['auth_type'] = 'config'; $servers[$i]['login_dn'] = 'cn=Manager,dc=example,dc=com'; $servers[$i]['login_pass'] = 'PASSWORD';
|
BookMarking:
cell1
|
|
cell3 |
|
cell4
|
|
Trouble Shooting:
Go to the wiki page Go to the 'Contact Us ' Forum Go to the how-to's Support Forum
External Links:
http://lam.sourceforge.net/ http://phpldapadmin.sourceforge.net/ |