#include "squid.h"
#include <cstdio>
#include "auth/digest/eDirectory/ldap_backend.h"
#include <lber.h>
#include <ldap.h>
#include "auth/digest/eDirectory/edir_ldapext.h"
Go to the source code of this file.
◆ LDAP_DEPRECATED
#define LDAP_DEPRECATED 1 |
◆ PROGRAM_NAME
#define PROGRAM_NAME "digest_pw_auth(LDAP_backend)" |
◆ getpassword()
static char * getpassword |
( |
char * |
login, |
|
|
char * |
realm |
|
) |
| |
|
static |
Definition at line 199 of file ldap_backend.cc.
References debug(), delimiter, edir_universal_passwd, encrpass, ld, ldap_escape_value(), ldapconnect(), nds_get_password(), noreferrals, passattr, PROGRAM_NAME, searchscope, userbasedn, userdnattr, usersearchfilter, and xstrdup.
Referenced by LDAPHHA1().
◆ ldap_escape_value()
static int ldap_escape_value |
( |
char * |
escaped, |
|
|
int |
size, |
|
|
const char * |
src |
|
) |
| |
|
static |
◆ LDAPArguments()
int LDAPArguments |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 426 of file ldap_backend.cc.
References aliasderef, binddn, bindpasswd, connect_timeout, debug_enabled, delimiter, edir_universal_passwd, encrpass, ldapServer, noreferrals, passattr, persistent, port, PROGRAM_NAME, readSecret(), searchscope, strip_nt_domain, timelimit, use_tls, userbasedn, userdnattr, usersearchfilter, version, xmalloc, and xstrdup.
Referenced by ProcessArguments().
◆ ldapconnect()
static void ldapconnect |
( |
void |
| ) |
|
|
static |
Definition at line 335 of file ldap_backend.cc.
References aliasderef, binddn, bindpasswd, connect_timeout, debug(), ld, ldapServer, noreferrals, NULL, port, PROGRAM_NAME, squid_ldap_set_aliasderef(), squid_ldap_set_connect_timeout(), squid_ldap_set_referrals(), squid_ldap_set_timelimit(), timelimit, use_tls, and version.
Referenced by getpassword(), and LDAPHHA1().
◆ LDAPHHA1()
◆ readSecret()
static int readSecret |
( |
const char * |
filename | ) |
|
|
static |
◆ squid_ldap_errno()
static int squid_ldap_errno |
( |
LDAP * |
ld | ) |
|
|
static |
◆ squid_ldap_memfree()
static void squid_ldap_memfree |
( |
char * |
p | ) |
|
|
static |
◆ squid_ldap_set_aliasderef()
static void squid_ldap_set_aliasderef |
( |
int |
deref | ) |
|
|
static |
◆ squid_ldap_set_connect_timeout()
static void squid_ldap_set_connect_timeout |
( |
int |
aTimeLimit | ) |
|
|
static |
◆ squid_ldap_set_referrals()
static void squid_ldap_set_referrals |
( |
int |
referrals | ) |
|
|
static |
◆ squid_ldap_set_timelimit()
static void squid_ldap_set_timelimit |
( |
int |
aTimeLimit | ) |
|
|
static |
◆ aliasderef
int aliasderef = LDAP_DEREF_NEVER |
|
static |
◆ binddn
const char* binddn = nullptr |
|
static |
◆ bindpasswd
const char* bindpasswd = nullptr |
|
static |
◆ connect_timeout
◆ delimiter
const char* delimiter = ":" |
|
static |
◆ edir_universal_passwd
int edir_universal_passwd = 0 |
|
static |
◆ encrpass
◆ ld
Definition at line 57 of file ldap_backend.cc.
Referenced by getLoginConfig(), getpassword(), ldapconnect(), main(), nds_get_password(), nmasldap_get_password(), nmasldap_get_simple_pwd(), open_ldap_connection(), searchLDAP(), searchLDAPGroup(), squid_ldap_errno(), squid_ldap_set_aliasderef(), squid_ldap_set_referrals(), and squid_ldap_set_timelimit().
◆ ldapServer
char* ldapServer = nullptr |
|
static |
◆ noreferrals
◆ passattr
const char* passattr = nullptr |
|
static |
◆ persistent
◆ port
Definition at line 70 of file ldap_backend.cc.
Referenced by Ftp::DataChannel::addr(), Format::Format::assemble(), auth_html(), AnyP::Uri::authority(), Http::One::Server::buildHttpRequest(), Ftp::Server::calcUri(), check_target_acl(), checkLDAP(), clientStartListeningOn(), Ssl::configureUnconfiguredSslContext(), connectTo(), convertPortname(), Security::ServerOptions::createSigningContexts(), ProxyProtocol::One::ExtractPort(), FindGoodListeningPortAddressInPort(), GetHostWithPort(), GetService(), Adaptation::ServiceConfig::grokUri(), Ftp::Client::handleEpsvReply(), ClientRequestContext::hostHeaderVerify(), icpOpenPorts(), Security::ServerOptions::initServerContexts(), internalRemoteUri(), LDAPArguments(), ldapconnect(), Ftp::Server::listenForDataConnection(), Security::KeyData::loadFromFiles(), Ip::Address::lookupHostIP(), main(), mainHandleCommandLineOption(), HttpRequest::manager(), open_ldap_connection(), AnyP::Uri::parse(), parseCommandline(), Transport::TheConfig::parseCommandOpts(), Ftp::ParseIpPort(), Ftp::Server::parseOneRequest(), parsePortSpecification(), Ftp::ParseProtoIpPort(), resolveDestination(), RFCNB_Call(), RFCNB_IP_Connect(), RFCNB_Session_Req(), serverSocket(), SMB_Connect(), SMB_Connect_Server(), Ip::Address::toUrl(), and xatos().
◆ searchscope
int searchscope = LDAP_SCOPE_SUBTREE |
|
static |
◆ strip_nt_domain
◆ timelimit
int timelimit = LDAP_NO_LIMIT |
|
static |
◆ userbasedn
const char* userbasedn = nullptr |
|
static |
◆ userdnattr
const char* userdnattr = nullptr |
|
static |
◆ usersearchfilter
const char* usersearchfilter = nullptr |
|
static |