Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phpldapadmin does not work for an unknown reason

I'm trying to install LDAP. I've installed slapd and the PhpLDAPAdmin tool on Debian, but when I'm logged in, I cannot do anything. Despite I've logged in as 'cn=admin,dc=barbucha', I see on the right side instead of the tree:

Logged in as: dc=example,dc=com
   This base cannot be created with PLA.

I tried Google, but this error seems to be a rare one. I've created a database there is the 'cn=admin,dc=barbucha' in. (Otherwise I could not use the name to log in.)

like image 316
Theodor Keinstein Avatar asked Dec 17 '12 19:12

Theodor Keinstein


1 Answers

This happens quite rarely. From an unknown reason the configuring process didn't get data from the LDAP server and didn't set proper values in the /etc/phpldapadmin/config.php script. Somewhere near by line 300 were two important lines generated erroneously:

$servers->setValue('server','base',array('dc=example,dc=com'));
$servers->setValue('login','bind_id','cn=admin,dc=example,dc=com');

These settings uses PhpLDAPAdmin to access LDAP datatase regardless to the login name you've been logged in with. To update these lines helped:

$servers->setValue('server','base',array('dc=barbucha'));
$servers->setValue('login','bind_id','cn=admin,dc=barbucha');
like image 148
Theodor Keinstein Avatar answered Nov 07 '22 10:11

Theodor Keinstein