[OpenAFS] Setup Kerberos V5 Problem

Sven Oehme oehmes@de.ibm.com
Fri, 13 Sep 2002 20:06:14 +0200


This is a multipart message in MIME format.
--=_alternative 006371FEC1256C33_=
Content-Type: text/plain; charset="us-ascii"

hy , 

here is my krb5.conf :
---------------------------------------------------------------------
[logging]
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log

[libdefaults]
 ticket_lifetime = 24000
 default_realm = MFG-MAINZ.DE.IBM.COM
 default_tkt_enctypes = des-cbc-crc
 default_tgs_enctypes = des-cbc-crc
 dns_lookup_realm = false
 dns_lookup_kdc = false

[realms]
 MFG-MAINZ.DE.IBM.COM = {
  kdc = mfgmzdc01.mfg-mainz.de.ibm.com:88
  admin_server = mfgmzdc01.mfg-mainz.de.ibm.com:749
  default_domain = mfg-mainz.de.ibm.com
 }

[domain_realm]
 .mfg-mainz.de.ibm.com = MFG-MAINZ.DE.IBM.COM
  mfg-mainz.de.ibm.com = MFG-MAINZ.DE.IBM.COM

[kdc]
 profile = /var/kerberos/krb5kdc/kdc.conf

[pam]
 debug = false
 ticket_lifetime = 36000
 renew_lifetime = 36000
 forwardable = true
 krb4_convert = true
 afs_cells = mfg-mainz.de.ibm.com
[root@MFGAFS12 root]#
---------------------------------------------------------------------

my domain controller and kdc is mfgmzdc01.mfg-mainz.de.ibm.com
my Afs server is mfgafs12.mfg-mainz.de.ibm.com

Sven






Charles Clancy <security@xauth.net>
13.09.2002 19:33

 
        To:     Sven Oehme/Germany/IBM@IBMDE
        cc:     openafs-info@openafs.org
        Subject:        Re: [OpenAFS] Setup Kerberos V5 Problem

 

What does your /etc/krb5.conf file look like?

[ t charles clancy ]--[ tclancy@uiuc.edu ]--[ www.uiuc.edu/~tclancy ]

On Thu, 12 Sep 2002, Sven Oehme wrote:

