summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/nslcd.config7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/nslcd.config b/debian/nslcd.config
index 14b4af2..52d5d63 100644
--- a/debian/nslcd.config
+++ b/debian/nslcd.config
@@ -149,6 +149,7 @@ then
db_set nslcd/ldap-base ""
db_set nslcd/ldap-binddn ""
db_set nslcd/ldap-bindpw ""
+ db_set nslcd/ldap-starttls ""
# parse current configuration
parsecfg "$CONFFILE"
else
@@ -162,10 +163,12 @@ else
[ -z "$RET" ] && db_set nslcd/ldap-uris "ldap://127.0.0.1/"
db_get nslcd/ldap-base
[ -z "$RET" ] && db_set nslcd/ldap-base "dc=example,dc=net/"
- db_get nslcd/ldap-starttls
- [ -z "$RET" ] && db_set nslcd/ldap-starttls "false"
fi
+# fallback for starttls option
+db_get nslcd/ldap-starttls
+[ -z "$RET" ] && db_set nslcd/ldap-starttls "false"
+
#
# This is the second part of the script. In this part the configurable
# settings will be presented to the user for approval. The postinst