LDAP Server key points
sudo apt install slapd ldap-utils
systemctl status slapd
sudo dpkg-reconfigure slapd
sudo vi /etc/ldap/ldap.conf
BASE dc=techharvest,dc=com
URI ldap://localhost
testing ldapserver
ldapsearch -x
Installing phpLDAPadmin
sudo apt install phpldapadmin
sudo vi /etc/phpldapadmin/config.php
293 specifies that phpLDAPadmin will connect to localhost
$servers->setValue('server','host','127.0.0.1');
296 is commented out by default, which means the standard port 389 will be used.
// $servers->setValue('server','port',389);
Line 335 is commented out by default, which means TLS encryption is not enabled.
// $servers->setValue('server','tls',false);
300.
$servers->setValue('server','base',array('dc=example,dc=com')); change to
$servers->setValue('server','base',array());
453.
// $servers->setValue('login','anon_bind',true);
nonymous login is enabled. To disable it, you need to remove the comment character (the two slashes) and change true to false.
$servers->setValue('login','anon_bind',false);
isable template warnings because these warnings are annoying and unimportant. Go to line 161.
// $config->custom->appearance['hide_template_warning'] = false;
Remove the comment character and change false to true.
$config->custom->appearance['hide_template_warning'] = true;
sudo apt install slapd ldap-utils
systemctl status slapd
sudo dpkg-reconfigure slapd
sudo vi /etc/ldap/ldap.conf
BASE dc=techharvest,dc=com
URI ldap://localhost
testing ldapserver
ldapsearch -x
Installing phpLDAPadmin
sudo apt install phpldapadmin
sudo vi /etc/phpldapadmin/config.php
293 specifies that phpLDAPadmin will connect to localhost
$servers->setValue('server','host','127.0.0.1');
296 is commented out by default, which means the standard port 389 will be used.
// $servers->setValue('server','port',389);
Line 335 is commented out by default, which means TLS encryption is not enabled.
// $servers->setValue('server','tls',false);
300.
$servers->setValue('server','base',array('dc=example,dc=com')); change to
$servers->setValue('server','base',array());
453.
// $servers->setValue('login','anon_bind',true);
nonymous login is enabled. To disable it, you need to remove the comment character (the two slashes) and change true to false.
$servers->setValue('login','anon_bind',false);
isable template warnings because these warnings are annoying and unimportant. Go to line 161.
// $config->custom->appearance['hide_template_warning'] = false;
Remove the comment character and change false to true.
$config->custom->appearance['hide_template_warning'] = true;
Comments
Post a Comment