Problems Arla-0.2 on FreeBSD
Assar Westerlund
assar at sics.se
Sun Mar 22 00:46:20 CET 1998
Mark A Gebert <geeb at merit.edu> writes:
> This fixed the fs command but still no tokens for afs. I get the tgt just
> fine just no AFS fileservice ticket. Arlad gives the following messages
> for afslog and kauth:
Try creating a file /usr/afsws/etc/ThisCell with you cell name in it.
The more difficult way of solving the same problem is to apply this
patch:
Index: lib/kafs/common.c
===================================================================
RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/lib/kafs/common.c,v
retrieving revision 1.9
diff -u -w -r1.9 common.c
--- common.c 1998/03/10 18:36:27 1.9
+++ common.c 1998/03/21 23:32:41
@@ -231,6 +231,8 @@
}
find_cells(_PATH_THESECELLS, &cells, &index);
find_cells(_PATH_THISCELL, &cells, &index);
+ find_cells(_PATH_ARLA_THESECELLS, &cells, &index);
+ find_cells(_PATH_ARLA_THISCELL, &cells, &index);
ret = afslog_cells(data, cells, index, uid);
while(index > 0)
@@ -258,7 +260,8 @@
char *p;
int ret = -1;
- if ((F = fopen(_PATH_CELLSERVDB, "r"))) {
+ if ((F = fopen(_PATH_CELLSERVDB, "r"))
+ || (F = fopen(_PATH_ARLA_CELLSERVDB, "r"))) {
while (fgets(buf, sizeof(buf), F)) {
if (buf[0] != '>')
continue; /* Not a cell name line, try next line */
Index: lib/kafs/kafs.h
===================================================================
RCS file: /afs/pdc.kth.se/src/packages/kth-krb/SourceRepository/lib/kafs/kafs.h,v
retrieving revision 1.26
diff -u -w -r1.26 kafs.h
--- kafs.h 1998/03/03 10:30:44 1.26
+++ kafs.h 1998/03/21 23:39:48
@@ -156,4 +156,9 @@
#define _PATH_CELLSERVDB _PATH_VICE "CellServDB"
#define _PATH_THESECELLS _PATH_VICE "TheseCells"
+#define _PATH_ARLA_VICE "/usr/arla/etc/"
+#define _PATH_ARLA_THISCELL _PATH_ARLA_VICE "ThisCell"
+#define _PATH_ARLA_CELLSERVDB _PATH_ARLA_VICE "CellServDB"
+#define _PATH_ARLA_THESECELLS _PATH_ARLA_VICE "TheseCells"
+
#endif /* __KAFS_H */
> This doesn't hang arlad anymore but the following behavior is observed under
> FreeBSD:
This is fixed in the current code (that actually looks at the
permissions and would not let you cd to the directory at all).
> Thanks. Where will it be kept?
It'll be at ftp://ftp.stacken.kth.se/pub/arla/mail-archive. And I'll
be adding a pointer on the web page.
/assar
More information about the Arla-drinkers
mailing list