From: steve <steve@steve-ss.com>
To: Don Riden <don@riden.org.uk>
Cc: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: where can I ask user qns about nfs4?
Date: Thu, 09 Feb 2012 20:33:58 +0100 [thread overview]
Message-ID: <4F341FA6.9080101@steve-ss.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1202091707390.25543@localhost.localdomain>
On 02/09/2012 07:57 PM, Don Riden wrote:
>
>
>> Thanks, the problem isn't getting NFS with Kerberos to work in
>> general, it's with AD as the KDC. It seems that NFS still only
>> accepts DES encrypted Kerberos tickets, and these are specifically
>> disabled in Windows Server 2008 R2.
>
> I've recently managed to get a Linux Kerberized NFS server working
> using an Active Directory 2008 R2 domain controller as a KDC (using
> arcfour-hmac and aes256-cts-hmac-sha1-96).
>
> It's reasonably fiddly and took quite a lot of tweaking to get right.
>
> A short summary of the AD specific side of our configuration:
>
> For hosts with Samba 3. We join them to the domain with 'net ads join'
> and
> create NFS principals with 'net ads keytab'.
>
> For hosts without Samba (the vast majority of hosts). We use ksetpw
> (an old Solaris utility to
> generate AES/arcfour principals). I believe that Microsoft has a similar
> utility called ktpass.exe but I've never tested it.
>
> I'm happy to provide more details of the domain joining process
> offlist or summarise in another
> email if there is interest.
>
> In the computer Active Directory account we set the :
>
> UserPrincpalName: host/fqdn@DNS_DOMAIN
> ServicePrincipalName: host/fqdn and nfs/fqdn
> DNSDomainName: fqdn
> MSDS-SupportedEncryptionTypes: 0x1C
>
> One caveat. I've observed the following behaviour on RHEL5 and RHEL6
> (it may
> have changed):
>
> In AD (as far as I'm aware) you can only obtain a TGT from a principal
> matching the UserPrincpalName of the account. On startup rpc.gssd
> obtains a TGT. If you've generated both 'nfs/*' and 'host/*'
> principals in your keytab rpc.gssd will prefer the nfs principal.
> This won't work if your UserPrincipalName in AD is 'host/*'. My
> workaround in the
> past has been to change the search order in the nfs-utils source code
> (putting the host principal first). Using a UPN of nfs/fqdn@DNS_DOMAIN
> may also work.
>
> One issue that caused me difficulty was configuring the Kerberized NFS
> server on Linux. Specifically - clients could mount the filesystem
> without issue but when a user attempted to access the mount they got
> 'permission denied'.
>
> Looking at the NFS requests on the wire I noticed that the GSS tokens
> were around 2500 bytes in size. Further research indicated that this
> is the
> result of Microsoft adding a 'Privilege Attribute Certificate' to service
> tickets.
>
> Setting the UserAccountControl parameter in AD on the NFS server to
> '0x2000000' (NO_AUTH_DATA_REQUIRED) reduced the size of this token to
> about 500 bytes and resolved the issue.
>
> Our NFS clients are mostly RHEL6 and RHEL5 with a few Gentoo boxes
> running
> nfs-utils 1.2.5 and kernel 3.2.1 . All seem to work fine with the
> above configuration.
>
> On the server side we've tested RHEL6 and Gentoo.
>
> Hopefully that is of some help.
>
> I'm surprised by the lack of documentation available on using
> Kerberised NFS with AD. I would have thought that it would be a fairly
> common configuration?
>
> Since it's taken me a while to put the pieces together I'll try and
> come up with some more
> comprehensive documentation in the near future.
>
> Cheers
>
>
> Don
Hi
If it's a recent Linux distro you should be able to save a bit of
fiddling because the nfs/client.domain principal is not needed. net ads
keytab create makes the machine and host principals for you, and you're
done:
http://linux.die.net/man/8/rpc.gssd
Working fine here with Samba 4 KDC and nfs4 for openSUSE Linux clients
using acrfour-hmac.
HTH
Cheers,
Steve
next prev parent reply other threads:[~2012-02-09 19:34 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-02 6:39 where can I ask user qns about nfs4? steve
2012-02-02 10:58 ` Tigran Mkrtchyan
2012-02-02 11:33 ` nfs4 keytabs [was:Re: where can I ask user qns about nfs4]? steve
2012-02-02 13:05 ` Tigran Mkrtchyan
2012-02-02 13:29 ` steve
2012-02-02 14:56 ` steve
2012-02-02 18:57 ` Tigran Mkrtchyan
2012-02-03 17:22 ` steve
2012-02-06 13:31 ` steve
2012-02-04 20:50 ` where can I ask user qns about nfs4? Liam Gretton
2012-02-05 9:26 ` steve
2012-02-05 14:16 ` Jim Rees
2012-02-05 16:55 ` Liam Gretton
2012-02-05 17:37 ` Jim Rees
2012-02-06 16:39 ` J. Bruce Fields
2012-02-06 18:54 ` steve
2012-02-09 18:57 ` Don Riden
2012-02-09 19:33 ` steve [this message]
2012-02-10 8:19 ` steve
2012-02-10 18:40 ` J. Bruce Fields
2012-02-10 19:13 ` steve
2012-02-10 19:14 ` J. Bruce Fields
2012-02-10 23:20 ` steve
2012-02-10 20:47 ` Liam Gretton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F341FA6.9080101@steve-ss.com \
--to=steve@steve-ss.com \
--cc=don@riden.org.uk \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).