Imported upstream version 0.59.3
[hcoop/debian/courier-authlib.git] / authpasswd.1
CommitLineData
d9898ee8 1.\" <!-- $Id: authpasswd.sgml,v 1.4 2007/04/22 15:05:16 mrsam Exp $ -->
2.\" <!-- Copyright 2004 Double Precision, Inc. See COPYING for -->
3.\" <!-- distribution information. -->
4.\" Title: authpasswd
5.\" Author:
6.\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
7.\" Date: 04/22/2007
8.\" Manual: Double Precision, Inc.
9.\" Source: Double Precision, Inc.
10.\"
11.TH "AUTHPASSWD" "1" "04/22/2007" "Double Precision, Inc." "Double Precision, Inc."
12.\" disable hyphenation
13.nh
14.\" disable justification (adjust text to left margin only)
15.ad l
16.SH "NAME"
17authpasswd \- Generate login passwords
18.SH "SYNOPSIS"
19.HP 11
20\fBauthpasswd\fR [method]
21.SH "DESCRIPTION"
22.PP
23
24\fBauthpasswd\fR
25is a helper utility that generated encrypted passwords for the Courier authentication library. The Courier authentication library is capable of using several different encryption methods for storing passwords.
26\fBauthpasswd\fR
27issues a password prompt. Enter the same password twice (for verification purposes).
28\fBauthpasswd\fR
29computes and prints the encrypted password. The encrypted password can be inserted verbatim into the appropriate account record that's processed by the authentication library's
30authmysql,
31authpgsql, or
32authldap
33module.
34.PP
35
36\fImethod\fR
37may be set to one of the following literals:
38.PP
39crypt
40.RS 4
41Use the traditional
42DES\-based encrypted password.
43.RE
44.PP
45md5
46.RS 4
47Compute an
48MD5
49password hash.
50.RE
51.PP
52sha1
53.RS 4
54Compute a
55SHA1
56password hash.
57.RE
58.PP
59sha256
60.RS 4
61Compute a
62SHA256
63password hash.
64.RE
65.PP
66If not specified,
67\fImethod\fR
68defaults to the modified\-MD5
69password encryption algorithm that's used in Linux (note that this is different from the
70\(lqmd5\(rq
71password hash method).