[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
nss_ldap: failed to bind to LDAP ser
- To: openldap-technical@openldap.org
- Subject: nss_ldap: failed to bind to LDAP ser
- From: Gokan Atmaca <linux.gokan@gmail.com>
- Date: Sun, 31 May 2015 10:12:17 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=d5kEdvAXepHnbgrQBxFmtL2k9QKtEeCzk+LIoOwjUXg=; b=LDTw70il7k2t/jgde6e4EF4qaFiSjqY4StA+1uMruejuW5GFoWmdfPJ13epSGb9Wvh pLamntjmGDktiw4Iky+txDfONq1hcmK1MhC2U0op6IbHEbV1353J5oOOiRNxoZioGDHb LwasqZpo4TZP6HvM8sVprpOm6W540pYMkcGbkBdbr2KtPRW8TzfxXhemH7ymSliWHNX2 GA2HoAwcvEY1y5zsO1hk53kAEWEucls3lPe5LXJy6LXLzL8SszVxdtU0+fHJGXqBd7eb 7NVxbOVG38f6o9NOxo9618Iqa8iGpbamHmFE/8JNcJJCA1psxPzjWqYfWjsgJ2ynWilM 8QmQ==
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?