Phpldapadmin configuration

From Notes_Wiki
Revision as of 04:34, 7 April 2014 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Web_based_tools_or_applications|Web applications</yambe:breadcrumb> =phpldapadmin configuration= #Install phpldapadmin using 'yum -y install phpldapadmin' #...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Web_based_tools_or_applications|Web applications</yambe:breadcrumb>

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.


<yambe:breadcrumb>Web_based_tools_or_applications|Web applications</yambe:breadcrumb>