According to the OpenLDAP documentation, I'm supposed to patch Berkeley DB.
I've got Berkeley DB installed already, and I've found the patch files, but what do I do with them? They don't appear to be executable.
you need to use patch command to apply patches to a source distribution and then recompile DB from sources
in a linux box you will need to do something like:
tar zxvf db-4.7.25.tar.gz
patch -p0 < patch.db-184.108.40.206
patch -p0 < patch.db-220.127.116.11
patch -p0 < patch.db-18.104.22.168
patch -p1 < patch.db-22.214.171.124
Note that you should pass relevant options to configure, i not sure what are requisites for OpenLDAP , but you are better asking in their forums
Regards, José Gutíerrez de la Concha