<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I don’t know if this is your issue, but I noticed this:
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">Feb 15 23:43:23 nfs-client rpc.gssd[1123]: WARNING: Failed to create krb5 context for user with uid 0 for server nfs-server.example.local</span></code><span style="font-size:10.0pt;font-family:"Courier New""><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: WARNING: Failed to create machine krb5 context with credentials cache</code><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Who are you “kinit”ed as? Is your idmapper working on both client and server?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Bryce<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> freeipa-users-bounces@redhat.com [mailto:freeipa-users-bounces@redhat.com]
<b>On Behalf Of </b>regpm@mccleary.me.uk<br>
<b>Sent:</b> Sunday, February 16, 2014 4:49 AM<br>
<b>To:</b> freeipa-users@redhat.com<br>
<b>Cc:</b> regpm@mccleary.me.uk<br>
<b>Subject:</b> [Freeipa-users] Kerberized NFS Mount Issues<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
I'm really stuck trying to get kerberized NFS configured via IPA and would be very grateful for any comments or advice based on the info I've provided below.  I'm sure this is a very popular kerberized service configured under IPA and I must be missing something
 obvious.<br>
<br>
Thanks, Paul<br>
<br>
### Background ###<br>
I've configured IPA (3.0.0-37.el6) on CentOS 6.5 (2.6.32-431.3.1.el6.x86_64) and have an NFS server and an NFS client (both also CentOS 6.5) configured and working as IPA clients, e.g. can login as an IPA LDAP user.<br>
<br>
I have tested plain NFSv4 and that works fine:<o:p></o:p></p>
<div style="margin-left:15.0pt;margin-top:3.75pt;margin-right:15.0pt;margin-bottom:15.0pt">
<div style="margin-bottom:1.5pt">
<p class="MsoNormal">Code:<o:p></o:p></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><code><b><span style="font-size:10.0pt">Testing Non-Kerberized NFS v4:</span></b></code><span style="font-size:10.0pt;font-family:"Courier New""><br>
<code><b>#####</b></code><b><br>
<code>#####</code><br>
<code>Client:</code></b><br>
<code>[root@nfs-client ~]# mount -v -t nfs4 -o rw,sec=sys nfs-server.example.local:/ /mnt</code><br>
<code>mount.nfs4: timeout set for Sat Feb 15 23:58:23 2014</code><br>
<code>mount.nfs4: trying text-based options 'sec=sys,addr=10.50.0.18,clientaddr=10.50.0.11'</code><br>
<code>nfs-server.example.local:/ on /mnt type nfs4 (rw,sec=sys)</code><br>
<code>[root@nfs-client ~]# df -h /mnt</code><br>
<code>Filesystem            Size  Used Avail Use% Mounted on</code><br>
<code>nfs-server.example.local:/  50G  14G  33G  30% /mnt</code><br>
<code>[root@nfs-client ~]# mount|grep nfs</code><br>
<code>sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)</code><br>
<code>nfsd on /proc/fs/nfsd type nfsd (rw)</code><br>
<code>nfs-server.example.local:/ on /mnt type nfs4 (rw,sec=sys,addr=10.50.0.18,clientaddr=10.50.0.11)</code><br>
<br>
<code><b>#####</b></code><b><br>
<code>#####</code><br>
<code>Server:</code></b><br>
<code>[root@nfs-server ~]# cat /etc/exports</code><br>
<code>/pmtest    10.50.0.0/24(rw,sec=sys,fsid=0)</code><br>
<br>
<code>[root@nfs-server ~]# exportfs -v</code><br>
<code>/pmtest        10.50.0.0/24(rw,wdelay,root_squash,no_subtree_check,fsid=0,sec=sys,rw,root_squash,no_all_squash)</code></span>
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">When I try to mount using kerberos it fails. I've searched for a number of days and tried many things, but am still stuck. The key error I think is in the NFS server syslog:<o:p></o:p></p>
<div style="margin-left:15.0pt;margin-top:3.75pt;margin-right:15.0pt;margin-bottom:15.0pt">
<div style="margin-bottom:1.5pt">
<p class="MsoNormal">Code:<o:p></o:p></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><code><span style="font-size:10.0pt">Feb 15 23:43:24 nfs-server rpc.svcgssd[6446]: ERROR: GSS-API: error in handle_nullreq: gss_accept_sec_context(): GSS_S_FAILURE (Unspecified GSS failure.  Minor code may provide more information) - Wrong
 principal in request</span></code><span style="font-size:10.0pt;font-family:"Courier New""><br>
