Comments on Set Up OpenLDAP On Fedora 7
Set Up OpenLdap On Fedora 7 This document describes how to set up OpenLDAP on Fedora 7. OpenLDAP is a directory server based on the LDAP protocol, that same protocol MS Active Directory is based on. OpenLDAP is an open-source implementation of the Lightweight Directory Access Protocol.
9 Comment(s)
Comments
Hi,
I Fixed the below error by adding ":" before localhost and 127.0.0.1 in hosts.allow
ldap_bind: Can't contact LDAP server (-1)
Here is the correct hosts.allow entry.
:localhost
:127.0.0.1
... in french for FC6:
http://blog.nicolargo.com/2007/02/installation-dun-annuaire-ldap.html
Nicolargo
Well, I think the howto is ok if the following are true:
1. You already understand LDAP Schemas
2. You already understand SASL/TLS etc.
In my case neither were true. I do have it up and running, but without SASL/TLS.
What helped me a lot, even though I am using Fedora, is this Gentoo howto:
http://gentoo-wiki.com/HOWTO_LDAPv3
I skipped the SASL/TLS Stuff because it's different in Gentoo. I have to get this figured out, as I want get Kolab running.
HINT HINT! KOLAB ON FEDORA HOWTO!!! FALKO!!! HINT HINT!!!
:D
I think this tutorial lacked a little explaining on certain things and made assumptions that I should know some of the things to replace with my data.
I have to agree with the previous poster, this tutorial is too light on information. I followed all the instructions to the letter and it just wouldn't work. I kept getting:
ldap_bind: Can't contact LDAP server (-1)
No matter what I put into the /etc/hosts.allow and restarted the networking/rebooted. No idea how to fix it. Will do some more research.
Questions I'd like to see answered would be how would I add a user? Do I re-run the ldapadd command with the users name? Do I have to create an ldif file?
I appreciate the effort, LDAP seem quite complicated to configure and this is possibly a good start, just needs some fleshing out.
Thanks
Try adding -h localhost to the command, it worked for me.
It stays like this
/usr/bin/ldapadd -h localhost -x -D 'uid=root,dc=ngoprek,dc=ibunk,dc=or.id' -W -f /root/ibunk.ldif
For the life of me I couldn't get this command to work: /usr/bin/ldapadd -x -D 'uid=root,dc=ngoprek,dc=ibunk,dc=or.id' -W -f /root/ibunk.ldif
I replaced the uid=root statement with cn=Manager. I'm new to ldap, so I'm not sure what I 'fixed'...
BTW, the error I kept getting was "ldap_bind: Invalid credentials (49) "
hey u can try this /etc/init.d/ldap stop /etc/init.d/ldap start I had the same issue and these two steps worked for me.. i guess it needs to update itself with the credentials info after u have made changes to the configs....