ldap_backend.cc File Reference
#include "squid.h"
#include "auth/digest/eDirectory/ldap_backend.h"
#include <lber.h>
#include <ldap.h>
#include "auth/digest/eDirectory/edir_ldapext.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 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 edir_universal_passwd = 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 14 of file ldap_backend.cc.

#define PROGRAM_NAME   "digest_pw_auth(LDAP_backend)"

Definition at line 52 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 166 of file ldap_backend.cc.

References size.

Referenced by getpassword().

int LDAPArguments ( int  argc,
char **  argv 
)

Definition at line 423 of file ldap_backend.cc.

Referenced by ProcessArguments().

void LDAPHHA1 ( RequestData requestData)

Definition at line 676 of file ldap_backend.cc.

Referenced by GetHHA1().

static int readSecret ( const char *  filename)
static

Definition at line 645 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 124 of file ldap_backend.cc.

static void squid_ldap_memfree ( char *  p)
static

Definition at line 152 of file ldap_backend.cc.

References free.

static void squid_ldap_set_aliasderef ( int  deref)
static

Definition at line 129 of file ldap_backend.cc.

References ld.

Referenced by ldapconnect().

static void squid_ldap_set_connect_timeout ( int  aTimeLimit)
static

Definition at line 147 of file ldap_backend.cc.

Referenced by ldapconnect().

static void squid_ldap_set_referrals ( int  referrals)
static

Definition at line 134 of file ldap_backend.cc.

References ld.

Referenced by ldapconnect().

static void squid_ldap_set_timelimit ( int  aTimeLimit)
static

Definition at line 142 of file ldap_backend.cc.

References ld.

Referenced by ldapconnect().

Variable Documentation

int aliasderef = LDAP_DEREF_NEVER
static

Definition at line 72 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

const char* binddn = NULL
static

Definition at line 62 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

const char* bindpasswd = NULL
static

Definition at line 63 of file ldap_backend.cc.

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

int connect_timeout = 0
static

Definition at line 77 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

const char* delimiter = ":"
static

Definition at line 64 of file ldap_backend.cc.

Referenced by Ssl::CertificateStorageAction::dump(), getpassword(), and LDAPArguments().

int edir_universal_passwd = 0
static

Definition at line 71 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

int encrpass = 0
static

Definition at line 65 of file ldap_backend.cc.

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

char* ldapServer = NULL
static

Definition at line 58 of file ldap_backend.cc.

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

int noreferrals = 0
static

Definition at line 68 of file ldap_backend.cc.

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

const char* passattr = NULL
static

Definition at line 57 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

int persistent = 0
static

Definition at line 67 of file ldap_backend.cc.

Referenced by LDAPArguments().

int searchscope = LDAP_SCOPE_SUBTREE
static

Definition at line 66 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

int strip_nt_domain = 0
static

Definition at line 70 of file ldap_backend.cc.

Referenced by LDAPArguments(), and main().

int timelimit = LDAP_NO_LIMIT
static

Definition at line 78 of file ldap_backend.cc.

Referenced by LDAPArguments(), and ldapconnect().

const char* userbasedn = NULL
static

Definition at line 59 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

const char* userdnattr = NULL
static

Definition at line 60 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

const char* usersearchfilter = NULL
static

Definition at line 61 of file ldap_backend.cc.

Referenced by getpassword(), and LDAPArguments().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors