Centest
By:
Centest

Unable to access Phpldapadmin with admin account

November 7, 2014 7.1k views
PHP

I installed Phpldapadmin in Debian Wheezy. I followed all the steps to configure Phpldapadmin as given in https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-a-basic-ldap-server-on-an-ubuntu-12-04-vps. I'm able to login as Anonymous and but not as Admin.

Here is /etc/phpldapadmin/config.php

$servers->newServer('ldap_pla');
$servers->setValue('server','name','IN-BAN-AS01 LDAP Server');
$servers->setValue('server','host','192.168.x.x');
$servers->setValue('server','port',389);
$servers->setValue('server','base',array('dc=cti,dc=paris'));
$servers->setValue('login','auth_type','cookie');
$servers->setValue('login','bind_id','cn=admin,dc=cti,dc=paris');
$servers->setValue('login','bind_pass','xxx');
$servers->setValue('server','tls',false);

After modifying config.php, restarted apache service
/etc/init.d/apache2 restart

Here is the error, when I login with admin account

"Unable to connect to LDAP server My LDAP Server
Error: Invalid credentials (49) for user
error Failed to Authenticate to server
Invalid Username or Password."

Where else I need to modify, to access admin account ??

2 comments
  • Same here on Ubuntu Server 14.04, fresh install for testing purposes, the only packages installed on UBuntu server are: slapd ldap-utils phpldapadmin.
    Left everything on example.com.
    i can connect to 192.168.0.14/phpldapadmin and login as anonymous but it rejects my password. for admin with the same error messages as for OP (Centest)

    EDIT
    Also if I enter ldapmodify in terminal it asks me for a password after I input it it says:

    ldap_sasl_interactive_bind_s: Invalid credentials (49)
                   additional info: SASL(-13): user not found: no secret in database
    
  • Anyone, anyone? I'm in the same boat as elemer82 (i.e., Ubuntu 14.04). Why is it that nothing ever seems to work out-of-the-box on that OS? Despite the friendly interface, it's seeming more and more like the least utilitarian Linux there is at this point. About 90% of my time with Ubuntu is unbillable "WhyTF doesn't this work the documented way?!" research time. [sigh]

Be the first one to answer this question.