<code>Feb 15 23:43:24 nfs-server rpc.svcgssd[6446]: ERROR: GSS-API: error in handle_nullreq: gss_accept_sec_context(): GSS_S_FAILURE (Unspecified GSS failure.  Minor code may provide more information) - Wrong principal in request</code></span>
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I don't understand how I have the wrong principal in the krb5.keytab. The various guides I've seen all have a similar keytab config as me, but I really hoped my first attempt using kerberos was going to be very
 easy as IPA would do all the hard stuff :-)<br>
<br>
###########################################################<br>
<b>Output and Config Info From Failed Kerberized NFS mount:</b><br>
<br>
Both client and server have secure NFS set to yes and name resolution is fine:<o:p></o:p></p>
<div style="margin-left:15.0pt;margin-top:3.75pt;margin-right:15.0pt;margin-bottom:15.0pt">
<div style="margin-bottom:1.5pt">
<p class="MsoNormal">Code:<o:p></o:p></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><code><span style="font-size:10.0pt">[root@nfs-client ~]# nslookup nfs-server</span></code><span style="font-size:10.0pt;font-family:"Courier New""><br>
<code>Server:        10.50.0.20</code><br>
<code>Address:        10.50.0.20#53</code><br>
<br>
<code>Name:  nfs-server.example.local</code><br>
<code>Address: 10.50.0.18</code><br>
<br>
<code>[root@nfs-client ~]# nslookup nfs-client</code><br>
<code>Server:        10.50.0.20</code><br>
<code>Address:        10.50.0.20#53</code><br>
<br>
<code>Name:  nfs-client.example.local</code><br>
<code>Address: 10.50.0.11</code><br>
<br>
<br>
<code>[root@nfs-server ~]# nslookup nfs-server</code><br>
<code>Server:        10.50.0.20</code><br>
<code>Address:        10.50.0.20#53</code><br>
<br>
<code>Name:  nfs-server.example.local</code><br>
<code>Address: 10.50.0.18</code><br>
<br>
<code>[root@nfs-server ~]# nslookup nfs-client</code><br>
<code>Server:        10.50.0.20</code><br>
<code>Address:        10.50.0.20#53</code><br>
<br>
<code>Name:  nfs-client.example.local</code><br>
<code>Address: 10.50.0.11</code></span> <o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
</div>
<div style="margin-bottom:1.5pt">
<p class="MsoNormal">Code:<o:p></o:p></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><code><b><span style="font-size:10.0pt">#####</span></b></code><b><span style="font-size:10.0pt;font-family:"Courier New""><br>
<code>#####</code><br>
<code>Client:</code></span></b><span style="font-size:10.0pt;font-family:"Courier New""><br>
<code>[root@nfs-client ~]# service iptables status;getenforce</code><br>
<code>iptables: Firewall is not running.</code><br>
<code>Disabled</code><br>
<br>
<code>Attempted mount:</code><br>
<code>[root@nfs-client ~]# mount -v -t nfs4 -o rw,sec=krb5 nfs-server.example.local:/ /mnt</code><br>
<code>mount.nfs4: timeout set for Sat Feb 15 23:45:23 2014</code><br>
<code>mount.nfs4: trying text-based options 'sec=krb5,addr=10.50.0.18,clientaddr=10.50.0.11'</code><br>
<code>mount.nfs4: mount(2): Permission denied</code><br>
<code>mount.nfs4: access denied by server while mounting nfs-server.example.local:/</code><br>
<br>
<code>/var/log/messages:</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fac70 data 0x7fffaf4fab40</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fac70 data 0x7fffaf4fab40</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fac70 data 0x7fffaf4fab40</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fac70 data 0x7fffaf4fab40</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fac70 data 0x7fffaf4fab40</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: handling gssd upcall (/var/lib/nfs/rpc_pipefs/nfs/clnt0)</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: handle_gssd_upcall: 'mech=krb5 uid=0 enctypes=18,17,16,23,3,1,2 '</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: handling krb5 upcall (/var/lib/nfs/rpc_pipefs/nfs/clnt0)</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: process_krb5_upcall: service is '<null>'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: Full hostname for 'nfs-server.example.local' is 'nfs-server.example.local'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: Full hostname for 'nfs-client.example.local' is 'nfs-client.example.local'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: No key table entry found for <a href="mailto:NFS-CLIENT.EXAMPLE.LOCAL$@EXAMPLE.LOCAL">
NFS-CLIENT.EXAMPLE.LOCAL$@EXAMPLE.LOCAL</a> while getting keytab entry for '<a href="mailto:NFS-CLIENT.EXAMPLE.LOCAL$@EXAMPLE.LOCAL">NFS-CLIENT.EXAMPLE.LOCAL$@EXAMPLE.LOCAL</a>'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: No key table entry found for <a href="mailto:root/nfs-client.example.local@EXAMPLE.LOCAL">
root/nfs-client.example.local@EXAMPLE.LOCAL</a> while getting keytab entry for '<a href="mailto:root/nfs-client.example.local@EXAMPLE.LOCAL">root/nfs-client.example.local@EXAMPLE.LOCAL</a>'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: Success getting keytab entry for '<a href="mailto:nfs/nfs-client.example.local@EXAMPLE.LOCAL">nfs/nfs-client.example.local@EXAMPLE.LOCAL</a>'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: Successfully obtained machine credentials for principal '<a href="mailto:nfs/nfs-client.example.local@EXAMPLE.LOCAL">nfs/nfs-client.example.local@EXAMPLE.LOCAL</a>' stored in ccache '<a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a>'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: INFO: Credentials in CC '<a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a>' are good until 1392594203</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: using <a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">
FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a> as credentials cache for machine creds</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: using environment variable to select krb5 ccache
<a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a></code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: creating context using fsuid 0 (save_uid 0)</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: creating tcp client for server nfs-server.example.local</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: DEBUG: port already set to 2049</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: creating context with server <a href="mailto:nfs@nfs-server.example.local">
nfs@nfs-server.example.local</a></code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: WARNING: Failed to create krb5 context for user with uid 0 for server nfs-server.example.local</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: WARNING: Failed to create machine krb5 context with credentials cache
<a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a> for server nfs-server.example.local</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: WARNING: Machine cache is prematurely expired or corrupted trying to recreate cache for server nfs-server.example.local</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: Full hostname for 'nfs-server.example.local' is 'nfs-server.example.local'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: Full hostname for 'nfs-client.example.local' is 'nfs-client.example.local'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: No key table entry found for <a href="mailto:NFS-CLIENT.EXAMPLE.LOCAL$@EXAMPLE.LOCAL">
NFS-CLIENT.EXAMPLE.LOCAL$@EXAMPLE.LOCAL</a> while getting keytab entry for '<a href="mailto:NFS-CLIENT.EXAMPLE.LOCAL$@EXAMPLE.LOCAL">NFS-CLIENT.EXAMPLE.LOCAL$@EXAMPLE.LOCAL</a>'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: No key table entry found for <a href="mailto:root/nfs-client.example.local@EXAMPLE.LOCAL">
root/nfs-client.example.local@EXAMPLE.LOCAL</a> while getting keytab entry for '<a href="mailto:root/nfs-client.example.local@EXAMPLE.LOCAL">root/nfs-client.example.local@EXAMPLE.LOCAL</a>'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: Success getting keytab entry for '<a href="mailto:nfs/nfs-client.example.local@EXAMPLE.LOCAL">nfs/nfs-client.example.local@EXAMPLE.LOCAL</a>'</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: INFO: Credentials in CC '<a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a>' are good until 1392594203</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: INFO: Credentials in CC '<a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a>' are good until 1392594203</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: using <a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">
FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a> as credentials cache for machine creds</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: using environment variable to select krb5 ccache
<a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a></code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: creating context using fsuid 0 (save_uid 0)</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: creating tcp client for server nfs-server.example.local</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: DEBUG: port already set to 2049</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: creating context with server <a href="mailto:nfs@nfs-server.example.local">
nfs@nfs-server.example.local</a></code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: WARNING: Failed to create krb5 context for user with uid 0 for server nfs-server.example.local</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: WARNING: Failed to create machine krb5 context with credentials cache
<a href="FILE:///\\tmp\krb5cc_machine_EXAMPLE.LOCAL">FILE:/tmp/krb5cc_machine_EXAMPLE.LOCAL</a> for server nfs-server.example.local</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: WARNING: Failed to create machine krb5 context with any credentials cache for server nfs-server.example.local</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: doing error downcall</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fa770 data 0x7fffaf4fa640</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fa770 data 0x7fffaf4fa640</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fa770 data 0x7fffaf4fa640</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fa770 data 0x7fffaf4fa640</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fa770 data 0x7fffaf4fa640</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: dir_notify_handler: sig 37 si 0x7fffaf4fa770 data 0x7fffaf4fa640</code><br>
<code>Feb 15 23:43:23 nfs-client rpc.gssd[1123]: destroying client /var/lib/nfs/rpc_pipefs/nfs/clnt0</code><br>
<br>
<code>/etc/krb5.conf</code><br>
<code>includedir /var/lib/sss/pubconf/krb5.include.d/</code><br>
<br>
<code>[libdefaults]</code><br>
<code>  default_realm = EXAMPLE.LOCAL</code><br>
<code>  dns_lookup_realm = false</code><br>
<code>  dns_lookup_kdc = true</code><br>
<code>  rdns = false</code><br>
<code>  ticket_lifetime = 24h</code><br>
<code>  forwardable = yes</code><br>
<code>  allow_weak_crypto = true</code><br>
<code>  permitted_enctypes = des3-cbc-sha1</code><br>
<br>
<code>[realms]</code><br>
<code>  EXAMPLE.LOCAL = {</code><br>
<code>  kdc = ipa-server.example.local:88</code><br>
<code>  master_kdc = ipa-server.example.local:88</code><br>
<code>  admin_server = ipa-server.example.local:749</code><br>
<code>  default_domain = example.local</code><br>
<code>  pkinit_anchors = <a href="FILE:///\\etc\ipa\ca.crt">FILE:/etc/ipa/ca.crt</a></code><br>
<code>  }</code><br>
<br>
<code>[domain_realm]</code><br>
<code>  .example.local = EXAMPLE.LOCAL</code><br>
<code>  example.local = EXAMPLE.LOCAL</code><br>
<br>
<code>/etc/krb5.keytab entries:</code><br>
<code>[root@nfs-client ~]# klist -kte</code><br>
<code>Keytab name: <a href="FILE:///\\etc\krb5.keytab">FILE:/etc/krb5.keytab</a></code><br>
<code>KVNO Timestamp        Principal</code><br>
<code>---- ----------------- --------------------------------------------------------</code><br>
<code>  4 02/15/14 23:27:51 <a href="mailto:host/nfs-client.example.local@EXAMPLE.LOCAL">
host/nfs-client.example.local@EXAMPLE.LOCAL</a> (des3-cbc-sha1)</code><br>
<code>  3 02/15/14 23:27:58 <a href="mailto:nfs/nfs-client.example.local@EXAMPLE.LOCAL">
nfs/nfs-client.example.local@EXAMPLE.LOCAL</a> (des3-cbc-sha1)</code><br>
<br>
<br>
<code><b>#####</b></code><b><br>
<code>#####</code><br>
<code>Server:</code></b><br>
<code>[root@nfs-server ~]# cat /etc/exports</code><br>
<code>/pmtest    10.50.0.0/24(rw,sec=krb5,fsid=0)</code><br>
<br>
<code>[root@nfs-server ~]# exportfs -v</code><br>
<code>/pmtest        10.50.0.0/24(rw,wdelay,root_squash,no_subtree_check,fsid=0,sec=krb5,rw,root_squash,no_all_squash)</code><br>
<br>
<code>[root@nfs-server ~]# service iptables status;getenforce</code><br>
<code>iptables: Firewall is not running.</code><br>
<code>Disabled</code><br>
<br>
<br>
<code>/var/log/messages:</code><br>
<code>Feb 15 23:43:24 nfs-server rpc.svcgssd[6446]: ERROR: GSS-API: error in handle_nullreq: gss_accept_sec_context(): GSS_S_FAILURE (Unspecified GSS failure.  Minor code may provide more information) - Wrong principal in request</code><br>
<code>Feb 15 23:43:24 nfs-server rpc.svcgssd[6446]: ERROR: GSS-API: error in handle_nullreq: gss_accept_sec_context(): GSS_S_FAILURE (Unspecified GSS failure.  Minor code may provide more information) - Wrong principal in request</code><br>
<br>
<br>
<code>/etc/krb5.conf</code><br>
<code>includedir /var/lib/sss/pubconf/krb5.include.d/</code><br>
<br>
<code>[libdefaults]</code><br>
<code>  default_realm = EXAMPLE.LOCAL</code><br>
<code>  dns_lookup_realm = true</code><br>
<code>  dns_lookup_kdc = true</code><br>
<code>  rdns = false</code><br>
<code>  ticket_lifetime = 24h</code><br>
<code>  forwardable = yes</code><br>
<code>  allow_weak_crypto = true</code><br>
<code>  permitted_enctypes = des3-cbc-sha1</code><br>
<br>
<code>[realms]</code><br>
<code>  EXAMPLE.LOCAL = {</code><br>
<code>  kdc = ipa-server.example.local:88</code><br>
<code>  master_kdc = ipa-server.example.local:88</code><br>
<code>  admin_server = ipa-server.example.local:749</code><br>
<code>  default_domain = example.local</code><br>
<code>  pkinit_anchors = <a href="FILE:///\\etc\ipa\ca.crt">FILE:/etc/ipa/ca.crt</a></code><br>
<code>  }</code><br>
<br>
<code>[domain_realm]</code><br>
<code>  .example.local = EXAMPLE.LOCAL</code><br>
<code>  example.local = EXAMPLE.LOCAL</code><br>
<br>
<br>
<code>/etc/krb5.keytab entries:</code><br>
<code>[root@nfs-server ~]# klist -kte</code><br>
<code>Keytab name: <a href="FILE:///\\etc\krb5.keytab">FILE:/etc/krb5.keytab</a></code><br>
<code>KVNO Timestamp        Principal</code><br>
<code>---- ----------------- --------------------------------------------------------</code><br>
<code>  2 02/15/14 23:09:43 <a href="mailto:host/nfs-server.example.local@EXAMPLE.LOCAL">
host/nfs-server.example.local@EXAMPLE.LOCAL</a> (des3-cbc-sha1)</code><br>
<code>  3 02/15/14 23:09:51 <a href="mailto:nfs/nfs-server.example.local@EXAMPLE.LOCAL">
nfs/nfs-server.example.local@EXAMPLE.LOCAL</a> (des3-cbc-sha1)</code></span> <o:p>
</o:p></p>
</div>
</div>
<br>
<br>
<br>
<br>
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil
 or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
</body>
</html>