Difference between revisions of "Phpldapadmin configuration"
From Notes_Wiki
m |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Web based tools or applications]] > [[phpldapadmin configuration]] | |||
#Install phpldapadmin using 'yum -y install phpldapadmin' | #Install phpldapadmin using 'yum -y install phpldapadmin' | ||
Line 37: | Line 36: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Web based tools or applications]] > [[Roundcube configuration]] |
Latest revision as of 18:33, 28 July 2022
Home > CentOS > CentOS 6.x > Web based tools or applications > phpldapadmin configuration
- Install phpldapadmin using 'yum -y install phpldapadmin'
- Edit '/etc/phpldapadmin/config.php' and comment various $servers-> lines. Do not comment $servers = new Datastore();
- 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.
- 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
- Use 'service httpd reload'
- 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