this is obsolete doc -- see http://doc.nethence.com/ instead

Phpldapadmin configuration (RHEL5) 

 

http://pbraun.nethence.com/doc/net/samba-ldap.html 

http://pbraun.nethence.com/doc/www/phpldapadmin.html 

 

 

Requirements 

Make sure you've got those installed, 

rpm -q \
httpd \
php \
php-ldap

 

 

Configuration 

Prepare PHP, 

cd /etc/
mv php.ini php.ini.dist
sed 's/memory_limit = 16M/memory_limit = 32M/' php.ini.dist > php.ini

 

Fetch phpldapadmin (http://phpldapadmin.sourceforge.net) and deploy it, 

#tar xzf phpldapadmin-1.1.0.5.tar.gz
tar xzf phpldapadmin-1.2.0.5.tgz
mv phpldapadmin-*/ /var/www/html/ldap

 

Configure the frontend, 

cd /var/www/html/ldap/config/
cp config.php.example config.php
vi config.php

uncomment, 

$config->custom->jpeg['tmpdir'] = "/tmp";

 

Configure, start and enable the http daemon, 

cd /etc/httpd/conf.d/
mv welcome.conf welcome.conf.dist
cd /etc/httpd/conf/
vi httpd.conf

change (add index.php), 

DirectoryIndex index.html index.html.var index.php

proceed, 

cd ~/
service httpd start
chkconfig httpd on

 

 

Ready to go 

Point your browser to the web page and login, 

http: //ldapsrv/ldap/
login: cn=admin,dc=lusers,dc=example,dc=net
password: LDAP_PASSWORD (as defined in slapd.conf)