[Samba] Samba LDAP and Ubuntu
Christian Perrier
bubulle at debian.org
Tue Jun 24 16:18:02 GMT 2008
Quoting Marcio Merlone (marcio.merlone at a1.ind.br):
> It is a known bug, I found on a bugzilla somewhere. The bug consists
> that the booting process needs the ldap server before it gets started.
> So, the workaround, for now, is to have a slave ldap server which you
> can use at least for booting. In my /etc/ldap.conf I have:
>
> # grep host /etc/ldap.conf
> host 127.0.0.1 192.168.0.2
That sounds like the following bug we fixed in the 2:3.0.30-3 Debian
package:
* add a soft dependency on slapd in init script to allow
proper operation when dependency-based boot sequence is enabled.
Thanks to Petter Reinholdtsen for reporting and providing a patch
Closes: #478800
In Debian, that bug hurts only people who use dependency-based init
(which is not the default for lenny...we'll switch to that for
post-lenny releases).
However, maybe Ubuntu already activated that. In such case, I'd bet
that all Ubuntu releases are affected (including Hardy).
The right fix is:
diff -ur samba-3.0.28a/debian/samba.init samba-3.0.28a-new/debian/samba.init
--- samba-3.0.28a/debian/samba.init 2008-05-01 09:50:43.000000000 +0200
+++ samba-3.0.28a-new/debian/samba.init 2008-05-01 09:48:12.000000000 +0200
@@ -4,6 +4,8 @@
# Provides: samba
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
+# Should-Start: slapd
+# Should-Stop: slapd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start Samba daemons (nmbd and smbd)
(the file to fix is /etc/init.d/samba)
More information about the samba
mailing list