LDAP Server Bind Failed
Hello Friends,
I have fedora 10 installed on 2 machines. I have installed open LDAP server 2.4.26 on one machine and pam_ldap-186 on another
machine.
I have configured the server and added some entries to it. when I do ldapsearch it shows the entries. But when I send LDAP request
from my client machine (pam_ldap) the request packet is reaching the server machine but not "slapd" server process.
The configurations done are as follows.
/usr/local/etc/openldap/slapd.conf
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
allow bind_v2
access to * by * read
database bdb
suffix "dc=samsung,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw 123qwe
directory /usr/local/var/openldap-data
index uid eq
index cn,gn,sn,ou,o,mail eq,sub
index objectClass eq
/etc/ldap.conf
host 10.1.1.5
base dc=example,dc=com
bind_policy hard
The error which i am getting is as below.
Aug 26 09:40:27 localhost sshd[9512]: pam_ldap: ldap_simple_bind Can't contact LDAP server
Aug 26 09:40:27 localhost sshd[9512]: pam_ldap: reconnecting to LDAP server...
Aug 26 09:40:27 localhost sshd[9512]: pam_ldap: ldap_simple_bind Can't contact LDAP server
When I checked the default port binding with netstat on the server machine the result is as below.
[root@localhost slapd]# netstat -tuan | grep 389
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN
tcp 0 0 :::389 :::* LISTEN
[root@localhost slapd]#
The slapd is running on 0.0.0.0 IP. is this a problem? why it is not accepting packets sent on eth0 (10.1.1.5) ??
Please let me know how to fix this problem.
Thanks and Regards,
Vijay S.
|