> hy ,
>
> i tried to Setup an AFS Cell which is authenticating to a Windows 2000
> Active directory domain Controller (Kerberos V5)
>
> i setup a Redhat 7.2 Client , Kerberos login is working..
>
> so i added a user to the linux passwd with a junk password but can login
> with my W2k password
> so generally Kerberos is working .
>
> a klist , lists me my Kerberos ticket in the W2K Domain  :
>
> ssh -l de102146 mfgafs12
>
> login as: de102146
> Sent username "de102146"
> de102146@mfgafs12's password:
> Last login: Thu Sep 12 13:23:01 2002 from oehmestp.mfg-mainz.de.ibm.com
> [de102146@MFGAFS12 de102146]$ klist
> Ticket cache: FILE:/tmp/krb5cc_500_VgI6ue
> Default principal: de102146@MFG-MAINZ.DE.IBM.COM
>
> Valid starting     Expires            Service principal
> 09/12/02 13:49:21  09/12/02 23:49:21
> krbtgt/MFG-MAINZ.DE.IBM.COM@MFG-MAINZ.DE.IBM.COM
>         renew until 09/12/02 23:49:21
>
>
> Kerberos 4 ticket cache: /tmp/tkt500
> klist: You have no tickets cached
> [de102146@MFGAFS12 de102146]$
>
>
> i created an account afs/mfg-mainz.de.ibm.com@mfg-mainz.de.ibm.com on 
the
> W2k Server with the command :
>
> ktpass.exe -princ afs/mfg-mainz.de.ibm.com@mfg-mainz.de.ibm.com -mapuser
> afs -pass testmich -out afs.key
>
> it was successful and i copied the key to the afs Server.
>
> here i tried to import the key to the krb5.conf with the ktutil command.
> this was also successful . output of klist :
>
> [root@MFGAFS12 root]# klist -ke
> Keytab name: FILE:/etc/krb5.keytab
> KVNO Principal
> ----
> 
--------------------------------------------------------------------------
>    1 host/MFGAFS12.mfg-mainz.de.ibm.com@MFG-MAINZ.DE.IBM.COM (DES cbc 
mode
> with CRC-32)
>    2 afs/mfg-mainz.de.ibm.com@MFG-MAINZ.DE.IBM.COM (DES cbc mode with
> CRC-32)
> [root@MFGAFS12 root]#
>
> now , i tried to use the  asetkey to add the key to afs using command :
>
> ./asetkey add 2 /etc/krb5.keytab afs/mfg-mainz.de.ibm.com
>
> it was unsuccessful , the version key number was not correct ..
>
> i recreated the afs account in the mfg-mainz.de.ibm.com realm with kvno 
2
> .
>
> now i was able to import the key using asetkey :
>
> [root@MFGAFS12 i386_linux2]# ./asetkey list
> kvno    0: key is: 8c6785bxxxxxxxxxxxx
> kvno    1: key is: 8c6785bxxxxxxxxxxxx
> kvno    2: key is: fbef3b85a40xxxxxx
> All done.
>
> now i logged in again and tried kinit then aklog -d  and it  generates 
the
> following error :
>
> [de102146@MFGAFS12 de102146]$ aklog -d
> Authenticating to cell mfg-mainz.de.ibm.com (server
> MFGAFS12.mfg-mainz.de.ibm.com).
> We've deduced that we need to authenticate to realm 
MFG-MAINZ.DE.IBM.COM.
> Getting tickets: afs/mfg-mainz.de.ibm.com@MFG-MAINZ.DE.IBM.COM
> Kerberos error code returned by get_cred: -1765328228
> aklog: Couldn't get mfg-mainz.de.ibm.com AFS tickets:
> aklog: Cannot contact any KDC for requested realm while getting AFS
> tickets
> [de102146@MFGAFS12 de102146]$
>
> has anybody an idea , what the problem could be ??
> how can i debug , this stuff ??
>
> Sven




