Discussion:
nss_ldap: failed to bind to LDAP ser
Gokan Atmaca
2015-05-31 07:12:17 UTC
Permalink
Content preview: I installed OpenLDAP. "ldapsearch -x" comes with everything.
However, I get an error when I try to connect to the client as follows: Ldapcliet:
(/var/log/auth.log) 02:49:58 debian8 nscd: nss_ldap: reconnecting to LDAP
server (sleeping 1 seconds)... May 31 02:49:59 debian8 nscd: nss_ldap: could
not connect to any LDAP server as (null) - Can't contact LDAP server May
31 02:49:59 debian8 nscd: nss_ldap: failed to bind to LDAP server ldapi://ldap01.gokan.local:
Can't contact LDAP server May 31 02:49:59 debian8 nscd: nss_ldap: could not
search LDAP server - Server is unavailable [...]

Content analysis details: (-1.8 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL
was blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information.
[209.85.220.174 listed in list.dnswl.org]
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(linux.gokan[at]gmail.com)
0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
CUSTOM_MED
-0.0 SPF_PASS SPF: sender matches SPF record
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid
0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid

I installed OpenLDAP. "ldapsearch -x" comes with everything. However,
I get an error when I try to connect to the client as follows:

Ldapcliet: (/var/log/auth.log)

02:49:58 debian8 nscd: nss_ldap: reconnecting to LDAP server (sleeping
1 seconds)...
May 31 02:49:59 debian8 nscd: nss_ldap: could not connect to any LDAP
server as (null) - Can't contact LDAP server
May 31 02:49:59 debian8 nscd: nss_ldap: failed to bind to LDAP server
ldapi://ldap01.gokan.local: Can't contact LDAP server
May 31 02:49:59 debian8 nscd: nss_ldap: could not search LDAP server -
Server is unavailable

======================
Ldapserver;

# ldapsearch -x

# extended LDIF
#
# LDAPv3
# base <dc=gokan,dc=local> (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# gokan.local
dn: dc=gokan,dc=local
objectClass: top
objectClass: dcObject
objectClass: organization
o: gokan
dc: gokan

# admin, gokan.local
dn: cn=admin,dc=gokan,dc=local
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator

# IT, gokan.local
dn: ou=IT,dc=gokan,dc=local
objectClass: organizationalUnit
objectClass: top
ou: IT

# Genel, IT, gokan.local
dn: cn=Genel,ou=IT,dc=gokan,dc=local
gidNumber: 500
cn: Genel
objectClass: posixGroup
objectClass: top

# Gokhan Atmaca, Genel, IT, gokan.local
dn: cn=Gokhan Atmaca,cn=Genel,ou=IT,dc=gokan,dc=local
cn: Gokhan Atmaca
givenName: Gokhan
gidNumber: 500
homeDirectory: /home/users/gokhana
sn: Atmaca
loginShell: /bin/sh
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
uidNumber: 1000
uid: gokhana


# search result
search: 2
result: 0 Success

# numResponses: 7
# numEntries: 6

======================

Listening to the socket.
tcp 0 0 0.0.0.0:389 0.0.0.0:*
LISTEN 4409/slapd
tcp6 0 0 :::389 :::*
LISTEN 4409/slapd


What could be the problem?
Dan White
2015-06-01 17:56:23 UTC
Permalink
Content preview: On 05/31/15 10:12 +0300, Gokan Atmaca wrote: >I installed
OpenLDAP. "ldapsearch -x" comes with everything. However, >I get an error
when I try to connect to the client as follows: > >Ldapcliet: (/var/log/auth.log)
Post by Gokan Atmaca
02:49:58 debian8 nscd: nss_ldap: reconnecting to LDAP server (sleeping
1 seconds)... >May 31 02:49:59 debian8 nscd: nss_ldap: could not connect
to any LDAP >server as (null) - Can't contact LDAP server >May 31 02:49:59
debian8 nscd: nss_ldap: failed to bind to LDAP server >ldapi://ldap01.gokan.local:
Can't contact LDAP server [...]

Content analysis details: (-1.9 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
I installed OpenLDAP. "ldapsearch -x" comes with everything. However,
Ldapcliet: (/var/log/auth.log)
02:49:58 debian8 nscd: nss_ldap: reconnecting to LDAP server (sleeping
1 seconds)...
May 31 02:49:59 debian8 nscd: nss_ldap: could not connect to any LDAP
server as (null) - Can't contact LDAP server
May 31 02:49:59 debian8 nscd: nss_ldap: failed to bind to LDAP server
ldapi://ldap01.gokan.local: Can't contact LDAP server
ldapi://ldap01.gokan.local is wrong. You probably want
ldap://ldap01.gokan.local.

Consult ldap.conf(5), and the nss_ldap documentation.
# ldapsearch -x
# extended LDIF
#
# LDAPv3
# base <dc=gokan,dc=local> (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
Listening to the socket.
tcp 0 0 0.0.0.0:389 0.0.0.0:*
LISTEN 4409/slapd
tcp6 0 0 :::389 :::*
LISTEN 4409/slapd
--
Dan White
Loading...