nss_updatedb error message uncorrectly reports missing libraries

Bug #302339 reported by Francis Viviers
12
Affects Status Importance Assigned to Milestone
nss-updatedb (Debian)
Won't Fix
Wishlist
nss-updatedb (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi

After installing nss-updatedb and running it i get the following messages :

root@bartpe-14293:~# nss_updatedb passwd
Failed to load nameservice provider libnss_passwd.so.2: libnss_passwd.so.2: cannot open shared object file: No such file or directory
root@bartpe-14293:~# nss_updatedb group
Failed to load nameservice provider libnss_group.so.2: libnss_group.so.2: cannot open shared object file: No such file or directory

Revision history for this message
Gabriel Ruiz (anakron) wrote :

Try apt-get install -f. If you really want a patch for it tell me wich ones must be.

Revision history for this message
Gabriel Ruiz (anakron) wrote :

Try apt-get install -f. If you really want a patch for it tell me wich ones must be. They didnt appear in "Recomends"? These are important functions of nss_updatedb? if they are so important, ill change it.

Revision history for this message
Francis Viviers (viviersf) wrote :

HI Gabriel

It seems that this problem is cause by the program not filtering input, the first argument to the program must be winbind/ldap and it does not filter this properly. This can be fixed by a simple patch so that others won't make the same mistake.

Revision history for this message
Luis F. Lopez (luis.lopez) wrote :

This error is also present upstream

Changed in nss-updatedb:
status: New → Confirmed
Revision history for this message
Luis F. Lopez (luis.lopez) wrote :

Error summary changed to reflect the real issue as per Francis comments.

Changed in nss-updatedb:
status: New → Confirmed
Revision history for this message
Gabriel Ruiz (anakron) wrote :

This must is related to the dependencies. Install libnss-ldap and it will go ok. Ill make a patch for it. If it continues throwing bugs, tell me and ill make a patch for the real problem.

See you.

Revision history for this message
Gabriel Ruiz (anakron) wrote :

This is a patch for nss-updatedb that includes libpam-ldap and libnss-ldap in suggests packages.

See you

Gabriel Ruiz (anakron)
Changed in nss-updatedb:
importance: Undecided → Unknown
status: Confirmed → Unknown
assignee: nobody → anakron
David Futcher (bobbo)
Changed in nss-updatedb:
assignee: anakron → bobbo
status: Confirmed → In Progress
Revision history for this message
David Futcher (bobbo) wrote :

Hi

Thanks for submitting your patch. I have looked at it, but don't think it is ready to be included in Ubuntu yet:

1 - The changelog entries are not written in standard changelog "style". For example, this is what I would have made the changelog:

nss-updatedb (10-1ubuntu2) jaunty; urgency=low

  * debian/control: Add libpam-ldap and libnss-ldap to Suggests (LP: #302339)

 -- Gabriel Ruiz Manzano <email address hidden> Sun, 07 Dec 2008 10:42:17 -0300

2 - The Debian maintainer doesn't agree with the changes (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508057#10). You probably want to work with him until we know exactly what we should put in Suggests.

3 - Your patch includes direct changes in config.sub and config.guess. This is probably due to a malfunctioning debian/rules file.

Please correct these problems and upload another candidate debdiff and re-subscribe ubuntu-universe-sponsors.

Thanks,
David

Changed in nss-updatedb:
assignee: bobbo → anakron
status: In Progress → Incomplete
Revision history for this message
Luis F. Lopez (luis.lopez) wrote :

Gabriel,

The error is not related to dependencies. The program seems not to have a good sanitization of the input, for example if
you try:

# nss_updatedb blah passwd

You get the error:

Failed to load nameservice provider libnss_blah.so.2: libnss_blah.so.2: cannot
open shared object file: No such file or directory

If you check the attachment you'll see that the second parameter is never validated when two or three parameters are passed to the program.

Changed in nss-updatedb:
assignee: anakron → nobody
status: Incomplete → Confirmed
Changed in nss-updatedb:
status: Unknown → Confirmed
Changed in nss-updatedb (Debian):
status: Confirmed → Won't Fix
Changed in nss-updatedb (Debian):
importance: Unknown → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.