Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  3 May 1999 19:57:37 -0700 (PDT)
From:      jon@spock.org
To:        freebsd-gnats-submit@freebsd.org
Subject:   misc/11478: Non-functional AFS support in KerberosIV library.
Message-ID:  <19990504025737.87BBD14DC4@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         11478
>Category:       misc
>Synopsis:       Non-functional AFS support in KerberosIV library.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May  3 20:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Chen
>Release:        RELENG_3 cvsup'ed on 5/3/99
>Organization:
>Environment:
FreeBSD data.spock.org 3.1-19990422-STABLE FreeBSD 3.1-19990422-STABLE #0: Sat Apr 24 16:17:41 EDT 1999     jon@data.spock.org:/usr/src/sys/compile/JON  i386

>Description:
AFS support is turned off in kerberosIV/include/config.h.  When that
is turned on, however, AFS still does not work.  Various programs cannot
find AFS because the k_hasafs() call (in libkafs) always return false.
This is because the file crypto/kerberosIV/lib/kafs/afssysdefs.h is not
FreeBSD friendly.
>How-To-Repeat:
install arla (do not use ports, the version of arla there is ancient)

Utilities such as kinit/kauth will not obtain and afs@AFS.CELL ticket.
Also, programs included with arla such as fs will say something to the
effect of "No AFS detected".
>Fix:
The following patch will 1) turn on AFS by default and 2) tell libkafs
that FreeBSD can use syscall #210 to detect AFS.
* note: perhaps somebody turned off AFS by default for some reason.  I
        don't know why, so I included this change.

--- crypto/kerberosIV/lib/kafs/afssysdefs.h~	Mon May  3 16:37:25 1999
+++ crypto/kerberosIV/lib/kafs/afssysdefs.h	Mon May  3 16:37:40 1999
@@ -78,7 +78,7 @@
 #define AFS_SYSCALL	31
 #endif
 
-#if defined(__NetBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__)
 #define AFS_SYSCALL 210
 #endif
 
--- kerberosIV/include/config.h~	Mon May  3 21:51:48 1999
+++ kerberosIV/include/config.h	Mon May  3 21:52:17 1999
@@ -927,7 +927,7 @@
 
 /* Define if you don't want support for afs, might be a good idea on
    AIX if you don't have afs */
-#define NO_AFS 1
+/* #undef NO_AFS */
 
 /* Define if you have a readline compatible library */
 #define HAVE_READLINE 1

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990504025737.87BBD14DC4>