On Thursday 17 October 2013 21:23:55 Arthur de Jong wrote:
> Control: tags -1 + pending
> Control: found -1 nss-ldapd/0.6.2
> 
> On Tue, 2013-10-15, Lisandro Damián Nicanor Pérez Meyer wrote:
> > /etc/init.d/nslcd should add $network to Required-Start (and possibly
> > to Required-Stop) to be able to contact the LDAP server.
> > 
> > What I'm seeing in my systems is that sometimes nslcd gets started
> > before an IP is provided by a DHCP server (yes, I don't have static
> > IPs in this place).
> > 
> > Then it can't reach the LDAP server.
> 
> Thanks for reporting this.
> 
> The dependency on $network was dropped in version 0.6.2 while fixing
> #478807. At the time, it was assumed that $remote_fs implicitly depends
> on $network so the explicit dependency was no longer needed.
> 
> I will re-add the Should-Start and Should-Stop dependencies in the next
> upload.
>
> One minor note though: the description of what $network implies differs
> a bit from Debian (the LSBInitScripts wiki page says "low level
> networking (ethernet card; may imply PCMCIA running)") and the LSB (LSB
> 3.1 says "basic networking support is available. Example: a server
> program could listen on a socket."). Neither of these guarantee that a
> route to the LDAP server is available.

Then maybe it may be that $remote_fs implies $network but does not guarantees 
access :-/
 
> If you're using NetworkManager I don't think you can give any guarantees
> as to when, during the boot sequence, the interface becomes available.

simple /etc/network/interfaces config in this case.

> The 0.9.1-1 version of nss-pam-ldapd includes an if-up script and change
> in nslcd to re-check the reachability of the LDAP server quickly after a
> network connection is established which should fix more problem-cases.

Now this seems great! Thanks a lot!

-- 
"One of the biggest wake-up calls of my career was when I saw a record
contract. I said, 'Wait - you sell it for $18.98 and I make 80 cents? And I
have to pay you back the money you lent me to make it and then you own it? Who
the f**k made that rule? Oh! The record labels made it because artists are
dumb and they'll sign anything' - like I did.
  Trent Reznor, Nine Inch Nails on http://contactmusic.com/
  http://tinyurl.com/c2wda4

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to