Date: Fri, 20 Jan 2006 14:01:49 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Dominique Goncalves <dominique.goncalves@gmail.com> Cc: vsevolod@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Using [Open]LDAP for authentication Message-ID: <20060120200149.GB54284@dan.emsphone.com> In-Reply-To: <7daacbbe0601201008m7c650f4esedcd81921d0fd81e@mail.gmail.com> References: <200601201130.18872.doconnor@gsoft.com.au> <7daacbbe0601192341p32673972j8f309dff1df543aa@mail.gmail.com> <20060120154215.GA54284@dan.emsphone.com> <7daacbbe0601201008m7c650f4esedcd81921d0fd81e@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 20), Dominique Goncalves said: > I've updated my system with FreeBSD 6.0-STABLE #0: Thu Jan 19 > 21:51:24 CET 2006 but the hangs is still here. > > Here is results of the command "id" with "strace" executed on single > user mode: > > strace with ldap in nsswitch.conf: > http://djdomics.free.fr/FreeBSD/strace-nss-w-ldap.txt I see two issues right off the bat. One, there are lots of writes to fd -1, which indicates an error-checking bug somewhere. It probably doesn't affect you though. Two, something is calling nanosleep. It's probably nss_ldap, which looks like if it can't contact any of the configured ldap servers, waits 4 seconds, then retries, doubling the wait period every time until 64 seconds have elapsed, then it fails. Try putting nss_reconnect_tries 0 nss_reconnect_maxconntries 0 in your /usr/local/etc/nss_ldap.conf file. That should tell it not to retry after a failed connect, but just to fail. To avoid any failures at all, you should set up multiple replicated ldap servers there's always a server to connect to. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060120200149.GB54284>