On 5/24/07, <b class="gmail_sendername">Henk van Lingen</b> <<a href="mailto:henkvl@cs.uu.nl">henkvl@cs.uu.nl</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, May 21, 2007 at 03:50:55PM +0200, Henk van Lingen wrote:<br> ><br> > Hi,<br> ><br> > I'm working on a preseed installation of 7.04 ubuntu clients.<br> ><br> > I've the unattended install working, but now I'm wondering what
<br> > is the best way to add ldap authentication to the system. It seems<br> > the preseed method and/or the ubuntu installer don't have questions<br> > about ldap (odd?). So it must be done via a "d-i preseed/late_command"
<br> > script, i suppose?<br><br>After googling around some time, I now have a working ldap/pam<br>configuration. I installed libpam-ldap libnss-ldap ldap-utils<br>and edited a hand full of configfiles.<br><br>Now I want to do this all unattended at install time. I want to install
<br>the packages, and afterwards copy the configfiles in place.<br><br>So I have:<br><br>DEBIAN_FRONTEND='noninteractive' apt-get -y install libpam-ldap libnss-ldap ldap-utils<br><br>in a script which is called by
<br><br>d-i preseed/late_command string chroot /target ....<br><br>This however does not seems to work, it keep hanging in the apt-get/conf<br>process.<br><br>Looking for an alternative I found debconf, but that does:<br>
<br><br>fana:/root-# debconf -f noninteractive apt-get install libpam-ldap libnss-ldap ldap-utils<br>debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
<br>dpkg: error processing libnss-ldap (--configure):<br>o<br> subprocess post-installation script returned error exit status 20<br>dpkg: error processing libpam-ldap (--configure):<br> subprocess post-installation script returned error exit status 20
<br>Errors were encountered while processing:<br> libnss-ldap<br> libpam-ldap<br>E: Sub-process /usr/bin/dpkg returned an error code (1)<br>fana:/root-#<br><br><br>Ideas to get those debconf questions silenced?<br><br>Henk van Lingen, Systems Administrator & DBA
</blockquote><div><br>Hey Henk,<br><br>Try setting the priority to the questions to be asked:<br><br>$> cat /etc/apt/apt.conf.d/70debconf <br>// Pre-configure all packages with debconf before they are installed.<br>// If you don't like it, comment it out.
<br><br>$> man dpkg-preconfigure<br>...<br>// Pre-configure all packages before<br> // they are installed.<br> DPkg::Pre-Install-Pkgs {<br> "dpkg-preconfigure --apt --priority=high";
<br> };<br><br></div><br></div>Perhaps you can do this from the command line when you call "apt-get". All you needed to know was the option name "DPkg::Pre-Install-Pkgs". <br><br>$> man apt-get
<br><br>Though you seem to be very well informed.<br><br>Hope that helps<br clear="all"><br>-- <br>----)(----- <br>Luis Mondesi<br>*NIX Guru<br><br>"Feliz el hombre que ha hallado sabiduria y el hombre que consigue discernimiento, porque el tenerla como ganancia es mejor que tener la plata como ganancia; y el tenerla como producto, [mejor] que el oro mismo" (Prov 3:13-14)