From 0dcbb114265d3df57534ae9966dbd8c9ef0afeab Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 25 Aug 2007 11:51:26 +0000 Subject: clear password informating in Debconf database if binddn is not used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@361 ef36b2f9-881f-0410-afb5-c4e39611909c --- debian/libnss-ldapd.config | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/libnss-ldapd.config b/debian/libnss-ldapd.config index aec5654..b3fd530 100644 --- a/debian/libnss-ldapd.config +++ b/debian/libnss-ldapd.config @@ -152,7 +152,6 @@ do # ask the question, go to the next question or back state="bindpw" db_go || state="server" - # TODO: if answer is empty also clear passwd ;; bindpw) # only ask question if we have a binddn @@ -161,6 +160,9 @@ do then # ask for login information db_input medium libnss-ldapd/ldap-bindpw || true + else + # clear password + db_set libnss-ldapd/ldap-bindpw "" fi # ask the question, go to the next question or back state="rootbinddn" @@ -172,7 +174,6 @@ do # ask the question, go to the next question or back state="rootbindpw" db_go || state="bindpw" - # TODO: if answer is empty also clear passwd ;; rootbindpw) # only ask question if we have a rootbinddn @@ -181,6 +182,9 @@ do then # ask for login information db_input medium libnss-ldapd/ldap-rootbindpw || true + else + # clear password + db_set libnss-ldapd/ldap-rootbindpw "" fi # ask the question, go to the next question or back state="nsswitch" -- cgit v1.2.3