[OpenAFS] About the upgrading from kaserver to Kerberos 5

Jeffrey Altman jaltman@auristor.com
Tue, 15 May 2018 09:00:14 -0400


This is a cryptographically signed message in MIME format.

--------------ms070706060906010207060502
Content-Type: multipart/mixed;
 boundary="------------E61D7644D0CF83C5417A4CB8"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------E61D7644D0CF83C5417A4CB8
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

The original poster's text has been modified to replace "Kerberos 4"
with "kaserver".  "kaserver" is not the same as MIT Kerberos 4 and it is
very important to distinguish between the two.

On 5/15/2018 4:52 AM, huangql wrote:
> Hi all,
>=20
>=20
> We are working on the upgrading of Openafs kaserver to KDC 5. We
> checked some documents to know we have to use afs2k5db tool to convert
> users in kaserver to KDC 5. But it's really a pain to compile it with
> Openafs-1.4.14-1 and=C2=A0krb5-server-1.10.3-65.el6.x86-64 due to the
> incompatibility of the higher version of krb5 and AFS.
>=20
> I tried to modify the afs2k5db source code to eliminate the compile
> error to generate the tool afs2k5db. However, we failed to convert
> users with the following error.
>=20
> [root@afs01=C2=A0src]#=C2=A0./afs2k5db=C2=A0/usr/afs/db/kaserver.DB0=C2=
=A0>=C2=A0anafsuser.out
> Read=C2=A0of=C2=A0KA=C2=A0database=C2=A0header=C2=A0failed:=C2=A0only=C2=
=A0got=C2=A037888=C2=A0of=C2=A065632=C2=A0bytes
>=20
> Could you help to figure out the issue? And is there other quick way to=

> migrate the users in kaserver to KAS=20

The afs-krb5 source code worked by compiling against private functions
within both OpenAFS 1.2.x and MIT Kerberos 1.2.x.  The kaserver database
format has not changed since that time and although the MIT Kerberos
1.2.x database format has changed it is still possible to dump the
MIT Kerberos database from 1.2.x and import it into current data MIT.

Current versions of Kerberos have removed all support for Kerberos v4
and have significantly reduced if not removed entirely support for the
DES encryption types.

It will be easier to build a working version of afs2k5db by building the
tool against OpenAFS 1.2 and MIT Kerberos 1.2.  Building each of those
might require using an old 32-bit version of Linux and the gcc
toolchain.  Current versions of gcc and clang are unlikely to compile
old source code trees and there is the possibility that there are 64-bit
compatibility issues with those old releases as well.

Good luck.

Jeffrey Altman


--------------E61D7644D0CF83C5417A4CB8
Content-Type: text/x-vcard; charset=utf-8;
 name="jaltman.vcf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="jaltman.vcf"

begin:vcard
fn:Jeffrey Altman
n:Altman;Jeffrey
org:AuriStor, Inc.
adr:Suite 6B;;255 West 94Th Street;New York;New York;10025-6985;United St=
ates
email;internet:jaltman@auristor.com
title:Founder and CEO
tel;work:+1-212-769-9018
note;quoted-printable:LinkedIn: https://www.linkedin.com/in/jeffreyaltman=
=3D0D=3D0A=3D
	Skype: jeffrey.e.altman=3D0D=3D0A=3D
=09
url:https://www.auristor.com/
version:2.1
end:vcard


--------------E61D7644D0CF83C5417A4CB8--

--------------ms070706060906010207060502
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
DIIwggXpMIIE0aADAgECAhBAAV7gPRitcrlGsJTzkwjvMA0GCSqGSIb3DQEBCwUAMDoxCzAJ
BgNVBAYTAlVTMRIwEAYDVQQKEwlJZGVuVHJ1c3QxFzAVBgNVBAMTDlRydXN0SUQgQ0EgQTEy
MB4XDTE3MTAwMzAzMTczM1oXDTE4MTEwMzAzMTczM1owgYUxLTArBgNVBAsMJFZlcmlmaWVk
IEVtYWlsOiBqYWx0bWFuQGF1cmlzdG9yLmNvbTEjMCEGCSqGSIb3DQEJARYUamFsdG1hbkBh
dXJpc3Rvci5jb20xLzAtBgoJkiaJk/IsZAEBEx9BMDE0MjdFMDAwMDAxNUVFMDNEMTg3QTAw
MDA0QUE1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqqJC89ZA1DSS7t/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