[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Heimdal Kerberos and Berkeley 4.x



Hi Robert,

> -----Original Message-----
> From: Robert Fitzpatrick [mailto:robert@webtent.com]
> Sent: Wednesday, October 29, 2003 10:14 AM
> To: Matthew Hardin
> Cc: 'OpenLDAP'
> Subject: RE: Heimdal Kerberos and Berkeley 4.x
> 
> On Tue, 2003-10-28 at 17:44, Matthew Hardin wrote:
> > We use db-4.1.x with heimdal for our packaged and supported LDAP
> software.
> > You will need to change the number of parameters in the db_open call,
> but
> > otherwise it should work just fine.
> The problem I'm having is the build of Heimdal, here is what I'm getting
> below with some history:

One of our products is an LDAP-backed KDC, and we use heimdal for that. We
also provide a BDB-backed KDC, so we also build with BDB. To support BDB 4.1
we had to tweak the parameters in the DB_open call in db3.c. In 4.1
SleepyCat added a parameter to the DB_open call, which can be left NULL. I
can't remember offhand which it is, but a review of the API docs should tell
you quickly which one that is.

Matthew Hardin
Symas Corporation
Packaged, certified, and supported LDAP software:
http://www.symas.net/download
 
> > Robert Fitzpatrick <robert@webtent.com> writes:
> > I don't know, it could be some problem with the patch too. Anyway the
> > change is fairly trivial, just remove the line that tries to set the
> > scope_id.
> 
> Thanks, that seems to have worked for that error, now this:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -I../../lib/roken -I../../lib/roken -I../asn1 -I./../asn1 -I/usr/include
> -Wall -Wmissing-prototypes
> -Wpointer-arith -Wbad-function-cast -Wmissing-declarations
> -Wnested-externs -g -O2 -c db3.c -o db3.o
> db3.c: In function `DB_seq':
> db3.c:90: warning: unused variable `d'
> db3.c: In function `DB_open':
> db3.c:265: warning: passing arg 2 of pointer to function from
> incompatible pointer type
> db3.c:265: warning: passing arg 4 of pointer to function makes pointer
> from integer without a cast
> db3.c:265: too few arguments to function
> db3.c:268: warning: passing arg 2 of pointer to function from
> incompatible pointer type
> db3.c:268: warning: passing arg 4 of pointer to function makes pointer
> from integer without a cast
> db3.c:268: too few arguments to function
> make[3]: *** [db3.lo] Error 1
> make[3]: Leaving directory `/root/heimdal-0.6/lib/hdb'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/root/heimdal-0.6/lib/hdb'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/heimdal-0.6/lib'
> make: *** [all-recursive] Error 1
> 
> Any Ideas? This Linux that Cobalt used for this RaQ4 server is a hacked
> RedHat 6.2 I believe.
> 
> > On Mon, 2003-10-27 at 04:18, Johan Danielsson wrote:
> > You have to use either BerkeleyDB 3.x or 4.0. The 4.1 version has
> different
> > API. Several times reported on this list but the code in cobfigure was
> > never improved to tell you that.
> --
> Robert