Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-08-25 13:51:26 +0200
committerArthur de Jong <arthur@arthurdejong.org>2007-08-25 13:51:26 +0200
commit0dcbb114265d3df57534ae9966dbd8c9ef0afeab (patch)
tree34eb0d03f5b43e0693054a53c58876ade158f387
parent6f3c49ca44efcc81e074f544b423d24b023d16d0 (diff)
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
-rw-r--r--debian/libnss-ldapd.config8
1 files 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"