Unable to access Phpldapadmin with admin account

November 7, 2014 10k 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]

1 Answer

Sorry to see that your question hasn't received an answer yet. Unfortunately, after this much time, it is unlikely that an answer for this specific question will be provided. For people still landing here via search, check out this updated tutorial. It shows you how to get up and running with phpLDAPadmin on Ubuntu:

by Brian Boucheron
In this guide, we will discuss how to install and configure the OpenLDAP server on Ubuntu 16.04. We will then install phpLDAPadmin, a web interface for viewing and manipulating LDAP information. We will secure the web interface and the LDAP service with SSL certificates from Let's Encrypt, a provider of free and automated certificates.
Have another answer? Share your knowledge.