From: Ori Bernstein <ori@eigenstate.org>
To: 9fans <9fans@9fans.net>
Cc: Lyndon Nerenberg <lyndon@orthanc.ca>
Subject: Re: [9fans] factotum vs. SASL+TLS+applications
Date: Mon, 27 Jan 2020 11:52:53 -0800 [thread overview]
Message-ID: <20200127115253.419e4d1fc22158f116f3342c@eigenstate.org> (raw)
In-Reply-To: <f4e59c0999eded17@orthanc.ca>
> The following is all hypothetical. I'm curious about how people
> think auth(2)/factotum(4) could be adapted to support the use
> case ...
>
> factotum was intended to handle the authentication dance on behalf
> of network apps. But in the case of things like IMAP, it really
> just stores the client's login/password, and provides a bit of
> helper glue for CRAM-MD5. Similarly for ftpfs.
>
> I'm curious why upasfs and ftpfs are outliers in only using factotum
> as a credential store, but leaving the actual authentication protocol
> dance in the clients/servers. The "Security" paper (/sys/doc/auth)
> strongly hints that these parts of the application protocols were
> meant to be outsourced to factotum. Section 2.2 in particular
> argues that the auth modules should be implemented once in factotum,
> for consumption by the rest of the system.
Probably simple expediency.
> <snip>
>
> To require a specific SASL mechanism, add "sasl=scram-md5" (using
> "sasl=*" as a default if you need to fall back for some reason).
This all sounds fairly reasonable. I think that patches to this effect
would be worth integrating.
> Of course all of this needs to be glued into auth(2) in a way that
> doesn't destroy the existing API. But it does need to handle
> factotum replacing the underlying connection to the client/server
> with one that has been pushtls()ed by factotum itself.
I'm not sure how factotum can have this action at a distance. I think
the pushtls is stuck in the client itself -- though, the auth code can
probably return the parameters needed for this.
prev parent reply other threads:[~2020-01-27 19:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-24 6:12 Lyndon Nerenberg
2020-01-24 7:41 ` [9fans] " Lucio De Re
2020-01-24 10:08 ` hiro
2020-01-27 19:52 ` Ori Bernstein [this message]
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=20200127115253.419e4d1fc22158f116f3342c@eigenstate.org \
--to=ori@eigenstate.org \
--cc=9fans@9fans.net \
--cc=lyndon@orthanc.ca \
/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;
as well as URLs for NNTP newsgroup(s).