--=_alternative 006371FEC1256C33_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">hy , </font>
<br>
<br><font size=2 face="sans-serif">here is my krb5.conf :</font>
<br><font size=2 face="sans-serif">---------------------------------------------------------------------</font>
<br><font size=2 face="sans-serif">[logging]</font>
<br><font size=2 face="sans-serif">&nbsp;default = FILE:/var/log/krb5libs.log</font>
<br><font size=2 face="sans-serif">&nbsp;kdc = FILE:/var/log/krb5kdc.log</font>
<br><font size=2 face="sans-serif">&nbsp;admin_server = FILE:/var/log/kadmind.log</font>
<br>
<br><font size=2 face="sans-serif">[libdefaults]</font>
<br><font size=2 face="sans-serif">&nbsp;ticket_lifetime = 24000</font>
<br><font size=2 face="sans-serif">&nbsp;default_realm = MFG-MAINZ.DE.IBM.COM</font>
<br><font size=2 face="sans-serif">&nbsp;default_tkt_enctypes = des-cbc-crc</font>
<br><font size=2 face="sans-serif">&nbsp;default_tgs_enctypes = des-cbc-crc</font>
<br><font size=2 face="sans-serif">&nbsp;dns_lookup_realm = false</font>
<br><font size=2 face="sans-serif">&nbsp;dns_lookup_kdc = false</font>
<br>
<br><font size=2 face="sans-serif">[realms]</font>
<br><font size=2 face="sans-serif">&nbsp;MFG-MAINZ.DE.IBM.COM = {</font>
<br><font size=2 face="sans-serif">&nbsp; kdc = mfgmzdc01.mfg-mainz.de.ibm.com:88</font>
<br><font size=2 face="sans-serif">&nbsp; admin_server = mfgmzdc01.mfg-mainz.de.ibm.com:749</font>
<br><font size=2 face="sans-serif">&nbsp; default_domain = mfg-mainz.de.ibm.com</font>
<br><font size=2 face="sans-serif">&nbsp;}</font>
<br>
<br><font size=2 face="sans-serif">[domain_realm]</font>
<br><font size=2 face="sans-serif">&nbsp;.mfg-mainz.de.ibm.com = MFG-MAINZ.DE.IBM.COM</font>
<br><font size=2 face="sans-serif">&nbsp; mfg-mainz.de.ibm.com = MFG-MAINZ.DE.IBM.COM</font>
<br>
<br><font size=2 face="sans-serif">[kdc]</font>
<br><font size=2 face="sans-serif">&nbsp;profile = /var/kerberos/krb5kdc/kdc.conf</font>
<br>
<br><font size=2 face="sans-serif">[pam]</font>
<br><font size=2 face="sans-serif">&nbsp;debug = false</font>
<br><font size=2 face="sans-serif">&nbsp;ticket_lifetime = 36000</font>
<br><font size=2 face="sans-serif">&nbsp;renew_lifetime = 36000</font>
<br><font size=2 face="sans-serif">&nbsp;forwardable = true</font>
<br><font size=2 face="sans-serif">&nbsp;krb4_convert = true</font>
<br><font size=2 face="sans-serif">&nbsp;afs_cells = mfg-mainz.de.ibm.com</font>
<br><font size=2 face="sans-serif">[root@MFGAFS12 root]#</font>
<br><font size=2 face="sans-serif">---------------------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">my domain controller and kdc is mfgmzdc01.mfg-mainz.de.ibm.com</font>
<br><font size=2 face="sans-serif">my Afs server is mfgafs12.mfg-mainz.de.ibm.com</font>
<br>
<br><font size=2 face="sans-serif">Sven</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Charles Clancy &lt;security@xauth.net&gt;</b></font>
<p><font size=1 face="sans-serif">13.09.2002 19:33</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;Sven Oehme/Germany/IBM@IBMDE</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;openafs-info@openafs.org</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: [OpenAFS] Setup Kerberos V5 Problem</font>
<br>
<br><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp;</font></table>
<br>
<br><font size=2 face="Courier New">What does your /etc/krb5.conf file look like?<br>
<br>
[ t charles clancy ]--[ tclancy@uiuc.edu ]--[ www.uiuc.edu/~tclancy ]<br>
<br>
On Thu, 12 Sep 2002, Sven Oehme wrote:<br>
<br>
&gt; hy ,<br>
&gt;<br>
&gt; i tried to Setup an AFS Cell which is authenticating to a Windows 2000<br>
&gt; Active directory domain Controller (Kerberos V5)<br>
&gt;<br>
&gt; i setup a Redhat 7.2 Client , Kerberos login is working..<br>
&gt;<br>
&gt; so i added a user to the linux passwd with a junk password but can login<br>
&gt; with my W2k password<br>
&gt; so generally Kerberos is working .<br>
&gt;<br>
&gt; a klist , lists me my Kerberos ticket in the W2K Domain &nbsp;:<br>
&gt;<br>
&gt; ssh -l de102146 mfgafs12<br>
&gt;<br>
&gt; login as: de102146<br>
&gt; Sent username &quot;de102146&quot;<br>
&gt; de102146@mfgafs12's password:<br>
&gt; Last login: Thu Sep 12 13:23:01 2002 from oehmestp.mfg-mainz.de.ibm.com<br>
&gt; [de102146@MFGAFS12 de102146]$ klist<br>
&gt; Ticket cache: FILE:/tmp/krb5cc_500_VgI6ue<br>
&gt; Default principal: de102146@MFG-MAINZ.DE.IBM.COM<br>
&gt;<br>
&gt; Valid starting &nbsp; &nbsp; Expires &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Service principal<br>
&gt; 09/12/02 13:49:21 &nbsp;09/12/02 23:49:21<br>
&gt; krbtgt/MFG-MAINZ.DE.IBM.COM@MFG-MAINZ.DE.IBM.COM<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; renew until 09/12/02 23:49:21<br>
&gt;<br>
&gt;<br>
&gt; Kerberos 4 ticket cache: /tmp/tkt500<br>
&gt; klist: You have no tickets cached<br>
&gt; [de102146@MFGAFS12 de102146]$<br>
&gt;<br>
&gt;<br>
&gt; i created an account afs/mfg-mainz.de.ibm.com@mfg-mainz.de.ibm.com on the<br>
&gt; W2k Server with the command :<br>
&gt;<br>
&gt; ktpass.exe -princ afs/mfg-mainz.de.ibm.com@mfg-mainz.de.ibm.com -mapuser<br>
&gt; afs -pass testmich -out afs.key<br>
&gt;<br>
&gt; it was successful and i copied the key to the afs Server.<br>
&gt;<br>
&gt; here i tried to import the key to the krb5.conf with the ktutil command.<br>
&gt; this was also successful . output of klist :</font>
<br><font size=2 face="Courier New">&gt;<br>
&gt; [root@MFGAFS12 root]# klist -ke<br>
&gt; Keytab name: FILE:/etc/krb5.keytab<br>
&gt; KVNO Principal<br>
&gt; ----<br>
&gt; --------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;1 host/MFGAFS12.mfg-mainz.de.ibm.com@MFG-MAINZ.DE.IBM.COM (DES cbc mode<br>
&gt; with CRC-32)<br>
&gt; &nbsp; &nbsp;2 afs/mfg-mainz.de.ibm.com@MFG-MAINZ.DE.IBM.COM (DES cbc mode with<br>
&gt; CRC-32)<br>
&gt; [root@MFGAFS12 root]#<br>
&gt;<br>
&gt; now , i tried to use the &nbsp;asetkey to add the key to afs using command :<br>
&gt;<br>
&gt; ./asetkey add 2 /etc/krb5.keytab afs/mfg-mainz.de.ibm.com<br>
&gt;<br>
&gt; it was unsuccessful , the version key number was not correct ..<br>
&gt;<br>
&gt; i recreated the afs account in the mfg-mainz.de.ibm.com realm with kvno 2<br>
&gt; .<br>
&gt;<br>
&gt; now i was able to import the key using asetkey :<br>
&gt;<br>
&gt; [root@MFGAFS12 i386_linux2]# ./asetkey list<br>
&gt; kvno &nbsp; &nbsp;0: key is: 8c6785bxxxxxxxxxxxx<br>
&gt; kvno &nbsp; &nbsp;1: key is: 8c6785bxxxxxxxxxxxx<br>
&gt; kvno &nbsp; &nbsp;2: key is: fbef3b85a40xxxxxx<br>
&gt; All done.<br>
&gt;<br>
&gt; now i logged in again and tried kinit then aklog -d &nbsp;and it &nbsp;generates the<br>
&gt; following error :<br>
&gt;<br>
&gt; [de102146@MFGAFS12 de102146]$ aklog -d<br>
&gt; Authenticating to cell mfg-mainz.de.ibm.com (server<br>
&gt; MFGAFS12.mfg-mainz.de.ibm.com).<br>
&gt; We've deduced that we need to authenticate to realm MFG-MAINZ.DE.IBM.COM.<br>
&gt; Getting tickets: afs/mfg-mainz.de.ibm.com@MFG-MAINZ.DE.IBM.COM<br>
&gt; Kerberos error code returned by get_cred: -1765328228<br>
&gt; aklog: Couldn't get mfg-mainz.de.ibm.com AFS tickets:<br>
&gt; aklog: Cannot contact any KDC for requested realm while getting AFS<br>
&gt; tickets<br>
&gt; [de102146@MFGAFS12 de102146]$<br>
&gt;<br>
&gt; has anybody an idea , what the problem could be ??<br>
&gt; how can i debug , this stuff ??<br>
&gt;<br>
&gt; Sven<br>
<br>
</font>
<br>
<br>
--=_alternative 006371FEC1256C33_=--