|
Squid Web Cache master
|
#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.
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 = nullptr |
| static const char * | passattr = nullptr |
| static char * | ldapServer = nullptr |
| static const char * | userbasedn = nullptr |
| static const char * | userdnattr = nullptr |
| static const char * | usersearchfilter = nullptr |
| static const char * | binddn = nullptr |
| static const char * | bindpasswd = nullptr |
| 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 |
| #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.
|
static |
Definition at line 205 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, squid_ldap_memfree(), userbasedn, userdnattr, usersearchfilter, and xstrdup.
Referenced by LDAPHHA1().
Definition at line 440 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().
|
static |
Definition at line 349 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().
| void LDAPHHA1 | ( | RequestData * | requestData | ) |
Definition at line 693 of file ldap_backend.cc.
References DigestCalcHA1(), encrpass, _request_data::error, getpassword(), _request_data::HHA1, ldapconnect(), _request_data::realm, _request_data::user, and xstrncpy().
Referenced by GetHHA1().
|
static |
Definition at line 662 of file ldap_backend.cc.
References bindpasswd, BUFSIZ, PROGRAM_NAME, and xstrdup.
Referenced by LDAPArguments().
|
static |
Definition at line 131 of file ldap_backend.cc.
References ld.
|
static |
Definition at line 159 of file ldap_backend.cc.
Referenced by getpassword().
|
static |
|
static |
Definition at line 154 of file ldap_backend.cc.
Referenced by ldapconnect().
|
static |
|
static |
|
static |
Definition at line 73 of file ldap_backend.cc.
Referenced by LDAPArguments(), and ldapconnect().
|
static |
Definition at line 63 of file ldap_backend.cc.
Referenced by LDAPArguments(), and ldapconnect().
|
static |
Definition at line 64 of file ldap_backend.cc.
Referenced by LDAPArguments(), ldapconnect(), and readSecret().
|
static |
Definition at line 78 of file ldap_backend.cc.
Referenced by LDAPArguments(), and ldapconnect().
|
static |
Definition at line 65 of file ldap_backend.cc.
Referenced by Ssl::CertificateStorageAction::dump(), getListMember(), getpassword(), LDAPArguments(), LDAPHHA1(), AsList< Container >::print(), strListAdd(), strListAdd(), and strListAdd().
|
static |
Definition at line 72 of file ldap_backend.cc.
Referenced by getpassword(), and LDAPArguments().
|
static |
Definition at line 66 of file ldap_backend.cc.
Referenced by getpassword(), LDAPArguments(), and LDAPHHA1().
|
static |
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_errno(), squid_ldap_errno(), squid_ldap_set_aliasderef(), squid_ldap_set_aliasderef(), squid_ldap_set_aliasderef(), squid_ldap_set_referrals(), squid_ldap_set_referrals(), squid_ldap_set_referrals(), squid_ldap_set_timelimit(), squid_ldap_set_timelimit(), and squid_ldap_set_timelimit().
|
static |
Definition at line 59 of file ldap_backend.cc.
Referenced by checkLDAP(), LDAPArguments(), ldapconnect(), main(), and open_ldap_connection().
|
static |
Definition at line 69 of file ldap_backend.cc.
Referenced by getpassword(), LDAPArguments(), and ldapconnect().
|
static |
Definition at line 58 of file ldap_backend.cc.
Referenced by getpassword(), and LDAPArguments().
|
static |
Definition at line 68 of file ldap_backend.cc.
Referenced by LDAPArguments().
|
static |
Definition at line 70 of file ldap_backend.cc.
Referenced by Ftp::DataChannel::addr(), Format::Format::assemble(), AnyP::Uri::authority(), Http::One::Server::buildHttpRequest(), Ftp::Server::calcUri(), checkLDAP(), clientStartListeningOn(), Ssl::configureUnconfiguredSslContext(), 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(), Ftp::ParseIpPort(), Ftp::Server::parseOneRequest(), parsePortSpecification(), Ftp::ParseProtoIpPort(), Ip::Address::toUrl(), and xatos().
|
static |
Definition at line 67 of file ldap_backend.cc.
Referenced by getpassword(), and LDAPArguments().
|
static |
Definition at line 71 of file ldap_backend.cc.
Referenced by LDAPArguments(), and main().
|
static |
Definition at line 79 of file ldap_backend.cc.
Referenced by LDAPArguments(), and ldapconnect().
|
static |
Definition at line 60 of file ldap_backend.cc.
Referenced by getpassword(), and LDAPArguments().
|
static |
Definition at line 61 of file ldap_backend.cc.
Referenced by getpassword(), and LDAPArguments().
|
static |
Definition at line 62 of file ldap_backend.cc.
Referenced by getpassword(), and LDAPArguments().