ldap_backend.cc File Reference
#include "squid.h"
#include "util.h"
#include "auth/digest/LDAP/ldap_backend.h"
#include <lber.h>
#include <ldap.h>
Include dependency graph for ldap_backend.cc:

Go to the source code of this file.

Macros

#define LDAP_DEPRECATED   1
 
#define PROGRAM_NAME   "digest_pw_auth(LDAP_backend)"
 

Functions

static void ldapconnect (void)
 
static int readSecret (const char *filename)
 
static int squid_ldap_errno (LDAP *ld)
 
static void squid_ldap_set_aliasderef (int deref)
 
static void squid_ldap_set_referrals (int referrals)
 
static void squid_ldap_set_timelimit (int aTimeLimit)
 
static void squid_ldap_set_connect_timeout (int aTimeLimit)
 
static void squid_ldap_memfree (char *p)
 
static int ldap_escape_value (char *escaped, int size, const char *src)
 
static char * getpassword (char *login, char *realm)
 
int LDAPArguments (int argc, char **argv)
 
void LDAPHHA1 (RequestData *requestData)
 

Variables

static LDAP * ld = NULL
 
static const char * passattr = NULL
 
static char * ldapServer = NULL
 
static const char * userbasedn = NULL
 
static const char * userdnattr = NULL
 
static const char * usersearchfilter = NULL
 
static const char * binddn = NULL
 
static const char * bindpasswd = NULL
 
static const char * delimiter = ":"
 
static const char * frealm = ""
 
static int encrpass = 0
 
static int searchscope = LDAP_SCOPE_SUBTREE
 
static int persistent = 0
 
static int noreferrals = 0
 
static int port = LDAP_PORT
 
static int strip_nt_domain = 0
 
static int aliasderef = LDAP_DEREF_NEVER
 
static int connect_timeout = 0
 
static int timelimit = LDAP_NO_LIMIT
 

Macro Definition Documentation

#define LDAP_DEPRECATED   1

Definition at line 16 of file ldap_backend.cc.

#define PROGRAM_NAME   "digest_pw_auth(LDAP_backend)"

Definition at line 53 of file ldap_backend.cc.

Referenced by getpassword(), LDAPArguments(), ldapconnect(), and readSecret().

Function Documentation

static char* getpassword ( char *  login,
char *  realm 
)
static
static int ldap_escape_value ( char *  escaped,
int  size,
const char *  src 
)
static

Definition at line 167 of file ldap_backend.cc.

References size.

Referenced by getpassword().

static int readSecret ( const char *  filename)
static

Definition at line 619 of file ldap_backend.cc.

References bindpasswd, buf, BUFSIZ, PROGRAM_NAME, and xstrdup.

Referenced by LDAPArguments().

static int squid_ldap_errno ( LDAP *  ld)
static

Definition at line 125 of file ldap_backend.cc.

static void squid_ldap_memfree ( char *  p)
static

Definition at line 153 of file ldap_backend.cc.

References free.

static void squid_ldap_set_aliasderef ( int  deref)
static

Definition at line 130 of file ldap_backend.cc.

References ld.

Referenced by ldapconnect().

static void squid_ldap_set_connect_timeout ( int  aTimeLimit)
static

Definition at line 148 of file ldap_backend.cc.

Referenced by ldapconnect().

static void squid_ldap_set_referrals ( int  referrals)
static

Definition at line 135 of file ldap_backend.cc.

References ld.

Referenced by ldapconnect().

static void squid_ldap_set_timelimit ( int  aTimeLimit)
static

Definition at line 143 of file ldap_backend.cc.

References ld.

Referenced by ldapconnect().

Variable Documentation

int aliasderef = LDAP_DEREF_NEVER
static

Definition at line 73 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

const char* binddn = NULL
static

Definition at line 63 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

const char* bindpasswd = NULL
static

Definition at line 64 of file ldap_backend.cc.

Referenced by LDAPArguments(), ldapconnect(), and readSecret().

int connect_timeout = 0
static

Definition at line 78 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

const char* delimiter = ":"
static

Definition at line 65 of file ldap_backend.cc.

Referenced by getpassword(), LDAPArguments(), and LDAPHHA1().

int encrpass = 0
static

Definition at line 67 of file ldap_backend.cc.

Referenced by getpassword(), LDAPArguments(), and LDAPHHA1().

const char* frealm = ""
static

Definition at line 66 of file ldap_backend.cc.

Referenced by LDAPArguments(), and LDAPHHA1().

char* ldapServer = NULL
static

Definition at line 59 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

int noreferrals = 0
static

Definition at line 70 of file ldap_backend.cc.

Referenced by getpassword(), LDAPArguments(), and ldapconnect().

const char* passattr = NULL
static

Definition at line 58 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

int persistent = 0
static

Definition at line 69 of file ldap_backend.cc.

Referenced by LDAPArguments().

int port = LDAP_PORT
static

Definition at line 71 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

int searchscope = LDAP_SCOPE_SUBTREE
static

Definition at line 68 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

int strip_nt_domain = 0
static

Definition at line 72 of file ldap_backend.cc.

Referenced by LDAPArguments().

int timelimit = LDAP_NO_LIMIT
static

Definition at line 79 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

const char* userbasedn = NULL
static

Definition at line 60 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

const char* userdnattr = NULL
static

Definition at line 61 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

const char* usersearchfilter = NULL
static

Definition at line 62 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors