From: Frank Loeffler <frank.loeffler@uni-jena.de>
To: "Aurélien Aptel" <aaptel@suse.com>
Cc: linux-cifs@vger.kernel.org
Subject: Re: specifying password when using krb5
Date: Mon, 29 Mar 2021 19:08:49 +0200 [thread overview]
Message-ID: <20210329170849.GD21718@topf.wg> (raw)
In-Reply-To: <87o8f2orjm.fsf@suse.com>
[-- Attachment #1: Type: text/plain, Size: 1692 bytes --]
Hi,
On Mon, Mar 29, 2021 at 06:25:49PM +0200, Aurélien Aptel wrote:
>When you use a password you're actually not using krb5 (even in
>smbclient), you're using NTLMSSP authentication.
As far as I understand, you (can) use a password to obtain a krb5-token,
which is then used for sec=krb5. From a users point of view, you enter
username and password and get access. Whether this is using krb5 and a
token or some other mechanism is usually something a user doesn't even
want to know about. What they know is a username/password combination
and a share name on some remote machine.
If the mechanism happens to be krb5 (isn't that even the default on
Windows shares?), you might need a temporary token, but I wonder if
that "technicality" couldn't be made transparent to the user by default.
This would make mounting Windows shares a lot less 'messy' to users.
>> 4. Currently, trying sec=krb5 without token cache files results in
>> the
>> rather obscure error "mount error(2): No such file or directory". Could
>> this me changed into something that points users to the actual cause of
>> the error?
>
>Sadly we don't have much to work with. Mounting is done with a single
>system call mount() which can only return 1 error code from the list of errno
>codes https://man7.org/linux/man-pages/man3/errno.3.html
That is unfortunate. However, not even verbose mounting gave me any
indication of what it was that is actually failing. Maybe, before
returning ENOENT, cifs you print something else, possibly at least with
high verbosity/debugging enabled.
>I think you are :) thanks for reporting.
Thanks for your time responding. :)
Frank
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-03-29 17:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-27 11:32 specifying password when using krb5 Frank Loeffler
2021-03-29 14:56 ` Shyam Prasad N
2021-03-29 16:25 ` Aurélien Aptel
2021-03-29 17:08 ` Frank Loeffler [this message]
2021-03-31 17:42 ` Aurélien Aptel
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=20210329170849.GD21718@topf.wg \
--to=frank.loeffler@uni-jena.de \
--cc=aaptel@suse.com \
--cc=linux-cifs@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