summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-08-19 09:22:13 +0000
committerArthur de Jong <arthur@arthurdejong.org>2007-08-19 09:22:13 +0000
commit3474163f4e05a4fe339ffe63069498fd006b2e2d (patch)
tree956d42859f1a6dea4312ced7f39d3355b30df288
parent39de31542ef374299b8b59dbc3db6218121bc8a1 (diff)
no longer use /etc/libnss-ldap.conf as a basis for creating a new configuration file since the syntax is no longer compatible
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@350 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--debian/libnss-ldapd.postinst34
1 files changed, 3 insertions, 31 deletions
diff --git a/debian/libnss-ldapd.postinst b/debian/libnss-ldapd.postinst
index d141f23..0bc32ae 100644
--- a/debian/libnss-ldapd.postinst
+++ b/debian/libnss-ldapd.postinst
@@ -109,36 +109,9 @@ create_config()
{
if [ ! -e "$CONFFILE" ]
then
- if [ -f /etc/libnss-ldap.conf ]
- then
- # begin the file by some information as to where it came from
- cat > "$CONFFILE" << EOM
-# $CONFFILE
-# nss-ldapd configuration file. See nss-ldapd.conf(5)
-# for details.
-#
-# This file was based on existing configuration files
-# /etc/libnss-ldap.conf and /etc/libnss-ldap.secret
-
-EOM
- # copy the existing config in place, getting rid
- # of the silly #DEBCONF# lines
- egrep -v '(###DEBCONF###|configuration of this file will be done by debconf|dpkg-reconfigure)' \
- < /etc/libnss-ldap.conf \
- >> "$CONFFILE"
- # also append the secret file if it is present
- if [ -f /etc/libnss-ldap.secret ]
- then
- echo "rootbindpw `cat /etc/libnss-ldap.secret`" >> "$CONFFILE"
- fi
- # disable options that are no longer supported
- cfg_disable host
- cfg_disable port
- else
- # fall back to generating a simple configuration file
- # from this simple template
- # TODO: improve this template
- cat > "$CONFFILE" << EOM
+ # create a simple configuration file from this template
+ # TODO: improve this template
+ cat > "$CONFFILE" << EOM
# $CONFFILE
# nss-ldapd configuration file. See nss-ldapd.conf(5)
# for details.
@@ -164,7 +137,6 @@ rootbindpw verysecret
#scope sub
EOM
- fi
fi
# we're done
return 0