applied a patch to servers/slapd/back-bdb/filterindex.c from Howard and the "ldapsearch uid=a*" now works although slapindex and slapd would not work with the pre-patched 2.1.19 database so I removed the database files and built the database again from an ldif-file to fix this