Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46F9CC05027 for ; Mon, 23 Jan 2023 16:07:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232588AbjAWQHE (ORCPT ); Mon, 23 Jan 2023 11:07:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233052AbjAWQHC (ORCPT ); Mon, 23 Jan 2023 11:07:02 -0500 Received: from out20-98.mail.aliyun.com (out20-98.mail.aliyun.com [115.124.20.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA0FCDE7 for ; Mon, 23 Jan 2023 08:06:48 -0800 (PST) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.05079835|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.00701216-0.00155358-0.991434;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047209;MF=wangyugui@e16-tech.com;NM=1;PH=DS;RN=1;RT=1;SR=0;TI=SMTPD_---.R-pfrsX_1674490004; Received: from 192.168.2.112(mailfrom:wangyugui@e16-tech.com fp:SMTPD_---.R-pfrsX_1674490004) by smtp.aliyun-inc.com; Tue, 24 Jan 2023 00:06:45 +0800 Date: Tue, 24 Jan 2023 00:06:46 +0800 From: Wang Yugui To: linux-nfs@vger.kernel.org Subject: Re: any guide to install/test nfs sec=krb5? In-Reply-To: <20230123120836.1D16.409509F4@e16-tech.com> References: <20230123015546.5653.409509F4@e16-tech.com> <20230123120836.1D16.409509F4@e16-tech.com> Message-Id: <20230124000645.AD00.409509F4@e16-tech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.81.04 [en] Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi, > Hi, > > > Hi, > > > > > Is there any guide to install/test nfs sec=krb5? > > > > A better document: > > https://www.delltechnologies.com/asset/en-us/products/storage/industry-market/h17769_integrating_onefs_with_kerberos_wp.pdf > > 3.1.2 Configurations for Kerberized NFS with AD > > > > we just directly add nfs/ SPN in 'Figure 5 Check SPNs in AD'. > > and we no longer need ''ktpass.exe -mapUse' in another document: > > http://doc.isilon.com/ECS/3.3/AdminGuide/ecs_t_file_access_confgure_kerberos.html > > http://doc.isilon.com/ECS/3.7/AdminGuide/GUID-2018CF69-5F1E-4F3A-BA90-3659F85DE415.html > > > > and then 'mount.nfs4 -o sec=krb5' works in rocky linux 9.1. > > I test more case with different nfs server / nfs client version. > > SPN host/ > 'realm join' auto create > SPN nfs/ > setspn.exe -S nfs/T3610 T3610; setspn.exe -S nfs/T3610.e16-tech.com T3610 > > 'kinit -k nfs/t3610.e16-tech.com@E16-TECH.COM' no need to work > 'kinit -k host/t3610.e16-tech.com@E16-TECH.COM' no need to work. > > el9: rocky linux 9.1 > el8: oracle linux 8.6 > el7: centos 7.9 > > nfs-server/el9 nfs-client OK/el7, *1/el8, OK/el9 > nfs-server/el8 nfs-client OK/el7, *1/el8, *1/*2/el9 > nfs-server/el7 nfs-client OK/el7, OK/el8, *1/*2/el9 > *1 Permission denied sssd-ad/winbind-ad do not need rDNS. but for nfs sec=krb5, we need rDNS to work. here there is not only cables that connect to the switch, but also some cables that directly connect to another server. > *2 Invalid argument # when kernel 5.15 in nfs-server, kerenl 6.1 in nfs-client rpc-gssd.service maybe NOT running. we need 'systemctl enable --now nfs-client.target' #vendor preset: disabled@el9, enabled@el7/el8 Now sec=krb5 works well here. Best Regards Wang Yugui (wangyugui@e16-tech.com) 2023/01/23 > > nfs-utils version: 1.3.0/el7, 2.3.3/el8, 2.5.4/el9 > kernel: same 5.15.y/6.1.y on el9/el8/el7 > > Best Regards > Wang Yugui (wangyugui@e16-tech.com) > 2023/01/23