s/qmail 4.2.29a
Next generation secure email transport
|
#include <stdio.h>
#include <unistd.h>
#include "global.h"
#include "stralloc.h"
#include "buffer.h"
#include "auto_qmail.h"
#include "case.h"
#include "control.h"
#include "constmap.h"
#include "str.h"
#include "fmt.h"
#include "fd.h"
#include "open.h"
#include "byte.h"
#include "scan.h"
#include "md5.h"
#include "hmac_md5.h"
#include "sha1.h"
#include "sha256.h"
#include "pathexec.h"
#include "prot.h"
#include "wait.h"
#include "sig.h"
#include "error.h"
#include <pwd.h>
#include "hasspnam.h"
#include "hasuserpw.h"
Go to the source code of this file.
Macros | |
#define | FDAUTH 3 |
#define | FDGOSSIP 1 |
#define | SOCKET_CALL "-s" |
#define | DOVECOT_SERVICE "-x" |
#define | POP_USER "qmail-pop3d" |
Functions | |
char * | crypt () |
void | exit (int fail) |
Supported storage methods: (1) authuser:[=]plainpasswd, (2) authuser:hashpasswd, (3) authuser:?, authuser:!, *:?, *:! (! -> +environment) (4) x:+ -> checkvpw; x = { user@domain, @domain, @ } vmailmgr (5) x:& -> vchkpw; x = { user@domain, @domain, @ } vpopmail (6) x:= -> qmail-client; x = { user@domain, @domain, @ } dovecot Supported auth methods: user/login/plain: (1,2,3,4,5,6), cram-md5/apop: (1,5) | |
int | dig_ascii (char *digascii, const char *digest, const int len) |
int | auth_sha1 (char *pwdhash, char *response) |
int | auth_sha256 (char *pwdhash, char *response) |
int | auth_md5 (char *pwdhash, char *response) |
int | auth_hash (char *password, char *response) |
int | auth_unix (char *user, char *response) |
int | auth_apop (unsigned char *password, unsigned char *response, unsigned char *challenge) |
int | auth_cram (unsigned char *password, unsigned char *response, unsigned char *challenge) |
int | auth_dovecot (char *user, char *response, char *socket, char *service) |
int | auth_wrapper (char *pam, char *arg1, char *arg2, char *auth, int len) |
int | main (int argc, char **argv) |
Variables | |
char | authbuf [512] |
buffer | ba = BUFFER_INIT(write,FDAUTH,authbuf,sizeof(authbuf)) |
struct constmap | mapauthuser |
stralloc | authfile = {0} |
stralloc | disabled = {0} |
stralloc | user = {0} |
stralloc | homedir = {0} |
stralloc | shell = {0} |
Definition in file qmail-authuser.c.
#define DOVECOT_SERVICE "-x" |
Definition at line 28 of file qmail-authuser.c.
#define FDAUTH 3 |
Definition at line 25 of file qmail-authuser.c.
#define FDGOSSIP 1 |
Definition at line 26 of file qmail-authuser.c.
#define POP_USER "qmail-pop3d" |
Definition at line 29 of file qmail-authuser.c.
#define SOCKET_CALL "-s" |
Definition at line 27 of file qmail-authuser.c.
int auth_apop | ( | unsigned char * | password, |
unsigned char * | response, | ||
unsigned char * | challenge | ||
) |
Definition at line 190 of file qmail-authuser.c.
int auth_cram | ( | unsigned char * | password, |
unsigned char * | response, | ||
unsigned char * | challenge | ||
) |
int auth_dovecot | ( | char * | user, |
char * | response, | ||
char * | socket, | ||
char * | service | ||
) |
Definition at line 216 of file qmail-authuser.c.
int auth_hash | ( | char * | password, |
char * | response | ||
) |
Definition at line 135 of file qmail-authuser.c.
int auth_md5 | ( | char * | pwdhash, |
char * | response | ||
) |
Definition at line 121 of file qmail-authuser.c.
int auth_sha1 | ( | char * | pwdhash, |
char * | response | ||
) |
Definition at line 99 of file qmail-authuser.c.
int auth_sha256 | ( | char * | pwdhash, |
char * | response | ||
) |
Definition at line 110 of file qmail-authuser.c.
int auth_unix | ( | char * | user, |
char * | response | ||
) |
Definition at line 145 of file qmail-authuser.c.
Definition at line 253 of file qmail-authuser.c.
char * crypt | ( | ) |
void exit | ( | int | fail | ) |
Supported storage methods: (1) authuser:[=]plainpasswd, (2) authuser:hashpasswd, (3) authuser:?, authuser:!, *:?, *:! (! -> +environment) (4) x:+ -> checkvpw; x = { user@domain, @domain, @ } vmailmgr (5) x:& -> vchkpw; x = { user@domain, @domain, @ } vpopmail (6) x:= -> qmail-client; x = { user@domain, @domain, @ } dovecot Supported auth methods: user/login/plain: (1,2,3,4,5,6), cram-md5/apop: (1,5)
Definition at line 77 of file qmail-authuser.c.
char authbuf[512] |
Definition at line 55 of file qmail-authuser.c.
stralloc authfile = {0} |
Definition at line 59 of file qmail-authuser.c.
Definition at line 56 of file qmail-authuser.c.
stralloc disabled = {0} |
Definition at line 60 of file qmail-authuser.c.
stralloc homedir = {0} |
Definition at line 62 of file qmail-authuser.c.
struct constmap mapauthuser |
Definition at line 58 of file qmail-authuser.c.
stralloc shell = {0} |
Definition at line 63 of file qmail-authuser.c.
stralloc user = {0} |
Definition at line 61 of file qmail-authuser.c.