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 8BE01C25B4E for ; Sun, 22 Jan 2023 17:55:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbjAVRzw (ORCPT ); Sun, 22 Jan 2023 12:55:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjAVRzv (ORCPT ); Sun, 22 Jan 2023 12:55:51 -0500 Received: from out20-97.mail.aliyun.com (out20-97.mail.aliyun.com [115.124.20.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8276E14EAB for ; Sun, 22 Jan 2023 09:55:48 -0800 (PST) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09957631|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0873378-0.000501916-0.91216;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-.f-kv_1674410144; Received: from 192.168.2.112(mailfrom:wangyugui@e16-tech.com fp:SMTPD_---.R-.f-kv_1674410144) by smtp.aliyun-inc.com; Mon, 23 Jan 2023 01:55:45 +0800 Date: Mon, 23 Jan 2023 01:55:47 +0800 From: Wang Yugui To: linux-nfs@vger.kernel.org Subject: Re: any guide to install/test nfs sec=krb5? In-Reply-To: <20230122124313.31CB.409509F4@e16-tech.com> References: <20230122124313.31CB.409509F4@e16-tech.com> Message-Id: <20230123015546.5653.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, > 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. Best Regards Wang Yugui (wangyugui@e16-tech.com) 2023/01/23 > test env: > krb5 server : windows active directory > linux: rocky linux 9.1, already 'realm join' with sssd. > > 1) from redhat > https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_using_network_file_services/securing-nfs_configuring-and-using-network-file-services > Procedure > Create the nfs/hostname.domain@REALM principal on the NFS server side. > Create the host/hostname.domain@REALM principal on both the server and the client side. > Add the corresponding keys to keytabs for the client and server. > > but we need more detail. > > > 2, from isilon > 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 > more detail than redhat. > > but the following fail. > Test registration by running. > kinit -k host/@NFS-REALM.LOCAL > > host/ will is already created when 'realm join'? > host/ is created here again, so there is some trouble? > > 'kinit -k nfs/@NFS-REALM.LOCAL' works as the document. > > > any guide please, thanks a lot. > > Best Regards > Wang Yugui (wangyugui@e16-tech.com) > 2023/01/22 >