Phpldapadmin configuration

From Notes_Wiki

Home > CentOS > CentOS 6.x > Web based tools or applications > phpldapadmin configuration

  1. Install phpldapadmin using 'yum -y install phpldapadmin'
  2. Edit '/etc/phpldapadmin/config.php' and comment various $servers-> lines. Do not comment $servers = new Datastore();
  3. Put lines such as this near the end of config.php file
    $servers->newServer('ldap_pla');
    $servers->setValue('server','name','replace_hostname - Uid');
    $servers->setValue('server','host','ldaps://replace_hostname:636/');
    $servers->setValue('server','port',636);
    $servers->setValue('server','base',array('replace_base_dn'));
    $servers->setValue('login','auth_type','session');
    $servers->setValue('appearance','password_hash','');
    $servers->setValue('login','attr','uid');
    $servers->newServer('ldap_pla');
    $servers->setValue('server','name','replace_hostname - dn');
    $servers->setValue('server','host','ldaps://replace_hostname:636/');
    $servers->setValue('server','port',636);
    $servers->setValue('server','base',array('replace_base_dn'));
    $servers->setValue('login','auth_type','session');
    $servers->setValue('appearance','password_hash','');
    $servers->setValue('login','attr','dn');
    Here replace replace_hostname with host FQDN. In case of LDAPS FQDN is necessary to match with certificate. If non-secure LDAP is being used change port to 389 from 636 at various places. In case of non-secure LDAP even IP address would work. Also replace replace_base_dn with Base DN at various places.
  4. Edit /etc/httpd/conf.d/phpldapadmin.conf and allow access to yourself using:
    Order Deny,Allow
    Deny from all
    Allow from 10.0.0.0/8
  5. Use 'service httpd reload'
  6. Access phpldapadmin at http://FQDN/phpldapadmin

Now two servers would be available one where uid such as saurabh can be used for login and other where dn such as dn=root,dc=sbarjatiya,dc=com can be used for login. Both would connect to same server.


Home > CentOS > CentOS 6.x > Web based tools or applications > Roundcube configuration