from small one page howto to huge articles all in one place
 

search text in:





Poll
Which screen resolution do you use?










poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

85840

userrating:

average rating: 1.7 (82 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

202240

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

84238

userrating:

average rating: 1.3 (27 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





AUTH_GETUSERINFO

Section: Double Precision, Inc. (3)
Updated: 08/25/2013
Index Return to Main Contents
 

NAME

auth_getuserinfo - Obtain account information  

SYNOPSIS

#include <courierauth.h>
int rc=auth_getuserinfo(const char *userid, int (*callback_func)(struct authinfo *, void *), void *callback_arg);
 

DESCRIPTION

If userid is a valid account name, retrieve the account particulars and invoke callback_func.  

RETURNS

callback_func will be invoked if userid exists, and callback_func's return value becomes the return value from auth_getuserinfo (which should be 0, by convention). callback_func will not be invoked if an error occurs, which is reported by a non-zero return value from auth_getuserinfo. 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 userid does not exist.

The second argument to callback_func will be callback_arg, which is not interpreted by this function in any way. The first argument will be a pointer to the following structure:

Example 1. struct authinfo

struct authinfo {
        const char *sysusername;
        const uid_t *sysuserid;
        gid_t sysgroupid;
        const char *homedir;

        const char *address;
        const char *fullname;
        const char *maildir;
        const char *quota;
        const char *passwd;
        const char *clearpasswd;

        const char *options;

        } ;

Description of the above fields:

address

The authenticated login ID.

sysusername

The authenticated account's 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.

sysuserid

sysuserid may be NULL if sysusername is initialized, otherwise it's a pointer to the account's numeric userid.

sysgroupid

Account's numeric groupid. sysgroupid is only used when sysusername is NULL.

fullname

This is the account's full name. This field is optional, it may be NULL.

homedir

The account's home directory. This field cannot be NULL.

maildir

The pathname to the account's mailbox. This field is optional, it can be NULL in which case the default location is assumed.

quota

Optional maildir quota on the account's mailbox (and NULL if no quota is set).

passwd

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:

* A traditional triple-DES crypted password, or a MD5+salt-hashed password, as used in Linux.

* lq{MD5}rq followed by a base64-encoded MD5 hash of the password.

* lq{SHA}rq followed by a base64-encoded SHA1 hash of the password.

clearpasswd

The account's cleartext password, if available. If the account has an encrypted password defined, this field can be set to NULL.

options

A comma-separated list of miscellaneous account options. See below for more information.
 

Account options

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 lqoption=valuerq settings.


Note

The application is responsible for actually implementing the options. For example, sn authentication request for service lqimaprq, for example, will succeed provided that the userid and the password are valid, even if lqdisableimap=1rq is set. The application's callback_func should check for this condition, and return a negative return code.


Note

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.

The following options are recognized by the various Courier packages:

disableimap=n

If "n" is 1, IMAP access to this account should be disabled.

disablepop3=n

If "n" is 1, POP3 access to this account should be disabled.

disableinsecureimap=n

If "n" is 1, unencrypted IMAP access to this account should be disabled.

disableinsecurepop3=n

If "n" is 1, unencrypted POP3 access to this account should be disabled.

disablewebmail=n

If "n" is 1, webmail access to this account should be disabled.

disableshared=n

If "n" is 1, this account should not have access to shared folders or be able to share its own folders with other people.

group=name

This option is used by Courier-IMAP in calculating access control lists. This option places the account as a member of access group name. Instead of granting access rights on individual mail folders to individual accounts, the access rights can be granted to an access group lqnamerq, and all members of this group get the specified access rights.

The access group name lqadministratorsrq is a reserved group. All accounts in the administrators group automatically receive all rights to all accessible folders.


Note
This option may be specified multiple times to specify that the account belongs to multiple account groups.

sharedgroup=name

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's on top of whatever else the access control lists say). See the virtual shared folder documentation for more information.

For technical reasons, group names may not include comma, tab, "/" or "|" characters.

 

SEE ALSO

m[blue]authlib(3)m[][1], m[blue]auth_generic(3)m[][2], m[blue]auth_login(3)m[][3], m[blue]auth_enumerate(3)m[][4], m[blue]auth_passwd(3)m[][5], m[blue]auth_getoption(3)m[][6].  

NOTES

1.
authlib(3)
[set $man.base.url.for.relative.links]/authlib.html
2.
auth_generic(3)
[set $man.base.url.for.relative.links]/auth_generic.html
3.
auth_login(3)
[set $man.base.url.for.relative.links]/auth_login.html
4.
auth_enumerate(3)
[set $man.base.url.for.relative.links]/auth_enumerate.html
5.
auth_passwd(3)
[set $man.base.url.for.relative.links]/auth_passwd.html
6.
auth_getoption(3)
[set $man.base.url.for.relative.links]/auth_getoption.html


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
Account options
SEE ALSO
NOTES


Please read "Why adblockers are bad".



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2013 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 4.4 ms