|
|||
|
|||
|


Public Member Functions | |
| ModuleLDAPAuth (InspIRCd *Me) | |
| virtual | ~ModuleLDAPAuth () |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| bool | Connect () |
| virtual int | OnUserRegister (User *user) |
| Called whenever a user is about to register their connection (e.g. | |
| bool | CheckCredentials (User *user) |
| virtual void | OnUserDisconnect (User *user) |
| Called whenever a user's socket is closed. | |
| virtual bool | OnCheckReady (User *user) |
| Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true. | |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| ModuleLDAPAuth (InspIRCd *Me) | |
| virtual | ~ModuleLDAPAuth () |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| bool | Connect () |
| virtual int | OnPassCompare (Extensible *ex, const std::string &data, const std::string &input, const std::string &hashtype) |
| Called whenever a password check is to be made. | |
| bool | LookupOper (User *user, const std::string &what, const std::string &opassword) |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| std::string | base |
| std::string | attribute |
| std::string | ldapserver |
| std::string | allowpattern |
| std::string | killreason |
| std::string | username |
| std::string | password |
| int | searchscope |
| bool | verbose |
| bool | useusername |
| LDAP * | conn |
| LDAP * | conn |
Definition at line 34 of file m_ldapauth.cpp.
|
|
Definition at line 49 of file m_ldapauth.cpp. References ModuleManager::Attach(), conn, I_OnCheckReady, I_OnRehash, I_OnUserDisconnect, I_OnUserRegister, InspIRCd::Modules, OnRehash(), and Module::ServerInstance. |
|
|
Definition at line 58 of file m_ldapauth.cpp. References conn. |
|
|
Definition at line 44 of file m_ldapoper.cpp. References ModuleManager::Attach(), conn, I_OnPassCompare, I_OnRehash, InspIRCd::Modules, OnRehash(), and Module::ServerInstance. |
|
|
Definition at line 53 of file m_ldapoper.cpp. References conn. |
|
|
Definition at line 130 of file m_ldapauth.cpp. References attribute, base, conn, Connect(), Extensible::Extend(), User::host, User::ident, User::nick, User::password, password, searchscope, Module::ServerInstance, InspIRCd::SNO, username, useusername, verbose, and SnomaskManager::WriteToSnoMask(). Referenced by OnUserRegister(). |
|
|
Definition at line 78 of file m_ldapoper.cpp. References conn, and ldapserver. |
|
|
Definition at line 88 of file m_ldapauth.cpp. References conn, ldapserver, Module::ServerInstance, InspIRCd::SNO, verbose, and SnomaskManager::WriteToSnoMask(). Referenced by CheckCredentials(), LookupOper(), and OnRehash(). |
|
|
Returns the version number of a Module. The method should return a Version object with its version information assigned via Version::Version Reimplemented from Module. Definition at line 169 of file m_ldapoper.cpp. References API_VERSION, and VF_VENDOR. |
|
|
Returns the version number of a Module. The method should return a Version object with its version information assigned via Version::Version Reimplemented from Module. Definition at line 213 of file m_ldapauth.cpp. References API_VERSION, and VF_VENDOR. |
|
||||||||||||||||
|
Definition at line 115 of file m_ldapoper.cpp. References base, conn, Connect(), password, searchscope, and username. Referenced by OnPassCompare(). |
|
|
Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true. For example a module which implements ident lookups will continue to return false for a user until their ident lookup is completed. Note that the registration timeout for a user overrides these checks, if the registration timeout is reached, the user is disconnected even if modules report that the user is not ready to connect.
Reimplemented from Module. Definition at line 208 of file m_ldapauth.cpp. References Extensible::GetExt(). |
|
||||||||||||||||||||
|
Called whenever a password check is to be made. Replaces the old OldOperCompare API. The password field (from the config file) is in 'password' and is to be compared against 'input'. This method allows for encryption of passwords (oper, connect:allow, die/restart, etc). You should return a nonzero value to override the normal comparison, or zero to pass it on.
Reimplemented from Module. Definition at line 100 of file m_ldapoper.cpp. References LookupOper(). |
|
||||||||||||
|
Called on rehash. This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application. If a parameter is given, the core has done nothing. The module receiving the event can decide if this parameter has any relevence to it.
Reimplemented from Module. Definition at line 59 of file m_ldapoper.cpp. References base, Conf, Connect(), ldapserver, password, ConfigReader::ReadValue(), searchscope, Module::ServerInstance, and username. |
|
||||||||||||
|
Called on rehash. This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application. If a parameter is given, the core has done nothing. The module receiving the event can decide if this parameter has any relevence to it.
Reimplemented from Module. Definition at line 64 of file m_ldapauth.cpp. References allowpattern, attribute, base, Conf, Connect(), killreason, ldapserver, password, ConfigReader::ReadFlag(), ConfigReader::ReadValue(), searchscope, Module::ServerInstance, username, useusername, and verbose. Referenced by ModuleLDAPAuth(). |
|
|
Called whenever a user's socket is closed. The details of the exiting user are available to you in the parameter User *user This event is called for all users, registered or not, as a cleanup method for modules which might assign resources to user, such as dns lookups, objects and sockets.
Reimplemented from Module. Definition at line 202 of file m_ldapauth.cpp. References Extensible::Shrink(). |
|
|
Called whenever a user is about to register their connection (e.g. before the user is sent the MOTD etc). Modules can use this method if they are performing a function which must be done before the actual connection is completed (e.g. ident lookups, dnsbl lookups, etc). Note that you should NOT delete the user record here by causing a disconnection! Use OnUserConnect for that instead.
Reimplemented from Module. Definition at line 114 of file m_ldapauth.cpp. References allowpattern, CheckCredentials(), Extensible::Extend(), killreason, InspIRCd::Match(), User::nick, UserManager::QuitUser(), Module::ServerInstance, and InspIRCd::Users. |
|
|
Definition at line 39 of file m_ldapauth.cpp. Referenced by OnRehash(), and OnUserRegister(). |
|
|
Definition at line 37 of file m_ldapauth.cpp. Referenced by CheckCredentials(), and OnRehash(). |
|
|
Definition at line 36 of file m_ldapauth.cpp. Referenced by CheckCredentials(), LookupOper(), and OnRehash(). |
|
|
Definition at line 41 of file m_ldapoper.cpp. |
|
|
Definition at line 46 of file m_ldapauth.cpp. Referenced by CheckCredentials(), Connect(), LookupOper(), ModuleLDAPAuth(), and ~ModuleLDAPAuth(). |
|
|
Definition at line 40 of file m_ldapauth.cpp. Referenced by OnRehash(), and OnUserRegister(). |
|
|
Definition at line 38 of file m_ldapauth.cpp. Referenced by Connect(), and OnRehash(). |
|
|
Definition at line 42 of file m_ldapauth.cpp. Referenced by CheckCredentials(), LookupOper(), and OnRehash(). |
|
|
Definition at line 43 of file m_ldapauth.cpp. Referenced by CheckCredentials(), LookupOper(), and OnRehash(). |
|
|
Definition at line 41 of file m_ldapauth.cpp. Referenced by CheckCredentials(), LookupOper(), and OnRehash(). |
|
|
Definition at line 45 of file m_ldapauth.cpp. Referenced by CheckCredentials(), and OnRehash(). |
|
|
Definition at line 44 of file m_ldapauth.cpp. Referenced by CheckCredentials(), Connect(), and OnRehash(). |