From nobody@FreeBSD.org  Fri Dec  7 05:38:48 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 916D037B405
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  7 Dec 2001 05:38:47 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id fB7Dclx85264;
	Fri, 7 Dec 2001 05:38:47 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200112071338.fB7Dclx85264@freefall.freebsd.org>
Date: Fri, 7 Dec 2001 05:38:47 -0800 (PST)
From: Michel Oosterhof <m.oosterhof@xs4all.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: www/mod_auth_kerb does not compile
X-Send-Pr-Version: www-1.0

>Number:         32575
>Category:       ports
>Synopsis:       www/mod_auth_kerb does not compile against Heimdal
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 07 05:40:01 PST 2001
>Closed-Date:    Thu Dec 13 09:25:01 PST 2001
>Last-Modified:  Thu Dec 13 09:30:01 PST 2001
>Originator:     Michel Oosterhof
>Release:        4.4-STABLE
>Organization:
>Environment:
FreeBSD router 4.4-STABLE FreeBSD 4.4-STABLE #1: Sun Dec  2 14:17:46 CET 2001     root@router:/usr/obj/usr/src/sys/ROUTER  i386
>Description:
router# cd /usr/ports/www/mod_auth_kerb
lsrouter#       ls
Makefile        pkg-comment     pkg-plist
distinfo        pkg-descr       work
router# make
===>  Building for mod_auth_kerb-4.10
cd /usr/ports/www/mod_auth_kerb/work/src/modules/kerberos &&  /usr/local/sbin/apxs -I/usr/local/include -L/usr/local/lib  -DKRB5 -DKRB5_VERIFY_TICKET -DKRB5_SAVE_CREDENTIALS  -DKRB5_DEFAULT_KEYTAB=\"\\\"file:/usr/local/etc/apache/keytab\\\"\"  -c mod_auth_kerb.c
cc -DHARD_SERVER_LIMIT=512  -DDOCUMENT_LOCATION="/usr/local/www/data/"  -DDEFAULT_PATH="/usr/local/bin:/bin:/usr/bin"  -DACCEPT_FILTER_NAME="httpready" -funsigned-char -DMOD_SSL=208105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I../lib/expat-lite -O -pipe -march=pentium -fpic -DSHARED_MODULE -I/usr/local/include/apache -I/usr/local/include -DKRB5 -DKRB5_VERIFY_TICKET -DKRB5_SAVE_CREDENTIALS -DKRB5_DEFAULT_KEYTAB="\"file:/usr/local/etc/apache/keytab\""  -c mod_auth_kerb.c
mod_auth_kerb.c:148: warning: initialization makes pointer from integer without a cast
mod_auth_kerb.c:150: warning: excess elements in struct initializer
mod_auth_kerb.c:150: warning: (near initialization for `tgtname')
mod_auth_kerb.c: In function `kerb_validate_user_pass_V5':
mod_auth_kerb.c:746: warning: passing arg 3 of `krb5_cc_next_cred' from incompatible pointer type
mod_auth_kerb.c:746: warning: passing arg 4 of `krb5_cc_next_cred' from incompatible pointer type
mod_auth_kerb.c:763: `KRB5_TC_OPENCLOSE' undeclared (first use in this function)
mod_auth_kerb.c:763: (Each undeclared identifier is reported only once
mod_auth_kerb.c:763: for each function it appears in.)
mod_auth_kerb.c:984: request for member `length' in something not a structure or union
mod_auth_kerb.c:985: request for member `data' in something not a structure or union
mod_auth_kerb.c:987: request for member `length' in something not a structure or union
mod_auth_kerb.c:988: request for member `data' in something not a structure or union
mod_auth_kerb.c: In function `kerb_validate_ticket_V5':
mod_auth_kerb.c:1296: structure has no member named `enc_part2'
apxs:Break: Command failed with rc=1
*** Error code 1

Stop in /usr/ports/www/mod_auth_kerb.
*** Error code 1

Stop in /usr/ports/www/mod_auth_kerb.
*** Error code 1

Stop in /usr/ports/www/mod_auth_kerb.
>How-To-Repeat:
See above.
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports 
Responsible-Changed-By: des 
Responsible-Changed-When: Sun Dec 9 04:58:25 PST 2001 
Responsible-Changed-Why:  
Misfiled. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32575 
Responsible-Changed-From-To: freebsd-ports->wollman 
Responsible-Changed-By: tom 
Responsible-Changed-When: Sun Dec 9 11:34:25 PST 2001 
Responsible-Changed-Why:  
Over to MAINTAINER 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32575 

From: m.oosterhof@xs4all.nl
To: freebsd-gnats-submit@FreeBSD.org, m.oosterhof@xs4all.nl
Cc:  
Subject: Re: ports/32575: www/mod_auth_kerb does not compile
Date: Thu, 13 Dec 2001 13:23:29 +0100 (CET)

 I submitted this PR, and forgot to mention I am using Heimdal, not
 MIT Kerberos. I don't know whether this is actually supported.
  
 I found the reason for one of the compile errors, 
 Which was a prototype difference between Heimdal and what mod_kerb
 expected. In line 746, switch arguments 3 and 4, the line should 
 become 
          if ((code = krb5_cc_next_cred(kcontext, ccache, &creds, &cur))) {
  
 regards,
  
 michel
 

From: m.oosterhof@xs4all.nl
To: freebsd-gnats-submit@FreeBSD.org, m.oosterhof@xs4all.nl
Cc:  
Subject: Re: ports/32575: www/mod_auth_kerb does not compile
Date: Thu, 13 Dec 2001 15:16:03 +0100 (CET)

 A second followup, because I now have a working version of this module
 It can be found here: http://www.ics.muni.cz/scb/devel/mod_auth_kerb.c
 Diff shows it's quite different however. 
 
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Thu Dec 13 09:25:01 PST 2001 
State-Changed-Why:  
Submitter reports that he was using Heimdal.  The author of this 
module only supports MIT Kerberos. 


Responsible-Changed-From-To: wollman->freebsd-bugs 
Responsible-Changed-By: wollman 
Responsible-Changed-When: Thu Dec 13 09:25:01 PST 2001 
Responsible-Changed-Why:  
I am not going to pursue this problem further. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32575 

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: m.oosterhof@xs4all.nl
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/32575: www/mod_auth_kerb does not compile
Date: Thu, 13 Dec 2001 12:24:37 -0500 (EST)

 <<On Thu, 13 Dec 2001 04:30:01 -0800 (PST), m.oosterhof@xs4all.nl said:
 >  I submitted this PR, and forgot to mention I am using Heimdal, not
 >  MIT Kerberos. I don't know whether this is actually supported.
   
 Only MIT Kerberos is supported, as indicated by the dependencies in
 the Makefile.  I don't run Heimdal, and neither does the original
 author of this module, so it will take someone who does to work with
 the original author to get Heimdal supported.
 
 -GAWollman
 
>Unformatted:
