From 308648f3f3985545020c21d3ea5185667d4367e4 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 16 Mar 2008 14:51:45 +0000 Subject: comment out all rootbind{dn,pw} code as to not copy those directives because they are unsupported git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@642 ef36b2f9-881f-0410-afb5-c4e39611909c --- debian/libnss-ldapd.postinst | 45 ++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) (limited to 'debian/libnss-ldapd.postinst') diff --git a/debian/libnss-ldapd.postinst b/debian/libnss-ldapd.postinst index 08e91b9..32cfe59 100644 --- a/debian/libnss-ldapd.postinst +++ b/debian/libnss-ldapd.postinst @@ -140,12 +140,12 @@ base dc=example,dc=net #ldap_version 3 # The DN to bind with for normal lookups. -binddn cn=annonymous,dc=example,dc=net -bindpw secret +#binddn cn=annonymous,dc=example,dc=net +#bindpw secret # The DN to bind with for lookups as root. -rootbinddn cn=administrator,dc=example,dc=net -rootbindpw verysecret +#rootbinddn cn=administrator,dc=example,dc=net +#rootbindpw verysecret # The search scope. #scope sub @@ -187,24 +187,25 @@ then fi # remove password from database db_set libnss-ldapd/ldap-bindpw "" - # set root bind dn/pw - db_get libnss-ldapd/ldap-rootbinddn - if [ -n "$RET" ] - then - cfg_set rootbinddn "$RET" - db_get libnss-ldapd/ldap-rootbindpw - cfg_set rootbindpw "$RET" - else - # no binddn/pw, disable options - cfg_disable rootbinddn - if grep -i -q "^rootbindpw " $CONFFILE - then - cfg_set rootbindpw "*removed*" - cfg_disable rootbindpw - fi - fi - # remove password from database - db_set libnss-ldapd/ldap-rootbindpw "" +# DISABLE rootbinddn for now because it's not supported +# # set root bind dn/pw +# db_get libnss-ldapd/ldap-rootbinddn +# if [ -n "$RET" ] +# then +# cfg_set rootbinddn "$RET" +# db_get libnss-ldapd/ldap-rootbindpw +# cfg_set rootbindpw "$RET" +# else +# # no binddn/pw, disable options +# cfg_disable rootbinddn +# if grep -i -q "^rootbindpw " $CONFFILE +# then +# cfg_set rootbindpw "*removed*" +# cfg_disable rootbindpw +# fi +# fi +# # remove password from database +# db_set libnss-ldapd/ldap-rootbindpw "" # modify /etc/nsswitch.conf db_get libnss-ldapd/nsswitch enablenss=`echo "$RET" | sed 's/,//g'` -- cgit v1.2.3