summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap.cpp
AgeCommit message (Collapse)Author
2023-12-17Remove some unnecessary spaces that break editor indentation.Sadie Powell
2023-10-11Start migrating to range-based for loops.Sadie Powell
2023-06-03Merge branch '2.0' into 2.1.Sadie Powell
2023-06-02m_ldap: use Wldap on windowsAdam
2022-12-31Merge branch '2.0' into 2.1.Sadie Powell
2022-12-31Update the copyright headers for 2023.Sadie Powell
2022-12-09Use emplace() instead of insert(std::make_pair()).Sadie Powell
2022-01-12Merge branch '2.0' into 2.1.Sadie Powell
2022-01-06Update the copyright headers for 2022.Sadie Powell
2022-01-04Use C++11 style class/struct initialisation.Sadie Powell
2022-01-03Replace anope_{final,override} with their C++11 equivalent.Sadie Powell
2021-12-28Add a build time check that OpenLDAP is reentrant.Sadie Powell
2021-12-28Reflect OpenLDAP 2.5 upstream change from libldap_r to libldapRobert Scheck
Starting with OpenLDAP 2.5 upstream decided to merge the non-threaded libldap_r library into the threaded libldap library. And starting with OpenLDAP 2.6 common Linux distributions such as Fedora do not ship the compatibility symbolic link anymore (which leads to a build failure), thus the linking tests for libldap_r and uses alternatively libldap. See also: - https://lists.openldap.org/hyperkitty/list/openldap-announce@openldap.org/thread/BH3VDPG6IYYF5L5U6LZGHHKMJY5HFA3L/ - https://bugzilla.redhat.com/show_bug.cgi?id=2032707
2021-01-07Update copyright to 2021.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2021 Anope Team/i' {} \;
2020-01-04Update copyright to 2020.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2020 Anope Team/i' {} \;
2019-01-01Update copyright to 2019.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2019 Anope Team/i' {} \;
2018-04-25Update copyright to 2018.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2018 Anope Team/i' {} \;
2017-01-17Cleanup some excess whitespaces and tabs, and fix a few typos along the way.Robby
2017-01-16Update copyright to 2017.Robby
This was done with: find docs/ include/ language/ modules/ src/ *.* Config -exec sed -i 's/-20.. Anope Team/-2017 Anope Team/i' {} \; Added missing copyright headers to files that didn't have it yet.
2016-01-28Update copyright to 2016. This was done with:Robby
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \; Added missing copyright headers to files that didn't have it yet. Fixed some whitespace and blank lines along the way.
2015-07-23Remove unused variables from m_ldapAdam
2015-07-23Set LDAP_OPT_PROTOCOL_VERSION 3 etc on reconnect, tooAdam
2015-03-11Redesign m_ldap to no longer rely on undefined behaviorAdam
Accessing the same LDAP* from multiple threads at once is always undefined, even if one thread is just polling ldap_result. Instead keep one thread per connection and issue blocking queries on the thread.
2014-12-02Link m_ldap against ldap_r not ldapAdam
2014-06-09Correct wording of log message when ldap services are createdAdam
2014-05-30Fix Windows build and update library names to the newer ones.Adam
Also fix crash on Windows when unloading a module because it threw an exception.
2014-03-11Set LDAP_OPT_NETWORK_TIMEOUT to 0 in m_ldap to prevent the asynchronousAdam
library cals from blocking... Fix multiple possible null pointer derefs if modules pass null interfaces (none currently do, but it is allowed) Fix memory leak from results when services are destructed Timeout queries that never come back.
2013-12-26Don't leak ldap resultsAdam
2013-09-16Remove static variables from functions in modules which causes them to be ↵Adam
marked as gnu unique objects, which breaks dlclose()/dlopen() on g++ 4.5+
2013-07-21Fix m_ldap service names from defaulting ldap/ldap/mainAdam
2013-07-20Fix removing old connections in m_ldap and m_mysqlAdam
2013-05-27Initially attach all modules to all events, and detach them as the events ↵Adam
are run if they are not implemented per module
2013-05-06Update the rest of modules.example.conf, default inspircd status modes to a ↵Adam
sane rank incase they are prefixless, and 50 other things
2013-05-06Fix extras buildAdam
2013-05-05That doesn't work either, just don't use references.Adam
find ./ -name '*.cpp' -exec sed -i 's/Get<const Anope::string\&>/Get<const Anope::string>/g' {} \;
2013-05-05Rework the config file reader to be much more flexible and move many ↵Adam
configuration directives to the actual modules they are used in.
2013-04-11Pass new config and the new config reader to the OnReload event, aswell as ↵Adam
call it on module load on modules that hook to it
2013-04-10Move some of the modules in extras/ that arent really extra out of extras. ↵Adam
Mark our modules as VENDOR and allow modules to have multple types.
2012-10-10Fix m_ldap to reconnect automatically if the ldap server goes awayAdam
2012-09-07Fixed m_ldap_authentication not returning anything if the search for an ↵Adam
account game back empty
2012-05-15Grab the DN for every LDAP query and send it in the resultAdam
2012-02-18Use C++11's explicit override feature if availableAdam
2012-01-31Fixed a memory leak in m_ldapAdam
2012-01-25WindowsAdam
2011-09-10Moved signal/thread/mode checking to use signal pipesAdam
2011-09-10Made service_reference type safeAdam
2011-07-31Fixed these ModuleManager::Attach calls once and for all..Adam
2011-05-16Use module type to determine what type each module is instead of its ↵Adam
location in the configuration file.
2011-05-16Added more useful functions to our LDAP API, allow adding newly registered ↵Adam
accounts to LDAP, removed some unnecessary OnPre events and fixed unloading all modules
2011-05-16Moved the core pseudo clients out into their own modulesAdam