Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4829068rwb; Sat, 21 Jan 2023 20:55:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXunrEqz803PRtlTQZsj21mzoop2IMm6jTpCql1Su0HRAHhrvqeAM4rsvGYtlBOGP25SPeG6 X-Received: by 2002:a05:6a20:8b25:b0:b5:c352:1fc8 with SMTP id l37-20020a056a208b2500b000b5c3521fc8mr20354817pzh.15.1674363326885; Sat, 21 Jan 2023 20:55:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674363326; cv=none; d=google.com; s=arc-20160816; b=w6HDbDt/hz3lNEJIXq5baxecMfLGa8xYccfyiWHShs3ZPEtng3SGeoh3vH5zN0lZTT kppWtkB7oe3DC8f8YlRowFZ0t9AKbORW/xick4SAAW9rIJ7gvVZSIbVmkmR0SbOq1N3d 5GXyFgr62ypjEqadIG6mtlmYwqrfBGt4Jvl0jkpFrFop/1uphgBBzMaY1Np+1qGIj1Ws ghKlHN0WWXC9S7JR9uL/OJ6llaSf09EHS6pd8j1H4k1u9cxbjI4we/hQyTW4DBwh6d3p PDVjsZHew/FQRavYuXOsX3EXvZefiqLLnAm275efx69RNN6SfTO5EQkhJ0d8frYsfcH5 Z6kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:to:from:date; bh=ew2gACXySGMkNqgq3B6/RUuwJWF2dp4hzHBOnqsndsc=; b=wavwOcQSCMAmw/H6fW6jn9Vi3ORteTeYwRwOg6ZB4LtUtqF+eiBMeMIGDL9ZslW2uK qK0imvgZP4178tc5BePlHvBeFXoo5KFMKZ+ojDTqoY9fH2ydpbaitJ20g432FAxqDkD9 1jHnKbPdpMBSppGeOEvg33Ukt099Nc/OBAe5XEUhd3E9yn2nz5S5svH/NL0p/4V+hWk+ orZ2YVxURCB+6F0FhOQrwpepXLyYfdoMaujdUF2q6GPi+TJ7mbMT1lBrRVT/WfHdVveX 0YOhNoeXlLdAuCk5l7ZJ9lkJu+2ffM5EqYDmm0bRDRbcRFQQ4iX59WjTKesYoCTtCqOx r4Zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a65584b000000b0049d000c59desi48180860pgr.553.2023.01.21.20.55.01; Sat, 21 Jan 2023 20:55:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229523AbjAVEnR (ORCPT + 99 others); Sat, 21 Jan 2023 23:43:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjAVEnR (ORCPT ); Sat, 21 Jan 2023 23:43:17 -0500 Received: from out28-58.mail.aliyun.com (out28-58.mail.aliyun.com [115.124.28.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E2A023131 for ; Sat, 21 Jan 2023 20:43:14 -0800 (PST) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1565999|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0620024-0.00028846-0.937709;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047205;MF=wangyugui@e16-tech.com;NM=1;PH=DS;RN=1;RT=1;SR=0;TI=SMTPD_---.QzYYT9s_1674362592; Received: from 192.168.2.112(mailfrom:wangyugui@e16-tech.com fp:SMTPD_---.QzYYT9s_1674362592) by smtp.aliyun-inc.com; Sun, 22 Jan 2023 12:43:12 +0800 Date: Sun, 22 Jan 2023 12:43:13 +0800 From: Wang Yugui To: linux-nfs@vger.kernel.org Subject: any guide to install/test nfs sec=krb5? Message-Id: <20230122124313.31CB.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] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi, Is there any guide to install/test nfs sec=krb5? 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