Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/libnss-ldapd.postinst7
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/libnss-ldapd.postinst b/debian/libnss-ldapd.postinst
index 56b2a3e..fe2cf4b 100644
--- a/debian/libnss-ldapd.postinst
+++ b/debian/libnss-ldapd.postinst
@@ -197,7 +197,12 @@ then
cfg_uris "$RET"
# set search base
db_get libnss-ldapd/ldap-base
- cfg_set base "$RET"
+ if [ -n "$RET" ]
+ then
+ cfg_set base "$RET"
+ else
+ cfg_disable base
+ fi
# set bind dn/pw
db_get libnss-ldapd/ldap-binddn
if [ -n "$RET" ]