Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys,
I've installed Phpldapadmin on my CentOS (5.2), cause I'm intending to try out this guide I've found on the net on how to setup Postfix server with openldap as front end, which, among components, even uses Phpldapadmin. The problem is that the configuration part of the phpldapadmin is not described at all, it's "assumed it's set up properly" so I have no clue how to make this tool to work. I've googled a lot without success. The documentation doesn't give me any clues and the comments in the actual config file make me only more confused.
I can't login as the ldap administrator via this tool. It gives me an error that it's wrong user/password.
I try to login at the interface as 'admin' with password 'secret'. It doesn't let me in.
I realised I should enter the complete path so I logged in as
cn:admin,dc=myzone,dc=com with password 'secret' - still nothing.
Basically, I would like to make a "clean" config.php file, so what I'm wondering is - what are the only needed directives in this file for basic functionality?
If my:
rootdn cn:admin,dc=myzone,dc=com
rootpw secret
- then where / how am I supposed to enter this in the config.php file?
Well, I haven't created the actual content yet (the intention is to use the actual phpldapadmin for that - for adding e-mail user accounts), but I've created the top domain.
Also I am able to bind to the database as anonymous via phpldapadmin, it's only when I try to login as admin that I can't get in.
I never used slappasswd since I never wanted a hashed password in the first place. I'm just doing this as a test, so the cleartext "secret" password was satisfactory (note that I listed in one of my previous posts how I set the rootdn/rootpw directives). But even now, when I actually did create a hashed password and configured the slapd.conf accordingly, the phpldapadmin tool still doesn't work. I don't think this is LDAP-issue, must be something with the actual phpldapadmin. This tool is the probably worst documented one that I've ever encountered in my Linux experience...
Your post said you set the admin and secret in the phpldap config which does not matter to ldap which is a seperate database. The phpldapadmin does not set anything in the ldap server.
phpldapadmin settings may help to login with admin
Hi,
thanks. now able to login with admin (ie <rootdn>) and password using phpldapadmin into the ldap server.
The setting for the attr attribute in the file config.php in the folder /etc/phpldapadmin has to be changed as below:
$ldapservers->SetValue($i,'login','dn','cn=Manager,dc=intoto,dc=com')
$ldapservers->SetValue($i,'login','attr','uid');
Upon this change was able to login with cn=Manager,dc=intoto,dc=com
and its password.
seems its a setting for the phpldapadmin rather than ldap server(slapd)
Hi,
thanks. now able to login with admin (ie <rootdn>) and password using phpldapadmin into the ldap server.
The setting for the attr attribute in the file config.php in the folder /etc/phpldapadmin has to be changed as below:
$ldapservers->SetValue($i,'login','dn','cn=Manager,dc=intoto,dc=com')
$ldapservers->SetValue($i,'login','attr','uid');
Upon this change was able to login with cn=Manager,dc=intoto,dc=com
and its password.
seems its a setting for the phpldapadmin rather than ldap server(slapd)
thanks.
have a nice day,
navin
Hello there, I'm having the exact same problem with CentOS 5.4, but since I don't understand much about linux, by your last post above, I could'n really tell what was I supossed to do to fix it.
Can someone help my out? My admin user is "cn=Manager,dc=tyno,dc=local"
Hello there, I'm having the exact same problem with CentOS 5.4, but since I don't understand much about linux, by your last post above, I could'n really tell what was I supossed to do to fix it.
Can someone help my out? My admin user is "cn=Manager,dc=tyno,dc=local"
I had a similar problem with a stock Centos 5.5 install with Openldap and phpldapadmin from the EPEL repository.
I resolved it (after a process of elimination) by commenting out this line:
$ldapservers->SetValue($i,'login','attr','uid');
in /etc/phpldapadmin/config.php
by putting a # at the beginning, so it looks like this:
#$ldapservers->SetValue($i,'login','attr','uid');
Could someone please help on the issue ? I'm running ldap in cent os and can't login to the phpldapadmin gui tool.
There are 3 users in the ldapadmin groups and all of them are no longer with the company.. I might need to reset the password or create a new user for myself...
while creating new user getting the below error.
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
I changed the ldap passwed via slappasswd utility and updated in rootpw entry in slapd.conf file. But still that doesn't work.
Could someone please help ? I tried everything I could to change the LDAP root password and it doesn't seems to be working....I can't login to the phpldapadmin console also can't create any users via command line ldapadd.
All I get is invalid credentials. Any help would be much appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.