Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Question:

How can I install it without graphical interface setup?

OR

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
add comment

1 Answer 1

up vote 2 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://127.0.0.1/
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
add comment

Your Answer

 
discard

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.