From: Lyndon Nerenberg <lyndon@orthanc.ca>
To: lyndon@orthanc.ca
Subject: Re: [9fans] Factotum vs SASL
Date: Sun, 16 Nov 2014 21:57:11 -0800 [thread overview]
Message-ID: <F72D0DCA-8C82-40AB-B8DC-E7FD794E3308@orthanc.ca> (raw)
In-Reply-To: <546981BE.90704@gr13.net>
> I've got the impression that there're some similarities between SASL
> (saslauthd) and Factotum - at least at the point that both are
> offloading actual authentication handshakes to a separate service.
> But I have to admit that I didn't have done a deeper analysis of
> these two.
>
> Could anybody with deeper insight perhaps give some detailed
> comparison between them ?
No, they aren't the same thing. saslauthd was written to provide privilege separation for the CMU IMAP server. The CMU mail store processes (imapd, popd) would run under a unique uid, which owned all the files in the message store. To do plaintext authentication using the UNIX /etc/passwd database, if the host used shadow password files, you had to have an effective uid of 0 to be able to read the encrypted password field. Rather than have imapd run as root, and then drop privileges down to the mail store uid, the code requiring uid=0 was isolated into a separate process: saslauthd. When imapd needed to do authenticate a plaintext login request against the shadow password file, it would contact saslauthd over a named socket, send it the plaintext userid and password, then wait for a pass/fail response to come back. The protocol over the named socket is private to the Cyrus code.
So, saslauthd doesn't speak SASL, it just proxies certain system requests that require escalated security permissions to invoke. It did grow to include a few additional mechanisms (dce, kerberos, ldap) that benefited from its ability to keep a temporary cache of valid credentials, thus reducing the number of calls out to the external services.
factotum is a different beast, best explained by the security paper: http://plan9.bell-labs.com/sys/doc/auth.pdf
next prev parent reply other threads:[~2014-11-17 5:57 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-17 5:03 Enrico Weigelt, metux IT consult
2014-11-17 5:57 ` Lyndon Nerenberg [this message]
2014-11-17 6:29 ` lucio
2014-11-17 13:58 ` erik quanstrom
2014-11-17 14:14 ` lucio
2014-11-18 8:22 ` Skip Tavakkolian
2014-11-29 19:46 ` Enrico Weigelt, metux IT consult
2014-11-29 19:46 ` erik quanstrom
2014-11-29 21:20 ` Enrico Weigelt, metux IT consult
2014-11-29 21:23 ` erik quanstrom
2014-12-01 6:28 ` Enrico Weigelt, metux IT consult
2014-12-01 7:00 ` lucio
2014-12-01 10:38 ` tlaronde
2014-12-01 10:45 ` lucio
2014-12-02 4:00 ` Enrico Weigelt, metux IT consult
2014-12-02 4:08 ` erik quanstrom
2014-12-02 15:40 ` plannine
2014-12-02 16:33 ` Wes Kussmaul
2014-12-02 20:32 ` Skip Tavakkolian
2014-12-02 22:20 ` Enrico Weigelt, metux IT consult
2014-12-02 9:50 ` Richard Miller
2014-12-02 22:15 ` Enrico Weigelt, metux IT consult
2014-12-01 12:14 ` Stuart Morrow
2014-12-02 20:32 ` Skip Tavakkolian
2015-01-01 14:55 ` Teodoro Santoni
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=F72D0DCA-8C82-40AB-B8DC-E7FD794E3308@orthanc.ca \
--to=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).