Date: Fri, 9 May 2008 22:44:04 +0200 From: Jonathan McKeown <jonathan+freebsd-questions@hst.org.za> To: freebsd-questions@freebsd.org Subject: Re: slapd won't start with nss_ldap.conf Message-ID: <200805092244.04867.jonathan%2Bfreebsd-questions@hst.org.za> In-Reply-To: <1210336560.28281.43.camel@columbus.webtent.org> References: <1210336560.28281.43.camel@columbus.webtent.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 09 May 2008 14:36, Robert Fitzpatrick wrote: > On a FreeBSD 6.1 with openldap-server-2.3.39, I have setup nss_ldap and > pam_ldap, but cannot get slapd to start as long as I have nss_ldap.conf > present, it just hangs and nothing in the messages or debug logs. I just > copied ldap.conf to nss_ldap.conf, see contents below. To try and identify the problem, can I ask - when you say slapd doesn't start, how long have you waited? There is a chicken-and-egg problem with slapd on a host which is running nss_ldap. To start a process, the system has to adopt the user and group privileges of the process owner, which means enumerating all the groups for that user from every source of group information - including LDAP on a system running nss_ldap. So, to start slapd, the system needs the group info for user ldap - from slapd. It times out and retries a few times, and eventually starts slapd using the group information from /etc/passwd and /etc/group, but the timeout and retry options by default take several minutes. The delay can be even longer depending how many other services are being started first and therefore how many nss_ldap lookup timeouts occur during boot. There are a number of possible solutions depending which version of nss_ldap you're running - searching for nss_ldap bind_policy nss_reconnect_tries will produce a number of suggestions and ``problem reports''. Jonathan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805092244.04867.jonathan%2Bfreebsd-questions>