LDAP problems: can't connect
I've been trying to setup and configure openLDAP on my Fedora Core 6 (64bit) for couple of days now... all lead to no luck. I followed closely to this guide and here are samples of my config files:
/etc/ldap.conf Code:
host 192.168.1.7 Code:
include /etc/openldap/schema/core.schema Here's an ldif I've created: /etc/openldap/gofigure.ldif Code:
dn: dc=gofigure,dc=com But when I do ldapsearch -x -b -h ' ' -s base '(objectclass=*)' namingContexts it outputs the following: Code:
# extended LDIF And of course I can not connect to ldap://192.168.1.7/dc=gofigure,dc=com using LDAP browser\Editor (all on the same subnet). Please help... :scratch: |
You're using an empty search base (illegal), an empty host name and no credentials
while requesting simple authentication.... Try Code:
ldapsearch -W -x -D "cn=Manager,dc=gofigure,dc=com" '(objectclass=*)' namingContexts Cheers, Tink |
Tinkster, thanks so much for a quick reply.
After issuing ldapsearch with recommended parameters, I got the following output: Code:
# extended LDIF I see that my db contains 2 entries. But I still can not connect to my ldap server using LDAP browser\Editor. I tried binding anonymously, appending base DN and even with SSL... still unable to. Now, SSL is another issue... when I do ps aux | grep ldap I see that it is on SSL, but I have only port 389 open and I did not configure SSL nor SASL anywhere... Maybe I'm not seeing something? Why doesn't it want to connect? Thanks again. |
***bump***
|
Does the anonymous search works?
Code:
ldapsearch -x -z 100 -b 'dc=gofigure,dc=com' '(objectclass=*)' |
Yes, anonymous works, it shows exactly what I've entered in gofigure.ldif
But I can not connect to this server from my windows machine running java LDAP browser... ***I'm accessing it by IP on the local network, so it's not a routing/dns issue. Thanks |
Are you sure that there is no firewall either at WinXP side preventing ldapbrowser to go out, or at Linux side preventing connections on port 389?
What happens if you Code:
telnet ldap-server 389 |
Hey thanx a lot guys... you know how it is... you tear your hair off trying to solve a complicated piece but it all comes down to a very simple stuff... Which of course was in my case too... i didn't have a firewall rule set on my server to allow ldap port (although router does allow it)... So yeah, now it all works flawlessly. Thanks again. :)
|
All times are GMT -5. The time now is 07:38 AM. |