Package:  nslcd
Version:  0.7.6
Severity: serious
Tags:     patch
User:     debian-...@lists.debian.org
UserTags: debian-edu
User:     initscripts-ng-de...@lists.alioth.debian.org
Usertags: incorrect-dependency

When the DNS server is on the local machine and the nslcd.conf file
uses DNS (name or SRV records) to find the LDAP server, nslcd
currently fail to start at boot because it starts before the DNS
server is operational.

Because of this, I believe the nslcd init.d script should be changes
to have an optional dependency on the $named virtual boot facility, to
ensure that it starts after local DNS servers are started.

I discovered this using the Debian Edu main-server profile, where the
several services are running on the same machine.

Here is a patch to implement this change.

diff -ur nss-pam-ldapd-0.7.6/debian/nslcd.init 
nss-pam-ldapd-0.7.6-pere/debian/nslcd.init
--- nss-pam-ldapd-0.7.6/debian/nslcd.init       2010-05-23 21:31:22.000000000 
+0200
+++ nss-pam-ldapd-0.7.6-pere/debian/nslcd.init  2010-06-15 11:05:48.552338000 
+0200
@@ -23,7 +23,7 @@
 # Provides:          nslcd
 # Required-Start:    $remote_fs $syslog
 # Required-Stop:     $remote_fs $syslog
-# Should-Start:      slapd
+# Should-Start:      $named slapd
 # X-Start-Before:    $mail-transport-agent mail-transport-agent exim4 sendmail 
nullmailer masqmail citadel cron atd autofs am-utils apache2
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to