summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"