diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-09-08 17:24:06 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-09-08 17:24:06 +0000 |
commit | 886011c9e282ed3c4acd40471209a152ca72be6d (patch) | |
tree | 33f5688486abfda7215b76540ae0bc47471b0d1f | |
parent | 32f10c93e66781ba13757a7bdaf0ebf6f79641cd (diff) |
fix "Use StartTLS?" debconf question when no ssl option is defined in the config
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@989 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | debian/nslcd.config | 7 |
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 |