Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu 10.04. And I want to install libnss-ldap by apt-get

sudo apt-get install libnss-ldap

And during installation, a graphical interface setup appears.

Because I want to install it on 1000+ servers, graphical interface is out of option.


How can I install it without graphical interface setup?


How can I install libnss-ldap without auth-client-config ldap-auth-client ldap-auth-config

PS: Manually compiling is out of option too.

share|improve this question
up vote 4 down vote accepted

preseed your config:

echo -e " \
libnss-ldap libnss-ldap/dblogin boolean false
libnss-ldap shared/ldapns/base-dn   string  dc=example,dc=com
libnss-ldap libnss-ldap/binddn  string  cn=proxyuser,dc=example,dc=com
libnss-ldap libnss-ldap/dbrootlogin boolean true
libnss-ldap libnss-ldap/override    boolean true
libnss-ldap shared/ldapns/ldap-server   string  ldap://
libnss-ldap libnss-ldap/confperm    boolean false
libnss-ldap libnss-ldap/rootbinddn  string  cn=admin,dc=example,dc=com
libnss-ldap shared/ldapns/ldap_version  select  3
libnss-ldap libnss-ldap/nsswitch    note    \
" | debconf-set-selections

install your package unattended:

export DEBIAN_FRONTEND=noninteractive
aptitude --without-recommends install libnss-ldap
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.