Difference between revisions of "CentOS 7.x phpldapadmin"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>CentOS_7.x_Web_Based_Tools|CentOS 7.x Web Based Tools</yambe:breadcrumb> =CentOS 7.x phpldapadmin= ==phpldapadmin configuration== #Install phpldapadmin usi...") |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x phpldapadmin]] | |||
==phpldapadmin configuration== | ==phpldapadmin configuration== | ||
Line 39: | Line 38: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x phpldapadmin]] |
Latest revision as of 09:23, 25 August 2022
Home > CentOS > CentOS 7.x > Web Based Tools > CentOS 7.x phpldapadmin
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:
- Require all granted
- Use 'systemctl reload httpd'
- 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 7.x > Web Based Tools > CentOS 7.x phpldapadmin