This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.
Differences between revisions 5 and 6
Revision 5 as of 2007-08-01 13:27:23
Size: 2201
Editor: TimoSirainen
Comment:
Revision 6 as of 2007-10-20 20:16:47
Size: 2403
Editor: TimoSirainen
Comment:
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
  * username: Like user, but doesn't drop existing domain name (e.g. "username=foo" for "user@domain" gives "foo@domain"). v1.1+ only.
  * domain: Updates the domain part of the username. v1.1+ only.

Password Databases

Dovecot authenticates users from password databases. It can also be used to configure things like [:PasswordDatabase/ExtraFields/Proxy:proxies].

You can use multiple databases, so if the password doesn't match in the first database, Dovecot checks the next one. This can be useful if you want to easily support having both virtual users and also local system users (see ["Authentication/MultipleDatabases"]).

Success/failure databases

These databases simply verify if the given password is correct for the user. Dovecot doesn't get the correct password from the database, it only gets a "success" or a "failure" reply. This means that these databases can't be used with non-plaintext [:Authentication/Mechanisms:authentication mechanisms].

Databases that belong to this category are:

Lookup databases

Dovecot does a lookup based on the username and possibly other information (e.g. IP address) and verifies the password validity itself. Fields that the lookup can return:

  • [:Authentication/PasswordSchemes:password]: User's password.

  • [:PasswordDatabase/ExtraFields/User:user]: Returning a user field can be used to change the username. Typically used only for case changes (e.g. "UseR" -> "user").

    • username: Like user, but doesn't drop existing domain name (e.g. "username=foo" for "user@domain" gives "foo@domain"). v1.1+ only.
    • domain: Updates the domain part of the username. v1.1+ only.
  • Other special [:PasswordDatabase/ExtraFields:extra fields].

Databases that support looking up only passwords, but no user or extra fields:

  • [:AuthDatabase/Passwd:Passwd]: System users (NSS, /etc/passwd, or similiar).

  • [:PasswordDatabase/Shadow:Shadow]: Shadow passwords for system users (NSS, /etc/shadow or similiar).

  • [:AuthDatabase/VPopMail:VPopMail]: External software used to handle virtual domains.

Databases that support looking up everything:

  • [:AuthDatabase/PasswdFile:Passwd-file]: /etc/passwd-like file in specified location.

  • [:AuthDatabase/LDAP:LDAP]: Lightweight Directory Access Protocol.

  • [:AuthDatabase/SQL:SQL]: SQL database (PostgreSQL, MySQL, SQLite).

None: PasswordDatabase (last edited 2010-04-14 00:47:30 by unknown)