pg.ddx.io pgsql-ports@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgreSQL and Kerberos 5 on Solaris
5+ messages / 5 participants
[nested] [flat]
* PostgreSQL and Kerberos 5 on Solaris
@ 2006-06-30 15:55 James Gates <James.Gates@Sun.COM>
0 siblings, 1 reply; 5+ messages in thread
From: James Gates @ 2006-06-30 15:55 UTC (permalink / raw)
To: pgsql-ports
Prior to Solaris 11 (Nevada), the full Kerberos 5 API was never exposed
(only the gss interface), so building PostgreSQL with the "--with-krb5"
option is a problem.
In Nevada, Sun has exposed the full MIT Kerberos 5 API (v1.4.0). So
building PostgreSQL with Kerberos should be possible/easy. If I try to
build 8.1.4 though, it fails with the following error:
$ ./configure --with-krb5 --without-readline
checking build system type... sparc-sun-solaris2.11
checking host system type... sparc-sun-solaris2.11
... snip ...
checking for library containing com_err... -lkrb5
checking for library containing krb5_encrypt... no
configure: error: could not find function 'krb5_encrypt' required for
Kerberos 5
This is because in krb5 v1.4.0, the krb5_encrypt() function is
deprecated/removed, so doesn't exist anywhere in the Solaris libraries.
It is replaced by krb5_c_encrypt() (I think this change occurred
sometime between krb5 v1.2.1 and v1.4.0)
But looking more closely at the PostgreSQL 8.1.4 code, I see that it
never even uses the krb5_encrypt() function anyway! So although it's
presence might be a useful method for detecting the presence of Kerberos
5 (pre v1.4.0), it seems unnecessary for the successful operation of
PostgreSQL.
By simply removing the check for krb5_encrypt() from the configure
script, I can successfully build PostgreSQL with krb5 on Nevada.
Does anyone know why the check for krb5_encrypt() exists in configure
when the code doesn't use it? And would absence of a good reason
indicate this is a bug (and the check should be removed)?
Regards,
Jim
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL and Kerberos 5 on Solaris
@ 2006-07-03 03:39 Tom Lane <tgl@sss.pgh.pa.us>
parent: James Gates <James.Gates@Sun.COM>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2006-07-03 03:39 UTC (permalink / raw)
To: James.Gates@Sun.COM; +Cc: pgsql-ports
James Gates <James.Gates@Sun.COM> writes:
> Does anyone know why the check for krb5_encrypt() exists in configure
> when the code doesn't use it?
At the time it was chosen, it was probably a reasonable choice of
function to probe for to make sure Kerberos libraries are present.
Do you have a better suggestion?
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL and Kerberos 5 on Solaris
@ 2006-09-27 01:04 Henry B. Hotz <hotz@jpl.nasa.gov>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: Henry B. Hotz @ 2006-09-27 01:04 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: James.Gates@Sun.COM; pgsql-ports
Never saw a followup on this.
I'd suggest krb5_init_context() since it's the first thing any
Kerberos app needs to do, and the returned context value is used on
99% of all other calls. That's assuming that there aren't other
kerberos checks that make it unnecessary of course.
On Jul 2, 2006, at 8:39 PM, Tom Lane wrote:
> James Gates <James.Gates@Sun.COM> writes:
>> Does anyone know why the check for krb5_encrypt() exists in configure
>> when the code doesn't use it?
>
> At the time it was chosen, it was probably a reasonable choice of
> function to probe for to make sure Kerberos libraries are present.
> Do you have a better suggestion?
>
> regards, tom lane
------------------------------------------------------------------------
----
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL and Kerberos 5 on Solaris
@ 2006-10-05 03:20 Bruce Momjian <bruce@momjian.us>
parent: Henry B. Hotz <hotz@jpl.nasa.gov>
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Momjian @ 2006-10-05 03:20 UTC (permalink / raw)
To: Henry B. Hotz <hotz@jpl.nasa.gov>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; James.Gates@Sun.COM; pgsql-ports
I cannot find krb5_encrypt() referenced anywhere in configure, or
anywhere else in CVS HEAD, nor in any of the back branches.
---------------------------------------------------------------------------
Henry B. Hotz wrote:
> Never saw a followup on this.
>
> I'd suggest krb5_init_context() since it's the first thing any
> Kerberos app needs to do, and the returned context value is used on
> 99% of all other calls. That's assuming that there aren't other
> kerberos checks that make it unnecessary of course.
>
> On Jul 2, 2006, at 8:39 PM, Tom Lane wrote:
>
> > James Gates <James.Gates@Sun.COM> writes:
> >> Does anyone know why the check for krb5_encrypt() exists in configure
> >> when the code doesn't use it?
> >
> > At the time it was chosen, it was probably a reasonable choice of
> > function to probe for to make sure Kerberos libraries are present.
> > Do you have a better suggestion?
> >
> > regards, tom lane
>
> ------------------------------------------------------------------------
> ----
> The opinions expressed in this message are mine,
> not those of Caltech, JPL, NASA, or the US Government.
> Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL and Kerberos 5 on Solaris
@ 2006-10-05 07:33 Magnus Hagander <mha@sollentuna.net>
parent: Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 5+ messages in thread
From: Magnus Hagander @ 2006-10-05 07:33 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; Henry B. Hotz <hotz@jpl.nasa.gov>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; James.Gates@Sun.COM; pgsql-ports
That's because Tom applied a patch for this already:
http://archives.postgresql.org/pgsql-committers/2006-07/msg00080.php
//Magnus
> -----Original Message-----
> From: pgsql-ports-owner@postgresql.org [mailto:pgsql-ports-
> owner@postgresql.org] On Behalf Of Bruce Momjian
> Sent: Thursday, October 05, 2006 5:20 AM
> To: Henry B. Hotz
> Cc: Tom Lane; James.Gates@Sun.COM; pgsql-ports@postgresql.org
> Subject: Re: [PORTS] PostgreSQL and Kerberos 5 on Solaris
>
>
> I cannot find krb5_encrypt() referenced anywhere in configure, or
> anywhere else in CVS HEAD, nor in any of the back branches.
>
> -------------------------------------------------------------------
> --------
>
> Henry B. Hotz wrote:
> > Never saw a followup on this.
> >
> > I'd suggest krb5_init_context() since it's the first thing any
> > Kerberos app needs to do, and the returned context value is used
> on
> > 99% of all other calls. That's assuming that there aren't other
> > kerberos checks that make it unnecessary of course.
> >
> > On Jul 2, 2006, at 8:39 PM, Tom Lane wrote:
> >
> > > James Gates <James.Gates@Sun.COM> writes:
> > >> Does anyone know why the check for krb5_encrypt() exists in
> > >> configure when the code doesn't use it?
> > >
> > > At the time it was chosen, it was probably a reasonable choice
> of
> > > function to probe for to make sure Kerberos libraries are
> present.
> > > Do you have a better suggestion?
> > >
> > > regards, tom lane
> >
> > -----------------------------------------------------------------
> -----
> > --
> > ----
> > The opinions expressed in this message are mine, not those of
> Caltech,
> > JPL, NASA, or the US Government.
> > Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu
> >
> >
> >
> > ---------------------------(end of
> > broadcast)---------------------------
> > TIP 3: Have you checked our extensive FAQ?
> >
> > http://www.postgresql.org/docs/faq
>
> --
> Bruce Momjian bruce@momjian.us
> EnterpriseDB http://www.enterprisedb.com
>
> + If your life is a hard drive, Christ can be your backup. +
>
> ---------------------------(end of broadcast)----------------------
> -----
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2006-10-05 07:33 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-30 15:55 PostgreSQL and Kerberos 5 on Solaris James Gates <James.Gates@Sun.COM>
2006-07-03 03:39 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-09-27 01:04 ` Henry B. Hotz <hotz@jpl.nasa.gov>
2006-10-05 03:20 ` Bruce Momjian <bruce@momjian.us>
2006-10-05 07:33 ` Magnus Hagander <mha@sollentuna.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox