I'm trying to install openldap on ubuntu. The reason is because we have multiple servers and would like to use ldap to reduce the userid management. I am already running mysql, so I thought I would use the existing db instead of installing bdb also.
I tried using "apt-get install slapd", but I think that comes compiled without --enable-sql=yes because when I try to start it up I get "Unrecognized database type (sql)".
So I downloaded version 2.4.9 to build it manually. I tried running "./configure --enable-bdb=no --enable-sql=yes", but that gives me the error message "configure: error: BDB/HDB: BerkeleyDB not available". I don't understand why I would get this message if I set --enable-bdb=no.
Am I not including all the right configuration parameters?
Steve Birnie steve@securecarddealer.com writes:
I'm trying to install openldap on ubuntu. The reason is because we have multiple servers and would like to use ldap to reduce the userid management. I am already running mysql, so I thought I would use the existing db instead of installing bdb also.
I tried using "apt-get install slapd", but I think that comes compiled without --enable-sql=yes because when I try to start it up I get "Unrecognized database type (sql)".
The version of OpenLDAP in Debian, and presumably therefore in Ubuntu, is built with --enable-backends=mod, which means that all backends (except ldbm where applicable) are built as modules. This definitely should include the SQL backend. Did you forget to load the SQL module before trying to use it, perhaps?
Steve Birnie wrote:
I'm trying to install openldap on ubuntu. The reason is because we have multiple servers and would like to use ldap to reduce the userid management. I am already running mysql, so I thought I would use the existing db instead of installing bdb also.
I tried using "apt-get install slapd", but I think that comes compiled without --enable-sql=yes because when I try to start it up I get "Unrecognized database type (sql)".
So I downloaded version 2.4.9 to build it manually. I tried running "./configure --enable-bdb=no --enable-sql=yes", but that gives me the error message "configure: error: BDB/HDB: BerkeleyDB not available". I don't understand why I would get this message if I set --enable-bdb=no.
Am I not including all the right configuration parameters?
I think it's because Berkeley is needed by back-bdb and by back-hdb, as the error message says; you need to disable both to skip checking for Berkeley's DB availability.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------
openldap-software@openldap.org