s/qmail 4.3.17
Next generation secure email transport
|
#include <sys/types.h>
#include <unistd.h>
#include <grp.h>
#include <pwd.h>
#include <ldap.h>
#include "auto_qmail.h"
#include "qmail.h"
#include "case.h"
#include "control.h"
#include "constmap.h"
#include "readwrite.h"
#include "buffer.h"
#include "fd.h"
#include "byte.h"
#include "str.h"
#include "stralloc.h"
#include "exit.h"
#include "logmsg.h"
#include "pathexec.h"
#include "getln.h"
#include "scan.h"
Go to the source code of this file.
Macros | |
#define | LDAP_DEPRECATE 1 |
#define | WHO "qmail-ldapam" |
#define | LDAP_SCOPE LDAP_SCOPE_SUBTREE |
#define | MAIL_ACCOUNT_NAME "mail" |
#define | MAIL_ACCOUNT_UID 8 |
#define | MAIL_ACCOUNT_GID 12 |
#define | FDAUTH 3 |
#define | FDPWD 5 |
#define | FLAG_DIR "-d" |
#define | FLAG_MAIL "-m" |
#define | PORT_LDAP 389 |
#define | PORT_LDAPS 636 |
Functions | |
void | temp_nomem () |
void | exit (int fail) |
void | read_passwd (void) |
int | main (int argc, char **argv) |
Variables | |
char | authbuf [BUFSIZE_AUTH] |
buffer | ba = BUFFER_INIT(write,FDAUTH,authbuf,sizeof(authbuf)) |
char | bspace [512] |
buffer | bp |
struct constmap | mapldapauth |
stralloc | ldapcntl = {0} |
stralloc | disabled = {0} |
stralloc | binddn = {0} |
stralloc | bindpw = {0} |
stralloc | bindpwds = {0} |
stralloc | bindbase = {0} |
stralloc | bindhost = {0} |
stralloc | bindmbox = {0} |
stralloc | filter = {0} |
stralloc | user = {0} |
stralloc | homeparam = {0} |
unsigned long | port = PORT_LDAP |
int | match = 0 |
#define FDAUTH 3 |
Definition at line 33 of file qmail-ldapam.c.
#define FDPWD 5 |
Definition at line 34 of file qmail-ldapam.c.
#define FLAG_DIR "-d" |
Definition at line 35 of file qmail-ldapam.c.
#define FLAG_MAIL "-m" |
Definition at line 36 of file qmail-ldapam.c.
#define LDAP_DEPRECATE 1 |
Definition at line 1 of file qmail-ldapam.c.
#define LDAP_SCOPE LDAP_SCOPE_SUBTREE |
Definition at line 27 of file qmail-ldapam.c.
#define MAIL_ACCOUNT_GID 12 |
Definition at line 31 of file qmail-ldapam.c.
#define MAIL_ACCOUNT_NAME "mail" |
Definition at line 29 of file qmail-ldapam.c.
#define MAIL_ACCOUNT_UID 8 |
Definition at line 30 of file qmail-ldapam.c.
#define PORT_LDAP 389 |
Definition at line 38 of file qmail-ldapam.c.
#define PORT_LDAPS 636 |
Definition at line 39 of file qmail-ldapam.c.
#define WHO "qmail-ldapam" |
Definition at line 25 of file qmail-ldapam.c.
void exit | ( | int | fail | ) |
Definition at line 70 of file qmail-ldapam.c.
void read_passwd | ( | void | ) |
void temp_nomem | ( | void | ) |
char authbuf[BUFSIZE_AUTH] |
Definition at line 41 of file qmail-ldapam.c.
Definition at line 42 of file qmail-ldapam.c.
stralloc bindbase = {0} |
Definition at line 55 of file qmail-ldapam.c.
stralloc binddn = {0} |
Definition at line 52 of file qmail-ldapam.c.
stralloc bindhost = {0} |
Definition at line 56 of file qmail-ldapam.c.
stralloc bindmbox = {0} |
Definition at line 57 of file qmail-ldapam.c.
stralloc bindpw = {0} |
Definition at line 53 of file qmail-ldapam.c.
stralloc bindpwds = {0} |
Definition at line 54 of file qmail-ldapam.c.
buffer bp |
Definition at line 44 of file qmail-ldapam.c.
char bspace[512] |
Definition at line 43 of file qmail-ldapam.c.
stralloc disabled = {0} |
Definition at line 48 of file qmail-ldapam.c.
stralloc filter = {0} |
Definition at line 58 of file qmail-ldapam.c.
stralloc homeparam = {0} |
Definition at line 61 of file qmail-ldapam.c.
stralloc ldapcntl = {0} |
Definition at line 47 of file qmail-ldapam.c.
struct constmap mapldapauth |
Definition at line 46 of file qmail-ldapam.c.
int match = 0 |
Definition at line 77 of file qmail-ldapam.c.
unsigned long port = PORT_LDAP |
Definition at line 63 of file qmail-ldapam.c.
stralloc user = {0} |
Definition at line 60 of file qmail-ldapam.c.