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?
You need to set the debconf frontend to noninteractive:
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.
I write script for fast login in LDAP http://itc-life.ru/skript-vvoda-debian-8-v-ldapdomen/