Ldap – phpldapadmin installation

ldap

I have an LDAP server runs on:

ldap://129.168.0.117:389

or

ldap://roshd.org:389
where roshd.org = 129.168.0.117

I have this configuration in config.php in phpldapadmin:


$servers = new Datastore();
$servers->newServer('ldap_pla');
$servers->setValue('server','name','My LDAP Server');
$servers->setValue('server','host','192.168.0.117');
$servers->setValue('server','port',389);
$servers->setValue('login','auth_type','session');
$servers->setValue('login','bind_id','cn=Manager,dc=roshd,dc=org');
$servers->setValue('login','bind_pass','secret');
$servers->setValue('auto_number','search_base','ou=People,dc=roshd,dc=org');

in my sldap.conf:


...
database    bdb
directory   /usr/local/var/openldap-data
suffix      "dc=roshd,dc=org"
rootdn      "cn=Manager,dc=roshd,dc=org"
rootpw      secret
...

but when I attemp to login in phpldapadmin, I got this error. is there any idea?


Unable to connect to LDAP server My LDAP Server
Error: Can't contact LDAP server (-1) for user
error   Failed to Authenticate to server
Invalid Username or Password.

Best Answer

Spot the difference:

$servers->setValue('server','host','192.168.0.117');

ldap://129.168.0.117:389

Related Topic