[OpenAFS] Migration from kaserver to krb5.
O Plameras
oscarp@acay.com.au
Tue, 11 Apr 2006 09:44:46 +1000
Hi,
I have running servers with OpenAFS-1.4.1 on FC5 using kaserver.
I have used clients running OpenAFS on FC4/Win2000 and
OpenAFS-1.4.1rc10 on FC5.
This setup is working without any problem so far.
I want to convert from kaserver to krb5.
I installed and tested krb5-1.4.3 KDC. This works.
Then I did these.
[oscarp@toshiba]$kinit admin/admin
[oscarp@toshiba]$aklog example.com.ex -k EXAMPLE.COM.EX
[oscarp@toshiba]$tokens
Tokens held by the Cache Manager:
User's (AFS ID 1) tokens for afs@example.com.ex [Expires Apr 11 22:04]
--End of list--
[oscarp@toshiba]$ vos listvol otr.example.com.ex
Could not fetch the list of partitions from the server
rxk: security object was passed a bad ticket
Error in vos listvol command.
rxk: security object was passed a bad ticket
It is my understanding that I need to run afs2k5db on kaserver.DBO
and use the output to update krb5 keys.
My problem is I can't compile afs2k5db.
I tried to compile using openafs-1.4.1rc10-1.1.src.rpm with
these changes in openafs.spec.
[oscarp@toshiba SPECS]$ diff -u openafs.spec.orig openafs.spec
--- openafs.spec.orig 2006-04-02 08:49:12.000000000 +1000
+++ openafs.spec 2006-04-11 08:19:59.000000000 +1000
+++ openafs.spec 2006-04-11 08:19:59.000000000 +1000
@@ -745,8 +745,8 @@
--bindir=%{_bindir} \
--sbindir=%{_sbindir} \
--with-afs=`pwd`/../../${sysname}/dest/ && \
- make all PROGS="asetkey ka-forwarder" && \
- install -c -s asetkey ka-forwarder
`pwd`/../../${sysname}/dest/etc ) \
+ make all PROGS="asetkey ka-forwarder afs2k5db" && \
+ install -c -s asetkey ka-forwarder afs2k5db
`pwd`/../../${sysname}/dest/etc ) \
|| exit 1
%endif
I got these errors.
<snipped>
gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables
-I/usr/src/redhat/BUILD/openafs-1.4.1-rc10/afs-krb5/src/../../i386_linux26/dest//include
-DPACKAGE_NAME=\"afs-krb5\" -DPACKAGE_TARNAME=\"afs-krb5\"
-DPACKAGE_VERSION=\"1.4\" -DPACKAGE_STRING=\"afs-krb5\ 1.4\"
-DPACKAGE_BUGREPORT=\"kenh@cmf.nrl.navy.mil\" -DAFS=1 -DAFS_INT32=1
-DAFS_TRY_FULL_PRINC=1 -DHAVE_DAEMON=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1
-DHAVE_MALLOC_H=1 -DHAVE_STRERROR=1 -DRETSIGTYPE=void -DALLOW_REGISTER
afs2k5db.c
afs2k5db.c:33:21: error: com_err.h: No such file or directory
afs2k5db.c:35:20: error: k5-int.h: No such file or directory
afs2k5db.c:36:17: error: adm.h: No such file or directory
afs2k5db.c:37:23: error: adm_proto.h: No such file or directory
afs2k5db.c:128: error: expected declaration specifiers or '...' before
'krb5_key_data'
afs2k5db.c: In function 'main':
afs2k5db.c:134: error: 'krb5_realm_params' undeclared (first use in this
function)
<snipped>
Where am I doing wrong ?
Thanks for any help.
O Plameras