Bug#379728: [Pkg-openldap-devel] Bug#379728: slapd: upgrade to
2.3.24-2 hangs
Matthijs Mohlmann
matthijs at cacholong.nl
Tue Jul 25 14:39:58 UTC 2006
Christoph Kaminski wrote:
> Stephen Gran schrieb:
>> On Tue, Jul 25, 2006 at 12:07:25PM +0200, Christoph Kaminski said:
>>> + create_new_user
>>> ++ getent group openldap
>>>
>>> it hangs here!
>>
>> Does that command hang for you when run normally? Do you use
>> libnss-ldap?
>>
>> P.S., please keep the bug log in the cc: list.
> getent group openldap doesnt hang here but it hasnt any output
>
> yes I use libnss-ldap.
>
Ok, the problem is the following: (I would get the same trouble on my
production systems if I upgrade them, but they're running Sarge)
upgrade procedure:
- stop slapd
- check if user exists (including group) getent
- adduser if it doesn't exist
- standard procedure to upgrade a database.
At the moment it checks for the user the LDAP database is down (I assume
that libnss-ldap is using the database at localhost) which causes getent
group openldap to hang.
Solution:
Move the checking code to the preinst before stopping slapd, add a flag
to /var/lib/slapd that the user exist or not. And create the user
according to that in the postinst. (Or add the user in the preinst too)
Until someone comes up with a better solution, I'll implement that
tonight and hopefully my sponsor is available to upload.
Regards,
Matthijs Mohlmann
More information about the Pkg-openldap-devel
mailing list