From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sat, 25 Aug 2007 15:51:12 +0000 Subject: Re: udev ldap wait Message-Id: <1188057072.5777.5.camel@lov.localdomain> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, 2007-08-25 at 16:57 +0200, Jan Engelhardt wrote: > On Aug 25 2007 16:44, Kay Sievers wrote: > >> Starting udev: udevd[370]: nss_ldap: failed to bind to LDAP server ldar > >> udevd[370]: nss_ldap: failed to bind to LDAP server ldap://127.000.1: Can't conr > >> udevd[370]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)... > >> > >> Well, that happens if you have 'bind_policy hard_open' in > >> /etc/ldap.conf. Looks like a bad idea, I admit. But does udev really > >> need to getpwfoo()? > [ Minor correction: Fedora (duh) comes with a "bind_policy hard" > default conf. ] > > > >Make sure, that all the system users and groups, used in udev rules, > >exist in the local database, > >[...] > >System users and groups should exist on the local machine for various reasons, > >it's not only udev that has problems with it. > > That is guaranteed. The LDAP slave just carries the users with portable UIDs, > which, as it stands, is limited to accounts for real-world people. > > >and that the local files are used before > >you lookup any other directory service. > > That is set too in nsswitch.conf ("passwd: files ldap") > > >It will not even try to use > >the network, just like /etc/hosts can prevent dns lookups. > > Still it does trigger nss_ldap. I have now forced 'bind_policy soft' (also a > SUSE default), and I can ignore the warnings. Hmm, there must be an entry in a rules file, that doesn't exist in the local db. On the running system, can you put an invalid ldap IP addess in the config, or disconnect the box from the network and do: $ killall udevd $ killall nscd $ udevd -v It shows here (after a long timeout): udevd -v [9575] parse_file: reading '/etc/udev/rules.d/05-udev-early.rules' as rules file [9575] parse_file: reading '/etc/udev/rules.d/10-local.rules' as rules file [9575] lookup_group: error resolving group 'does-not-exist': Connection timed out [9575] parse_file: reading '/etc/udev/rules.d/40-alsa.rules' as rules file ... Kay ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel