summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-31 14:41:30 -0400
committerAdam <Adam@anope.org>2011-03-31 14:41:30 -0400
commitfaa85564fc29495ef47254ddc17a2846ef20e2ad (patch)
tree006ad832c22f473cbc24a78db9f66fab86d531c1 /modules/extra/m_ldap.cpp
parent8dec0c1f1798845a47914570869ed94ce44ce58d (diff)
Removed some unneeded/unused code from m_ldap
Diffstat (limited to 'modules/extra/m_ldap.cpp')
-rw-r--r--modules/extra/m_ldap.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp
index aa7e5212e..c7f0914a0 100644
--- a/modules/extra/m_ldap.cpp
+++ b/modules/extra/m_ldap.cpp
@@ -10,8 +10,6 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
{
Anope::string server;
int port;
- Anope::string binddn;
- Anope::string password;
LDAP *con;
@@ -21,7 +19,7 @@ class LDAPService : public LDAPProvider, public Thread, public Condition
query_queue queries;
result_queue results;
- LDAPService(Module *o, const Anope::string &n, const Anope::string &s, int po, const Anope::string &b, const Anope::string &p) : LDAPProvider(o, "ldap/" + n), server(s), port(po), binddn(b), password(p)
+ LDAPService(Module *o, const Anope::string &n, const Anope::string &s, int po) : LDAPProvider(o, "ldap/" + n), server(s), port(po)
{
if (ldap_initialize(&this->con, this->server.c_str()) != LDAP_SUCCESS)
throw LDAPException("Unable to connect to LDAP service " + this->name + ": " + Anope::LastError());
@@ -264,12 +262,10 @@ class ModuleLDAP : public Module, public Pipe
{
Anope::string server = config.ReadValue("ldap", "server", "127.0.0.1", i);
int port = config.ReadInteger("ldap", "port", "389", i, true);
- Anope::string binddn = config.ReadValue("ldap", "binddn", "", i);
- Anope::string password = config.ReadValue("ldap", "password", "", i);
try
{
- LDAPService *ss = new LDAPService(this, connname, server, port, binddn, password);
+ LDAPService *ss = new LDAPService(this, connname, server, port);
this->LDAPServices.insert(std::make_pair(connname, ss));
ModuleManager::RegisterService(ss);