This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 28 and 29
Revision 28 as of 2016-06-28 08:28:55
Size: 1670
Editor: AkiTuomi
Revision 29 as of 2022-02-04 23:23:25
Size: 71
Editor: TimoSirainen
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Authentication =
Authentication is split into four parts:

 1. [[Authentication/Mechanisms|Authentication mechanisms]]
 1. [[Authentication/PasswordSchemes|Password schemes]]
 1. [[PasswordDatabase|Password databases]]
 1. [[UserDatabase|User databases]]

See also [[Authentication/Penalty|authentication penalty]] handling for IP addresses. See also [[Authentication/Policy|authentication policy support]] for making policy based decisions.

== Authentication mechanisms vs. password schemes ==
Authentication mechanisms and password schemes are often confused, because they have somewhat similar values. For example there is a PLAIN auth mechanism and PLAIN password scheme. But they mean completely different things.

 * '''Authentication mechanism is a client/server protocol'''. It's about how the client and server talk to each others in order to perform the authentication. Most people use only PLAIN authentication, which basically means that the user and password are sent without any kind of encryption to the server. SSL/TLS can then be used to provide the encryption to make PLAIN authentication secure.
 * '''Password scheme is about how the password is hashed in your password database'''. If you use a PLAIN scheme, your passwords are stored in cleartext without any hashing in the password database. A popular password scheme MD5-CRYPT (also commonly used in {{{/etc/shadow}}}) where passwords looks like "$1$oDMXOrCA$plmv4yuMdGhL9xekM.q.I/".
 * Plaintext authentication mechanisms work with ALL password schemes.
 * Non-plaintext authentication mechanisms require either PLAIN password scheme or a mechanism-specific password scheme.
Moved to

None: Authentication (last edited 2022-02-04 23:23:25 by TimoSirainen)