I recommand OpenLDAP 2.1.12 or more, PostgreSQL 7.3.1 or more, iODBC 3.0.6 or more. These are the versions that I've tested and turn in production state.
PostgreSQL can be found at http://www.postgresql.org/.
See the PostgreSQL HOWTO if you don't know about PostgreSQL installation. You don't need any special configuration option to have LDAP working on your database now that the PostgreSQL ODBC library is external to PostgreSQL distribution. See next chapters.
iODBC can be found at OpenLink ODBC Drivers. Here is what I use to install libiodbc:
./configure --with-iodbc-inidir=/etc make make install |
The PostgreSQL ODBC driver can be found at psqlODBC - The PostgreSQL ODBC Driver. Here is what I use to install libpsqlodbc:
./configure --with-iodbc --with-odbcinst=/etc make make install |
If you need full ODBC support with PostgreSQL take a look at the odbc.sql file. It contains some compatibility SQL function. Here with don't need it at all.
OpenLDAP can be found at http://www.openldap.org/. You need to compile OpenLDAP with the --enable-sql option. Here is what I use to install OpenLDAP:
./configure --enable-sql --without-cyrus-sasl --disable-bdb --enable-crypt make depend make make install |
Here options --without-cyrus-sasl and --disable-bdb are used to remove Cyrus Sasl authentication support and the use of a Berkeley DB backend that could break the OpenLDAP configuration phase.
If you use crypt password use the --enable-crypt configuration option else you will never be allowed to authenticate with ldap.
If configure complain about sql.h not found, remember that you have to install ODBC support before.