public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] LDAP: Slapd fails asking itself while startup
@ 2007-10-19 19:09 Bertram Scharpf
  2007-10-22  4:20 ` Bertram Scharpf
  0 siblings, 1 reply; 3+ messages in thread
From: Bertram Scharpf @ 2007-10-19 19:09 UTC (permalink / raw
  To: gentoo-user


Hi,

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.

Could someone enlighten me what is going on here, please?

Thanks in advance,

Bertram Scharpf


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-23  1:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 19:09 [gentoo-user] LDAP: Slapd fails asking itself while startup Bertram Scharpf
2007-10-22  4:20 ` Bertram Scharpf
2007-10-23  1:52   ` [gentoo-user] LDAP: Slapd fails asking itself while startup [solved] Bertram Scharpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox