[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

slapd upgrade from 2.0.27-4 to 2.1.22-1 is a catastrophe



I have a testing system (with a handful of packages pinned to unstable).
During the upgrade I performed today, slapd went from 2.0.27-4 to
2.1.22-1. The result is catastrophic :
- Postfix no longer works properly (I am using ldap virtual maps)
- The upgrade process produced a bunch of errors I do not understand but
that seem to correlate with LDAP tree migration problems.

Here is what I got from the installation process :

-------------------------------------------------------------------
Dumping directory to
/var/backups/ldap/2.0.27-4/slapd-dc=ruwenzori,dc=net-slapcat.ldif with
new slapcat... /etc/ldap/slapd.conf: line 53: unknown directive
"defaultaccess" in ldbm database definition (ignored)
done
dn: ou=People,dc=ruwenzori,dc=net
Missing RDN

[A bunch of additional 'Missing RDN' errors]

dn: cn=stephanie,cn=valdmann.com,ou=Mail,dc=ruwenzori,dc=net
Mismatched RDN: "cn=sva"

[A bunch of additional assorted 'Missing RDN' and 'Mismatched RDN'
errors]

Use of uninitialized value in scalar assignment at
/usr/share/slapd/fix_ldif line 613, <> chunk 86.
Moving old database files to /var/backups/ldap/2.0.27-4/... done
Recreating directory from
/var/backups/ldap/2.0.27-4/slapd-dc=ruwenzori,dc=net-slapcat.ldif.fixed... /etc/ldap/slapd.conf: line 53: unknown directive "defaultaccess" in ldbm database definition (ignored)
/etc/ldap/slapd.conf: line 53: unknown directive "defaultaccess" in ldbm
database definition (ignored)
done
Starting OpenLDAP: slapd.
-------------------------------------------------------------------

slapd is started, but large chunks (I would say most) of my LDAP tree
did not get through the conversion process that apparently happened
during the installation. In addition I have no idea what a RDN is and I
can't find the information. If anyone has a clue I would be happy if
they shared it here.

Postfix keeps bitching about LDAP being broken, but I guess it is just
the effect of the slapd setup being very broken, so I guess I should not
pay attention to those messages and focus on getting my LDAP tree back
online in proper shape.

Jul 25 16:32:39 localhost postfix/nqmgr[9980]: fatal: load_library_symbols: dlopen failure loading /usr/lib/postfix/dict_ldap.so: /usr/lib/postfix/dict_ldap.so: undefined symbol: ldap_url_search_st
Jul 25 16:32:39 localhost postfix/cleanup[9979]: fatal: load_library_symbols: dlopen failure loading /usr/lib/postfix/dict_ldap.so: /usr/lib/postfix/dict_ldap.so: undefined symbol: ldap_url_search_st
Jul 25 16:32:40 localhost postfix/master[7767]: warning: process /usr/lib/postfix/cleanup pid 9979 exit status 1
Jul 25 16:32:40 localhost postfix/master[7767]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling
Jul 25 16:32:40 localhost postfix/master[7767]: warning: process /usr/lib/postfix/nqmgr pid 9980 exit status 1
Jul 25 16:32:40 localhost postfix/master[7767]: warning: /usr/lib/postfix/nqmgr: bad command startup -- throttling
Jul 25 16:32:56 localhost postfix/smtpd[10001]: fatal: load_library_symbols: dlopen failure loading /usr/lib/postfix/dict_ldap.so: /usr/lib/postfix/dict_ldap.so: undefined symbol: ldap_url_search_st
Jul 25 16:32:57 localhost postfix/master[7767]: warning: process /usr/lib/postfix/smtpd pid 10001 exit status 1
Jul 25 16:32:57 localhost postfix/master[7767]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

I guess the quick fix would be to downgrade to slapd 2.0.27-4 but I
can't find the package with that version. Has anyone got an archive with
old packages ?




Reply to: