pré-configurou sua configuração:
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
instale seu pacote sem acompanhamento:
export DEBIAN_FRONTEND=noninteractive
aptitude --without-recommends install libnss-ldap