Ubuntu Notebook Remix 1.0.1 does not work with OpenLDAP

Bug #324889 reported by Asmo Koskinen
2
Affects Status Importance Assigned to Milestone
Ubuntu Netbook Remix
Invalid
Undecided
Unassigned
libnss-ldap (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Ubuntu Notebook Remix 1.0.1 does not work with OpenLDAP.

Running 'getent passwd' with strace, hints that it is incorrectly linked (included as a attachment):

execve("/usr/bin/getent", ["getent", "passwd"], [/* 25 vars */]) = 0
....
open("/lib/tls/i686/sse2/cmov/libnss_ldap.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
....
open("/usr/lib/libnss_ldap.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)

Comparing the same setup on standard Ubuntu 8.04.1, the problem can be traced to libnss-ldap.

UNR 1.0.1:
/lib/nss_ldap.so.1
/usr/lib/libnss_ldap.so
/lib/nss_ldap.so

Ubuntu 8.04.2:
/lib/libnss_ldap-2.7.so
/usr/lib/libnss_ldap.so
/lib/libnss_ldap.so.2

WORKAROUND:
-----------

Installing libnss-ldap from the Hardy repositories fixes the issue.
  dpkg -i --force-architecture libnss-ldap_258-1ubuntu3_i386.deb

-----------

After that ugly fix (--force-architecture) Asus Eee 701 4G was able to login to the openLDAP server.

Best Regards Asmo Koskinen.

-------------------------------------

Update. Because of ugly fix you can't update & upgrade UNR 1.0.1 anymore. Apt-get does not see this hardy's package, so ldap-auth-client of course try to install package that does not work with openLDAP.

apt-get update
apt-get upgrade
  ldap-auth-client: Riippuvuudet: libnss-ldap

We really need fixed "libnss_ldap" for openLDAP ;-).

Best Regards Asmo Koskinen.

Revision history for this message
Asmo Koskinen (asmok) wrote :
Asmo Koskinen (asmok)
description: updated
Revision history for this message
Asmo Koskinen (asmok) wrote :

Here is a better fix by Mikael Lammentausta. After this package you can update & upgrade UNR 1.0.1. But we still need a real fix for libnss-ldap package.

1. sudo dpkg -i libnss-ldap_258-1ubuntu4_lpia.deb

(Luetaan tietokantaa... 96974 tiedostoa ja hakemistoa tällä hetkellä
asennettuna.)
Valmistellaan paketin libnss-ldap 258-1ubuntu3 vaihtamista (käyttäen
pakettia libnss-ldap_258-1ubuntu4_lpia.deb)...
Puretaan korvaavaa libnss-ldap-pakettia...
Säädän asetukset: libnss-ldap (258-1ubuntu3) ...

2. dpkg-query -L libnss-ldap

/.
/sums
/var
/var/lib
/var/lib/libnss-ldap
/etc
/etc/init.d
/etc/init.d/libnss-ldap
/usr
/usr/sbin
/usr/sbin/nssldap-update-ignoreusers
/usr/lib
/usr/share
/usr/share/doc
/usr/share/doc/libnss-ldap
/usr/share/doc/libnss-ldap/NEWS.gz
/usr/share/doc/libnss-ldap/examples
/usr/share/doc/libnss-ldap/examples/ldap.conf.gz
/usr/share/doc/libnss-ldap/examples/people.ldif
/usr/share/doc/libnss-ldap/examples/nsswitch.ldap
/usr/share/doc/libnss-ldap/examples/groups.ldif
/usr/share/doc/libnss-ldap/changelog.Debian.gz
/usr/share/doc/libnss-ldap/copyright
/usr/share/doc/libnss-ldap/buildinfo.gz
/usr/share/doc/libnss-ldap/AUTHORS
/usr/share/doc/libnss-ldap/LDAP-Permissions.txt.gz
/usr/share/doc/libnss-ldap/README.Debian
/usr/share/doc/libnss-ldap/README.gz
/usr/share/man
/usr/share/man/man5
/usr/share/man/man5/nss_ldap.5.gz
/usr/share/libnss-ldap
/lib
/lib/libnss_ldap-2.7.so
/lib/nss_ldap.so.1
/lib/libnss_ldap.so.2
/usr/lib/libnss_ldap.so
/lib/nss_ldap.so

3. sudo apt-get upgrade

Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu
Luetaan tilatietoja... Valmis
0 päivitetty, 0 uutta asennusta, 0 poistettavaa ja 0 päivittämätöntä.

Best Regards Asmo Koskinen.

Revision history for this message
Mikael Lammentausta (mikael-lammentausta-gmail) wrote :

This "fix" was created by copying data/lib/* from the i386 package to lpia.
After that the checksums were recalculated.

   74 mkdir libnss-ldap_258-1ubuntu4_lpia_deb
   75 cd libnss-ldap_258-1ubuntu4_lpia_deb/
   89 mkdir data
   90 tar xzf ../libnss-ldap_258-1ubuntu3_lpia_deb/data.tar.gz -C data/

  116 cp ../libnss-ldap_258-1ubuntu3_i386_deb/data/lib/* data/lib/

  147 mkdir data/DEBIAN
  149 tar xzf ../libnss-ldap_258-1ubuntu3_lpia_deb/control.tar.gz -C data/DEBIAN/
  201 cd data/
  210 find etc lib usr var | xargs md5sum > DEBIAN/md5sums

  162 dpkg -b data libnss-ldap_258-1ubuntu4_lpia.deb

Revision history for this message
Paul Larson (pwlars) wrote :

Moving to Ubuntu distribution

Changed in netbook-remix:
status: New → Invalid
Revision history for this message
Paul Larson (pwlars) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in libnss-ldap (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libnss-ldap (Ubuntu) because there has been no activity for 60 days.]

Changed in libnss-ldap (Ubuntu):
status: Incomplete → Expired
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.