> Either way, isn't this a bug in libnss-ldap, not ldapscripts?

It also seems to me that the bug is more on the libnss-ldap side (or maybe on 
the way nscd is configured).

the description of libnss-ldap says 
(http://packages.debian.org/lenny/libnss-ldap): 
"If used with glibc 2.1's nscd (Name Service Cache Daemon) it will help reduce 
your network traffic and speed up lookups for entries."

which legitimates the fact that nscd is a "Recommends" and not a "Depends"

I think the problem lies in the last section of the postinst script: 

if [ -s /usr/sbin/nscd ]; then
        if [ `pidof -s nscd` ]; then
                if which invoke-rc.d >/dev/null 2>&1; then
                        invoke-rc.d nscd restart
                else
                        /etc/init.d/nscd restart
                fi
        fi
fi

as nscd is "only" a Recommends, it is not necessarily configured before 
libnss-ldap. The log shows that nscd was unpack but not configured yet. So I 
tried this:
# dpkg --unpack /var/cache/apt/archives/nscd_2.7-14_amd64.deb
Selecting previously deselected package nscd.
(Reading database ... 5802 files and directories currently installed.)
Unpacking nscd (from .../archives/nscd_2.7-14_amd64.deb) ...

# ls /usr/sbin/nscd  
/usr/sbin/nscd

# ls /etc/init.d/nscd*         
/etc/init.d/nscd.dpkg-new

So before nscd is configured, /etc/init.d/nscd does not exist yet.

A trivial fix could be to replace 
if [ -s /usr/sbin/nscd ]; then 
by:
if [ -s /etc/init.d/nscd ]; then

Loris



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to