s/qmail 4.3.17
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
qmail-ldapam.c File Reference
#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"
Include dependency graph for qmail-ldapam.c:

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
 

Macro Definition Documentation

◆ FDAUTH

#define FDAUTH   3

Definition at line 33 of file qmail-ldapam.c.

◆ FDPWD

#define FDPWD   5

Definition at line 34 of file qmail-ldapam.c.

◆ FLAG_DIR

#define FLAG_DIR   "-d"

Definition at line 35 of file qmail-ldapam.c.

◆ FLAG_MAIL

#define FLAG_MAIL   "-m"

Definition at line 36 of file qmail-ldapam.c.

◆ LDAP_DEPRECATE

#define LDAP_DEPRECATE   1

Definition at line 1 of file qmail-ldapam.c.

◆ LDAP_SCOPE

#define LDAP_SCOPE   LDAP_SCOPE_SUBTREE

Definition at line 27 of file qmail-ldapam.c.

◆ MAIL_ACCOUNT_GID

#define MAIL_ACCOUNT_GID   12

Definition at line 31 of file qmail-ldapam.c.

◆ MAIL_ACCOUNT_NAME

#define MAIL_ACCOUNT_NAME   "mail"

Definition at line 29 of file qmail-ldapam.c.

◆ MAIL_ACCOUNT_UID

#define MAIL_ACCOUNT_UID   8

Definition at line 30 of file qmail-ldapam.c.

◆ PORT_LDAP

#define PORT_LDAP   389

Definition at line 38 of file qmail-ldapam.c.

◆ PORT_LDAPS

#define PORT_LDAPS   636

Definition at line 39 of file qmail-ldapam.c.

◆ WHO

#define WHO   "qmail-ldapam"

Definition at line 25 of file qmail-ldapam.c.

Function Documentation

◆ exit()

void exit ( int  fail)

Definition at line 70 of file qmail-ldapam.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 164 of file qmail-ldapam.c.

Here is the call graph for this function:

◆ read_passwd()

void read_passwd ( void  )

Definition at line 79 of file qmail-ldapam.c.

Here is the caller graph for this function:

◆ temp_nomem()

void temp_nomem ( void  )

Definition at line 65 of file qmail-ldapam.c.

Here is the caller graph for this function:

Variable Documentation

◆ authbuf

char authbuf[BUFSIZE_AUTH]

Definition at line 41 of file qmail-ldapam.c.

◆ ba

buffer ba = BUFFER_INIT(write,FDAUTH,authbuf,sizeof(authbuf))

Definition at line 42 of file qmail-ldapam.c.

◆ bindbase

stralloc bindbase = {0}

Definition at line 55 of file qmail-ldapam.c.

◆ binddn

stralloc binddn = {0}

Definition at line 52 of file qmail-ldapam.c.

◆ bindhost

stralloc bindhost = {0}

Definition at line 56 of file qmail-ldapam.c.

◆ bindmbox

stralloc bindmbox = {0}

Definition at line 57 of file qmail-ldapam.c.

◆ bindpw

stralloc bindpw = {0}

Definition at line 53 of file qmail-ldapam.c.

◆ bindpwds

stralloc bindpwds = {0}

Definition at line 54 of file qmail-ldapam.c.

◆ bp

buffer bp

Definition at line 44 of file qmail-ldapam.c.

◆ bspace

char bspace[512]

Definition at line 43 of file qmail-ldapam.c.

◆ disabled

stralloc disabled = {0}

Definition at line 48 of file qmail-ldapam.c.

◆ filter

stralloc filter = {0}

Definition at line 58 of file qmail-ldapam.c.

◆ homeparam

stralloc homeparam = {0}

Definition at line 61 of file qmail-ldapam.c.

◆ ldapcntl

stralloc ldapcntl = {0}

Definition at line 47 of file qmail-ldapam.c.

◆ mapldapauth

struct constmap mapldapauth

Definition at line 46 of file qmail-ldapam.c.

◆ match

int match = 0

Definition at line 77 of file qmail-ldapam.c.

◆ port

unsigned long port = PORT_LDAP

Definition at line 63 of file qmail-ldapam.c.

◆ user

stralloc user = {0}

Definition at line 60 of file qmail-ldapam.c.