Imported Debian patch 0.66.1-1
[hcoop/debian/courier-authlib.git] / auth_getuserinfo.3
index 19644d0..fd89bf4 100644 (file)
@@ -1,59 +1,74 @@
-.\"  <!-- $Id: auth_getuserinfo.sgml,v 1.4 2007/07/21 20:05:53 mrsam Exp $ -->
+'\" t
 .\"  <!-- Copyright 2004 Double Precision, Inc.  See COPYING for -->
 .\"  <!-- distribution information. -->
 .\"     Title: auth_getuserinfo
-.\"    Author: 
-.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
-.\"      Date: 08/23/2008
+.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 08/25/2013
 .\"    Manual: Double Precision, Inc.
 .\"    Source: Double Precision, Inc.
+.\"  Language: English
 .\"
-.TH "AUTH_GETUSERINFO" "3" "08/23/2008" "Double Precision, Inc." "Double Precision, Inc."
+.TH "AUTH_GETUSERINFO" "3" "08/25/2013" "Double Precision, Inc." "Double Precision, Inc."
+.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
+.\" -----------------------------------------------------------------
+.\" * set default formatting
+.\" -----------------------------------------------------------------
 .\" disable hyphenation
 .nh
 .\" disable justification (adjust text to left margin only)
 .ad l
+.\" -----------------------------------------------------------------
+.\" * MAIN CONTENT STARTS HERE *
+.\" -----------------------------------------------------------------
 .SH "NAME"
-auth_getuserinfo - Obtain account information
+auth_getuserinfo \- Obtain account information
 .SH "SYNOPSIS"
 .sp
-.RS 4
 .nf
-#include <courierauth\.h>
+#include <courierauth\&.h>
 .fi
-.RE
-.HP 24
+.HP \w'int\ rc=auth_getuserinfo('u
 .BI "int rc=auth_getuserinfo(const\ char\ *" "userid" ", int\ " "(*callback_func)" "(struct\ authinfo\ *,\ void\ *), void\ *" "callback_arg" ");"
 .SH "DESCRIPTION"
 .PP
 If
 \fIuserid\fR
 is a valid account name, retrieve the account particulars and invoke
-\fIcallback_func\fR\.
+\fIcallback_func\fR\&.
 .SH "RETURNS"
 .PP
-
 \fBcallback_func\fR
 will be invoked if
 \fIuserid\fR
 exists, and
