diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-03-16 15:51:45 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-03-16 15:51:45 +0100 |
commit | 308648f3f3985545020c21d3ea5185667d4367e4 (patch) | |
tree | 6505ba5d5a23a6acab5c904d6d378000e382360d /debian/libnss-ldapd.postinst | |
parent | 1c450a96a4d72e0ff43b166df3098a7df2c8cc80 (diff) |
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
Diffstat (limited to 'debian/libnss-ldapd.postinst')
-rw-r--r-- | debian/libnss-ldapd.postinst | 45 |
1 files changed, 23 insertions, 22 deletions
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'` |