From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9AAEC10DAA for ; Wed, 9 Sep 2020 16:24:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 731A8206B8 for ; Wed, 9 Sep 2020 16:24:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731023AbgIIQYB convert rfc822-to-8bit (ORCPT ); Wed, 9 Sep 2020 12:24:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:58102 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731056AbgIIQX4 (ORCPT ); Wed, 9 Sep 2020 12:23:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 64A66B289; Wed, 9 Sep 2020 14:13:33 +0000 (UTC) From: =?utf-8?Q?Aur=C3=A9lien?= Aptel To: Shyam Prasad N Cc: CIFS , samba-technical@lists.samba.org, Pavel Shilovsky , Steve French , sribhat.msa@outlook.com Subject: Re: [PATCH][SMB3] mount.cifs integration with PAM In-Reply-To: References: <87pn7t4kr9.fsf@suse.com> <87eeo54q0i.fsf@suse.com> Date: Wed, 09 Sep 2020 16:13:16 +0200 Message-ID: <874ko7vy0z.fsf@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Shyam Prasad N writes: > Thoughts? You are reaching the limits of my poor understanding of this kerberos stuff. What is the difference between keytab and credential cache? So IIUC you are proposing 2 ways to go about it: a) - do PAM login in mount.cifs (which in turns calls into sssd/winbind) - implement umount.cifs for PAM logoff b) - ignore PAM and winbind/sssd and do kinit in mount.cifs manually - would this requires umount.cifs as well? I like (b) because it feels we have more control and don't require a big external program like winbind *but* if (b) doesn't do the refreshing of the tickets then the mount will always stop working after they expire. This seems only useful for quick one-off mounting or testing/debugging. Real end users will find it unreliable unless they setup something like what winbind does essentially. So ultimately, to me, (a) seems like the better choice. Let me know if I misunderstood something. Cheers, -- Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)