aboutsummaryrefslogtreecommitdiffstats
path: root/modules/extra/ldap.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-02 12:40:52 +0000
committerGravatar Sadie Powell2026-03-02 12:40:52 +0000
commitcf3ce6cc23401f13869f5134227e50459f2b809d (patch)
tree88261dde94d90539b85fe4b430cbbce599be6748 /modules/extra/ldap.cpp
parentFix regular users being told about server operator privileges. (diff)
Rename ServiceProvider methods to avoid shadowing issues.
Diffstat (limited to 'modules/extra/ldap.cpp')
-rw-r--r--modules/extra/ldap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/extra/ldap.cpp b/modules/extra/ldap.cpp
index 15cfcbf60..798bda79a 100644
--- a/modules/extra/ldap.cpp
+++ b/modules/extra/ldap.cpp
@@ -330,7 +330,7 @@ private:
{
// Only try one connect a minute. It is an expensive blocking operation
if (last_connect > ServerInstance->Time() - 60)
- throw LDAPException("Unable to connect to LDAP service " + this->name + ": reconnecting too fast");
+ throw LDAPException("Unable to connect to LDAP service " + this->service_name + ": reconnecting too fast");
last_connect = ServerInstance->Time();
ldap_unbind_ext(this->con, nullptr, nullptr);
@@ -412,17 +412,17 @@ public:
std::string server = config->getString("server");
int i = ldap_initialize(&this->con, server.c_str());
if (i != LDAP_SUCCESS)
- throw LDAPException("Unable to connect to LDAP service " + this->name + ": " + ldap_err2string(i));
+ throw LDAPException("Unable to connect to LDAP service " + this->service_name + ": " + ldap_err2string(i));
const int version = LDAP_VERSION3;
i = SetOption(LDAP_OPT_PROTOCOL_VERSION, &version);
if (i != LDAP_OPT_SUCCESS)
- throw LDAPException("Unable to set protocol version for " + this->name + ": " + ldap_err2string(i));
+ throw LDAPException("Unable to set protocol version for " + this->service_name + ": " + ldap_err2string(i));
const struct timeval tv = { 0, 0 };
i = SetOption(LDAP_OPT_NETWORK_TIMEOUT, &tv);
if (i != LDAP_OPT_SUCCESS)
- throw LDAPException("Unable to set timeout for " + this->name + ": " + ldap_err2string(i));
+ throw LDAPException("Unable to set timeout for " + this->service_name + ": " + ldap_err2string(i));
}
void BindAsManager(LDAPInterface* i) override