Best way to add LDAP authentication to 7.04 client?

Henk van Lingen henkvl at cs.uu.nl
Thu May 24 12:13:16 UTC 2007


On Mon, May 21, 2007 at 03:50:55PM +0200, Henk van Lingen wrote:
  > 
  > Hi,
  > 
  > I'm working on a preseed installation of 7.04 ubuntu clients.
  > 
  > I've the unattended install working, but now I'm wondering what
  > is the best way to add ldap authentication to the system. It seems
  > the preseed method and/or the ubuntu installer don't have questions
  > about ldap (odd?). So it must be done via a "d-i preseed/late_command"
  > script, i suppose?

After googling around some time, I now have a working ldap/pam
configuration. I installed libpam-ldap libnss-ldap ldap-utils
and edited a hand full of configfiles.

Now I want to do this all unattended at install time. I want to install
the packages, and afterwards copy the configfiles in place.

So I have:

DEBIAN_FRONTEND='noninteractive' apt-get -y install libpam-ldap libnss-ldap ldap-utils

in a script which is called by

d-i preseed/late_command string chroot /target ....

This however does not seems to work, it keep hanging in the apt-get/conf
process.

Looking for an alternative I found debconf, but that does:


fana:/root-# debconf -f noninteractive apt-get install libpam-ldap libnss-ldap ldap-utils
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libnss-ldap (--configure):
o
 subprocess post-installation script returned error exit status 20
dpkg: error processing libpam-ldap (--configure):
 subprocess post-installation script returned error exit status 20
Errors were encountered while processing:
 libnss-ldap
 libpam-ldap
E: Sub-process /usr/bin/dpkg returned an error code (1)
fana:/root-#


Ideas to get those debconf questions silenced?

Regards,
-- 
Henk van Lingen, Systems Administrator & DBA                  (o-      -+
Dept. of Computer Science, Utrecht University.                /\        |
phone: +31-30-2534107                                        v_/_
http://henk.vanlingen.net/             http://www.tuxtown.net/netiquette/




More information about the ubuntu-users mailing list