[OpenAFS] Heimdal and openafs with Debian.
Wolfgang Friebel
friebel@ifh.de
Mon, 19 Aug 2002 16:16:07 +0200 (MEST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--579716367-235185406-1029766567=:29241
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
On 19 Aug 2002, Daniel Swärd wrote:
> I've created a Kerberos realm on one machine and I want to use another
> one as the afs-server. I just can't figure out how to get a working
> KeyFile to use.
>
> When I do: ktutil copy FILE:keytab.afs AFSKEYFILE:KeyFile
> all I get is an empty KeyFile. What am I doing wrong?
>
> I don't have any problems setting up openafs with MIT Kerberos5, but I
> really should be using Heimdal... ;-)
>
If you like to follow my recipy, I have developed a script to configure
the Heimdal K5 KDC, slave KDC's and clients. You might need to modify the
generated /etc/krb5.conf (or its source in the script)
Wolfgang Friebel
--579716367-235185406-1029766567=:29241
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=heimdalsetup
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0208191616070.29241@pub5.ifh.de>
Content-Description:
Content-Disposition: attachment; filename=heimdalsetup
IyEvYmluL2tzaA0KIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj
IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMNCiMNCiMg
U2V0IHVwIGEgS2VyYmVyb3MgNSByZWFsbSB1c2luZyBIZWltZGFsIGFuZCBw
b3B1bGF0ZSBpdCB3aXRoIHVzZXJzDQojIGZyb20gdGhlIEtlcmJlcm9zNCBB
RlMgZGINCiMNCiMgdGVzdGVkIG9uIFNvbGFyaXMgYW5kIExpbnV4DQojDQoj
IFdvbGZnYW5nIEZyaWViZWwgOC8yMDAyIChXb2xmZ2FuZy5GcmllYmVsQGRl
c3kuZGUpDQojDQojIHBsZWFzZSBkbyByZXBvcnQgYWxsIG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