-\fBcallback_func\fR\'s return value becomes the return value from
+\fBcallback_func\fR\*(Aqs return value becomes the return value from
 \fBauth_getuserinfo\fR
-(which should be 0, by convention)\.
+(which should be 0, by convention)\&.
 \fBcallback_func\fR
 will not be invoked if an error occurs, which is reported by a non\-zero return value from
-\fBauth_getuserinfo\fR\. By convention, a positive return value indicates an internal, temporary failure, such as the authentication daemon process not running; a negative return value indicates that this request was processed, but it failed (probably because
+\fBauth_getuserinfo\fR\&. By convention, a positive return value indicates an internal, temporary failure, such as the authentication daemon process not running; a negative return value indicates that this request was processed, but it failed (probably because
 \fIuserid\fR
-does not exist\.
+does not exist\&.
 .PP
 The second argument to
 \fBcallback_func\fR
 will be
-\fBcallback_arg\fR, which is not interpreted by this function in any way\. The first argument will be a pointer to the following structure:
+\fBcallback_arg\fR, which is not interpreted by this function in any way\&. The first argument will be a pointer to the following structure:
 .PP
-\fBExample\ 1.\ struct authinfo\fR
+\fBExample\ \&1.\ \&struct authinfo\fR
 .sp
+.if n \{\
 .RS 4
+.\}
 .nf
 struct authinfo {
        const char *sysusername;
@@ -72,219 +87,271 @@ struct authinfo {
 
        } ;
 .fi
+.if n \{\
 .RE
+.\}
 .PP
 Description of the above fields:
 .PP
 address
 .RS 4
-The authenticated login ID\.
+The authenticated login ID\&.
 .RE
 .PP
 sysusername
 .RS 4
-The authenticated account\'s userid and groupid can be looked up in the password file using
-address\. If this field is
+The authenticated account\*(Aqs userid and groupid can be looked up in the password file using
+address\&. If this field is
 NULL, obtain the userid and the groupid from
 sysuserid
 and
-sysgroupid\.
+sysgroupid\&.
 .RE
 .PP
 sysuserid
 .RS 4
-
 sysuserid
 may be
 NULL
 if
 sysusername
-is initialized, otherwise it\'s a pointer to the account\'s numeric userid\.
+is initialized, otherwise it\*(Aqs a pointer to the account\*(Aqs numeric userid\&.
 .RE
 .PP
 sysgroupid
 .RS 4
-Account\'s numeric groupid\.
+Account\*(Aqs numeric groupid\&.
 sysgroupid
 is only used when
 sysusername
 is
-NULL\.
+NULL\&.
 .RE
 .PP
 fullname
 .RS 4
-This is the account\'s full name\. This field is optional, it may be
-NULL\.
+This is the account\*(Aqs full name\&. This field is optional, it may be
+NULL\&.
 .RE
 .PP
 homedir
 .RS 4
-The account\'s home directory\. This field cannot be
-NULL\.
+The account\*(Aqs home directory\&. This field cannot be
+NULL\&.
 .RE
 .PP
 maildir
 .RS 4
-The pathname to the account\'s mailbox\. This field is optional, it can be
+The pathname to the account\*(Aqs mailbox\&. This field is optional, it can be
 NULL
-in which case the default location is assumed\.
+in which case the default location is assumed\&.
 .RE
 .PP
 quota
 .RS 4
-Optional maildir quota on the account\'s mailbox (and
+Optional maildir quota on the account\*(Aqs mailbox (and
 NULL
-if no quota is set)\.
+if no quota is set)\&.
 .RE
 .PP
 passwd
 .RS 4
-The account\'s encrypted password, if available\. If the account has a cleartext password defined, this field can be set to
-NULL\. The encrypted password can take several formats:
+The account\*(Aqs encrypted password, if available\&. If the account has a cleartext password defined, this field can be set to
+NULL\&. The encrypted password can take several formats:
 .sp
 .RS 4
-\h'-04'\(bu\h'+03'A traditional triple\-DES crypted password, or a MD5+salt\-hashed password, as used in Linux\.
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+A traditional triple\-DES crypted password, or a MD5+salt\-hashed password, as used in Linux\&.
 .RE
 .sp
 .RS 4
-\h'-04'\(bu\h'+03'
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
 \(lq{MD5}\(rq
-followed by a base64\-encoded MD5 hash of the password\.
+followed by a base64\-encoded MD5 hash of the password\&.
 .RE
 .sp
 .RS 4
-\h'-04'\(bu\h'+03'
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
 \(lq{SHA}\(rq
-followed by a base64\-encoded SHA1 hash of the password\.
+followed by a base64\-encoded SHA1 hash of the password\&.
 .RE
 .RE
 .PP
 clearpasswd
 .RS 4
-The account\'s cleartext password, if available\. If the account has an encrypted password defined, this field can be set to
-NULL\.
+The account\*(Aqs cleartext password, if available\&. If the account has an encrypted password defined, this field can be set to
+NULL\&.
 .RE
 .PP
 options
 .RS 4
-A comma\-separated list of miscellaneous account options\. See below for more information\.
+A comma\-separated list of miscellaneous account options\&. See below for more information\&.
 .RE
 .SS "Account options"
 .PP
-Depending on the configuration of the Courier authentication library, accounts may have individual options associated with them\. If the authentication library configuration does not implement account options, the option string will be
-NULL\. Otherwise it will be a comma\-separated list of
+Depending on the configuration of the Courier authentication library, accounts may have individual options associated with them\&. If the authentication library configuration does not implement account options, the option string will be a
+NULL
+value\&. Otherwise it will be a comma\-separated list of
 \(lq\fIoption\fR=\fIvalue\fR\(rq
-settings\.
+settings\&.
+.if n \{\
 .sp
+.\}
+.RS 4
 .it 1 an-trap
 .nr an-no-space-flag 1
 .nr an-break-flag 1
 .br
-Note
-.PP
-This is the account option implementation that\'s used by Courier, Courier\-IMAP, and SqWebMail packages\. Some of the following information is obviously not applicable for a particular package\. The inapplicable bits should be obvious\.
+.ps +1
+\fBNote\fR
+.ps -1
+.br
 .PP
-The following options are recognized by the various Courier packages:
+The application is responsible for actually implementing the options\&. For example, sn authentication request for service
+\(lqimap\(rq, for example, will succeed provided that the userid and the password are valid, even if
+\(lqdisableimap=1\(rq
+is set\&. The application\*(Aqs
+\fBcallback_func\fR
+should check for this condition, and return a negative return code\&.
+.sp .5v
+.RE
+.if n \{\
 .sp
+.\}
+.RS 4
 .it 1 an-trap
 .nr an-no-space-flag 1
 .nr an-break-flag 1
 .br
-Note
+.ps +1
+\fBNote\fR
+.ps -1
+.br
 .PP
-The application is responsible for enforcing all the
-\(lqdisabled\(rq
-option\. An authentication request for service
-\(lqimap\(rq, for example, will succeed provided that the userid and the password are valid, even if
-\(lqdisableimap=1\(rq
-is set\. The application\'s
-\fBcallback_func\fR
-should check for this condition, and return a negative return code\.
+The following list of account options is a combined list of implemented options supported by Courier, Courier\-IMAP, and SqWebMail packages\&. Some of the following information is obviously not applicable for a particular package\&. The inapplicable bits should be obvious\&.
+.sp .5v
+.RE
+.PP
+The following options are recognized by the various Courier packages:
 .PP
 disableimap=\fIn\fR
 .RS 4
-If "n" is 1, IMAP access to this account should be disabled\.
+If "n" is 1, IMAP access to this account should be disabled\&.
 .RE
 .PP
 disablepop3=\fIn\fR
 .RS 4
-If "n" is 1, POP3 access to this account should be disabled\.
+If "n" is 1, POP3 access to this account should be disabled\&.
+.RE
+.PP
+disableinsecureimap=\fIn\fR
+.RS 4
+If "n" is 1, unencrypted IMAP access to this account should be disabled\&.
+.RE
+.PP
+disableinsecurepop3=\fIn\fR
+.RS 4
+If "n" is 1, unencrypted POP3 access to this account should be disabled\&.
 .RE
 .PP
 disablewebmail=\fIn\fR
 .RS 4
-If "n" is 1, webmail access to this account should be disabled\.
+If "n" is 1, webmail access to this account should be disabled\&.
 .RE
 .PP
 disableshared=\fIn\fR
 .RS 4
-If "n" is 1, this account should not have access to shared folders or be able to share its own folders with other people\.
+If "n" is 1, this account should not have access to shared folders or be able to share its own folders with other people\&.
 .RE
 .PP
 group=\fIname\fR
 .RS 4
-This account is a member of access group
-\fIname\fR\. Instead of granting access rights on individual mail folders to individual accounts, the access rights can be granted to an access group
-\(lqname\(rq, and all members of this group get the specified access rights\.
+This option is used by Courier\-IMAP in calculating access control lists\&. This option places the account as a member of access group
+\fIname\fR\&. Instead of granting access rights on individual mail folders to individual accounts, the access rights can be granted to an access group
+\(lqname\(rq, and all members of this group get the specified access rights\&.
 .sp
 The access group name
 \(lqadministrators\(rq
-is a reserved group\. All accounts in the
+is a reserved group\&. All accounts in the
 administrators
-group automatically receive all rights to all accessible folders\.
+group automatically receive all rights to all accessible folders\&.
+.if n \{\
 .sp
+.\}
+.RS 4
 .it 1 an-trap
 .nr an-no-space-flag 1
 .nr an-break-flag 1
 .br
-Note
-This option may be specified multiple times to specify that the account belongs to multiple account groups\.
+.ps +1
+\fBNote\fR
+.ps -1
+.br
+This option may be specified multiple times to specify that the account belongs to multiple account groups\&.
+.sp .5v
+.RE
 .RE
 .PP
 sharedgroup=\fIname\fR
 .RS 4
-Append "name" to the name of the top level virtual shared folder index file\. This setting restricts which virtual shared folders this account could possibly access (and that\'s on top of whatever else the access control lists say)\. See the virtual shared folder documentation for more information\.
+Another option used by Courier\-IMAP\&. Append "name" to the name of the top level virtual shared folder index file\&. This setting restricts which virtual shared folders this account could possibly access (and that\*(Aqs on top of whatever else the access control lists say)\&. See the virtual shared folder documentation for more information\&.
 .sp
-For technical reasons, group names may not include comma, tab, "/" or "|" characters\.
+For technical reasons, group names may not include comma, tab, "/" or "|" characters\&.
 .RE
 .SH "SEE ALSO"
 .PP
-
-\fI\fBauthlib\fR(3)\fR\&[1],
-\fI\fBauth_generic\fR(3)\fR\&[2],
-\fI\fBauth_login\fR(3)\fR\&[3],
-\fI\fBauth_enumerate\fR(3)\fR\&[4],
-\fI\fBauth_passwd\fR(3)\fR\&[5],
-\fI\fBauth_getoption\fR(3)\fR\&[6]\.
+\m[blue]\fB\fBauthlib\fR(3)\fR\m[]\&\s-2\u[1]\d\s+2,
+\m[blue]\fB\fBauth_generic\fR(3)\fR\m[]\&\s-2\u[2]\d\s+2,
+\m[blue]\fB\fBauth_login\fR(3)\fR\m[]\&\s-2\u[3]\d\s+2,
+\m[blue]\fB\fBauth_enumerate\fR(3)\fR\m[]\&\s-2\u[4]\d\s+2,
+\m[blue]\fB\fBauth_passwd\fR(3)\fR\m[]\&\s-2\u[5]\d\s+2,
+\m[blue]\fB\fBauth_getoption\fR(3)\fR\m[]\&\s-2\u[6]\d\s+2\&.
 .SH "NOTES"
 .IP " 1." 4
 \fBauthlib\fR(3)
 .RS 4
-\%authlib.html
+\%[set $man.base.url.for.relative.links]/authlib.html
 .RE
 .IP " 2." 4
 \fBauth_generic\fR(3)
 .RS 4
-\%auth_generic.html
+\%[set $man.base.url.for.relative.links]/auth_generic.html
 .RE
 .IP " 3." 4
 \fBauth_login\fR(3)
 .RS 4
-\%auth_login.html
+\%[set $man.base.url.for.relative.links]/auth_login.html
 .RE
 .IP " 4." 4
 \fBauth_enumerate\fR(3)
 .RS 4
-\%auth_enumerate.html
+\%[set $man.base.url.for.relative.links]/auth_enumerate.html
 .RE
 .IP " 5." 4
 \fBauth_passwd\fR(3)
 .RS 4
-\%auth_passwd.html
+\%[set $man.base.url.for.relative.links]/auth_passwd.html
 .RE
 .IP " 6." 4
 \fBauth_getoption\fR(3)
 .RS 4
-\%auth_getoption.html
+\%[set $man.base.url.for.relative.links]/auth_getoption.html
 .RE