3

I'd like to install libpam-ldap to use ldap on a client machine and I was hoping to use

sudo apt-get install -qq libpam-ldap

to quietly install the package as part of a bash script used to configure a client once Ubuntu installs. However it still comes up with a blue screen GUI asking for configuration information. Since I intend to just copy an existing /etc/ldap.conf file to overwrite the auto generated one I'd like to skip that step but don't know how.

How do you install a package and make it skip its interactive configuration stage?

3 Answers 3

7

You need to set the debconf frontend to noninteractive:

 sudo DEBIAN_FRONTEND=noninteractive apt-get install -qq libpam-ldap
1
  • 1
    Thanks for your answer! Also, before I use it on a none test environment, is there a way to get a list of all config files the command normally makes so that I can make sure to override them? (The reason I ask is that I think it creates another config files besides /etc/ldap.conf?)
    – Evan
    Dec 21, 2010 at 23:24
2

You're looking for a way to configure debconf for unattended operation.

In the debconf manpage check out the section on "Unattended Package Installation". The same manpage has information about Priorities, which might let you be able to skip the question entirely.

I've set this up in the past with Puppet and preseeds but it's been a long time, hopefully this will at least get you on the right track.

1
  • Cool thanks, I'm going to look into more about unattended installs.
    – Evan
    Dec 21, 2010 at 23:22
-1

I write script for fast login in LDAP http://itc-life.ru/skript-vvoda-debian-8-v-ldapdomen/

1
  • What if the link goes down ? this won't be an answer anymore .. Please copy / paste important part from your link to this answer
    – storm
    Apr 29, 2016 at 14:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .