-# handle openldap upgrade
-upgrade_openldap () {
- # aai discovers database type from debconf
- if [ -f /etc/ldap/slapd.conf ] && grep -q ^database.*bdb /etc/ldap/slapd.conf
- then
- echo set slapd/backend BDB | debconf-communicate >/dev/null
- fi
-
- # aai does not depend on the new openldap version
- pkgadd slapd
- pkgadd openldap-aai
-}
-