Index of /doc/courier-authlib

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[   ]ChangeLog 2022-12-02 12:12 24K 
[TXT]INSTALL.html 2022-04-22 14:29 19K 
[   ]INSTALL 2022-05-21 23:12 15K 
[   ]samplepipe.pl 2013-08-25 18:44 2.3K 
[   ]NEWS 2013-08-25 19:10 645  

Courier Authentication Library

Courier Authentication Library

Download: http://www.courier-mta.org/download.html#authlib

Overview

The Courier authentication library provides authentication services for other Courier applications. In this context, the term "authentication" refers to the following functions:

  1. Take a userid or a loginid, and a password. Determine whether the loginid and the password are valid.
  2. Given a userid, obtain the following information about the userid:
    1. The account's home directory.
    2. The numeric system userid and groupid that owns all files associated with this account.
    3. The location of the account's maildir.
    4. Any maildir quota defined for this account. See the Courier documentation for more information on maildir quotas.
    5. Other miscellaneous account-specific options.
  3. Change the password associated with a loginid.
  4. Obtain a complete list of all login ids.

The Courier authentication library provides alternative implementations of these authentication services:

  1. Use the traditional system password files: /etc/passwd and /etc/shadow, possibly in conjunction with the PAM library.
  2. Maintain all this information in a GDBM or a DB database. The GDBM or the DB database is compiled from plain text files. Perl scripts provide a simple interface for creating and editing the authentication information, then a script compiles the plain text files into a database.
  3. Use an LDAP server for authentication.
  4. Use a table in a MySQL database for authentication.
  5. Use a table in a PostgreSQL database for authentication.
  6. Use a table in an SQLite file for authentication.

All Courier components that use this authentication library, therefore, will be able to authenticate E-mail accounts using any of the above methods.

Additional information can be found in the INSTALL file.

The authentication API is documented.

Further resources

Subscribe to the courier-users mailing list. Go to http://lists.sourceforge.net/mailman/listinfo/courier-users to subscribe to courier-users, or send a message to <courier-users-request@lists.sourceforge.net> and put "subscribe" in the subject line. Search the list archives at http://markmail.org/browse/net.sourceforge.lists.courier-users.