From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ijp6t-0004W6-M9 for garchives@archives.gentoo.org; Mon, 22 Oct 2007 04:41:52 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9M4TS02004424; Mon, 22 Oct 2007 04:29:28 GMT Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.174]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9M4LFZa023801 for ; Mon, 22 Oct 2007 04:21:15 GMT Received: from bs.l (e180023173.adsl.alicedsl.de [85.180.23.173]) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis) id 0MKwtQ-1Ijomi2mON-0002uj; Mon, 22 Oct 2007 06:21:14 +0200 Received: from [192.168.1.22] (helo=bart.bs.l) by homer.bs.l with esmtp (Exim 4.67) (envelope-from ) id 1Ijomi-0002pm-3w for gentoo-user@lists.gentoo.org; Mon, 22 Oct 2007 06:21:00 +0200 Received: from bsch by bart.bs.l with local (Exim 4.67) (envelope-from ) id 1Ijomg-0007UF-OT for gentoo-user@lists.gentoo.org; Mon, 22 Oct 2007 06:20:59 +0200 Date: Mon, 22 Oct 2007 06:20:56 +0200 From: Bertram Scharpf To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] LDAP: Slapd fails asking itself while startup Message-ID: <20071022042056.GA24002@bart.bs.l> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20071019190959.GA21030@bart.bs.l> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071019190959.GA21030@bart.bs.l> User-Agent: Mutt/1.5.16 (2007-06-09) X-Provags-ID: V01U2FsdGVkX1/V5ufeoy2OcERq0YmazxP6VSjVFn3GLE6B/CP JjNINq1uMsMwfQhF/+Eml8Hsfo7DFDHve2bwwOPbCOualoNSg7 qte+39NnM8ftIBCEYbbyzJ3OY4BY9WyfF4puPtU6PE= X-Archives-Salt: b210f32f-c2e4-4ba5-8ce1-4bbb2764ed1c X-Archives-Hash: a10024f2346a76a23abac0eb1f394f2d Hi, Am Freitag, 19. Okt 2007, 21:09:59 +0200 schrieb Bertram Scharpf: > I just set up LDAP authentication and it works fine. > However, when running the init script there comes up an > error that clutters up my syslog with a lot of useless error > messages. > > @(#) $OpenLDAP: slapd 2.3.38 (Oct 18 2007 22:12:26) $ root@myhost:/var/tmp/portage/net-nds/openldap-2.3.38/work/openldap-2.3.38/servers/slapd > nss_ldap: failed to bind to LDAP server ldap://127.0.0.1: Can't contact LDAP server > nss_ldap: failed to bind to LDAP server ldap://127.0.0.1/: Can't contact LDAP server > nss_ldap: failed to bind to LDAP server ldapi://%2fvar%2frun%2fldapi_sock/: Can't contact LDAP server > ... > nss_ldap: could not search LDAP server - Server is unavailable > WARNING: No dynamic config support for database ldbm. > slapd starting > > I found out that the Gentoo init script activates the > options "-u ldap -g ldap". Without them, the error messages > do not appear. Therefore I suppose the slapd daemon tries to > obtain passwd/shadow information for ldap via nss_ldap. At > least when I say "compat" in nsswitch.conf, the error > message doesn't appear as well. > > The thing I really wonder about is that the lines in > nsswitch.conf say > > passwd: files ldap > shadow: files ldap > group: files ldap > > The files should be searched first. The "ldap" information > is present in all three of them. I even tried to chown the > shadow file to ldap but this didn't save me from > encountering the weird messages either. I detected I have a machine where this didn't happen. Then I upgraded from glibc-2.5-r4 to glibc-2.6.1 ... Could this be a real bug in glibc? Does anybody experience the same behaviour? Thanks in advance, Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de -- gentoo-user@gentoo.org mailing list