X-Original-To: pgsql-ports-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C30B89FA5E9 for ; Fri, 30 Jun 2006 12:55:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 72662-01 for ; Fri, 30 Jun 2006 12:55:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id D07629FA163 for ; Fri, 30 Jun 2006 12:55:27 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14]) by svr4.postgresql.org (Postfix) with ESMTP id 6F3FE5AF04E for ; Fri, 30 Jun 2006 15:55:25 +0000 (GMT) Received: from nis-uk.uk.sun.com ([129.156.85.41]) by nwkea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k5UFtJYY021962 for ; Fri, 30 Jun 2006 08:55:19 -0700 (PDT) Received: from enospc.uk.sun.com (enospc [129.156.173.14]) by nis-uk.uk.sun.com (8.13.6+Sun/8.13.6/ENSMAIL, v2.2) with ESMTP id k5UFtJJh024019 for ; Fri, 30 Jun 2006 16:55:19 +0100 (BST) Received: from [129.148.226.14] (sr1-unsh01-04.East.Sun.COM [129.148.226.14]) by enospc.uk.sun.com (8.13.6+Sun/8.13.3/CTE 3.0) with ESMTP id k5UFtHJo014415 for ; Fri, 30 Jun 2006 16:55:18 +0100 (BST) Message-ID: <44A54965.7050604@Sun.COM> Date: Fri, 30 Jun 2006 11:55:17 -0400 From: James Gates Reply-To: James.Gates@Sun.COM Organization: Sun Microsystems User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20050530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-ports@postgresql.org Subject: PostgreSQL and Kerberos 5 on Solaris Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/3 X-Sequence-Number: 2458 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