Anope IRC Services  Version 2.0
Public Member Functions
LDAPProvider Class Referenceabstract

#include <ldap.h>

Inheritance diagram for LDAPProvider:
Inheritance graph
[legend]
Collaboration diagram for LDAPProvider:
Collaboration graph
[legend]

Public Member Functions

 LDAPProvider (Module *c, const Anope::string &n)
 
virtual LDAPQuery BindAsAdmin (LDAPInterface *i)=0
 
virtual LDAPQuery Bind (LDAPInterface *i, const Anope::string &who, const Anope::string &pass)=0
 
virtual LDAPQuery Search (LDAPInterface *i, const Anope::string &base, const Anope::string &filter)=0
 
virtual LDAPQuery Add (LDAPInterface *i, const Anope::string &dn, LDAPMods &attributes)=0
 
virtual LDAPQuery Del (LDAPInterface *i, const Anope::string &dn)=0
 
virtual LDAPQuery Modify (LDAPInterface *i, const Anope::string &base, LDAPMods &attributes)=0
 
- Public Member Functions inherited from Service
 Service (Module *o, const Anope::string &t, const Anope::string &n)
 
virtual ~Service ()
 
void Register ()
 
void Unregister ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Additional Inherited Members

- Static Public Member Functions inherited from Service
static ServiceFindService (const Anope::string &t, const Anope::string &n)
 
static std::vector< Anope::stringGetServiceKeys (const Anope::string &t)
 
static void AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v)
 
static void DelAlias (const Anope::string &t, const Anope::string &n)
 
- Data Fields inherited from Service
Moduleowner
 
Anope::string type
 
Anope::string name
 

Detailed Description

Definition at line 122 of file ldap.h.

Constructor & Destructor Documentation

LDAPProvider::LDAPProvider ( Module c,
const Anope::string n 
)
inline

Definition at line 125 of file ldap.h.

Member Function Documentation

virtual LDAPQuery LDAPProvider::Add ( LDAPInterface i,
const Anope::string dn,
LDAPMods attributes 
)
pure virtual

Add an entry to LDAP

Parameters
iThe LDAPInterface the result is sent to
dnThe dn of the entry to add
attributesThe attributes
Returns
The query ID

Implemented in LDAPService.

virtual LDAPQuery LDAPProvider::Bind ( LDAPInterface i,
const Anope::string who,
const Anope::string pass 
)
pure virtual

Bind to LDAP

Parameters
iThe LDAPInterface the result is sent to
whoThe binddn
passThe password
Returns
The query ID

Implemented in LDAPService.

virtual LDAPQuery LDAPProvider::BindAsAdmin ( LDAPInterface i)
pure virtual

Attempt to bind to the LDAP server as an admin

Parameters
iThe LDAPInterface the result is sent to
Returns
The query ID

Implemented in LDAPService.

virtual LDAPQuery LDAPProvider::Del ( LDAPInterface i,
const Anope::string dn 
)
pure virtual

Delete an entry from LDAP

Parameters
iThe LDAPInterface the result is sent to
dnThe dn of the entry to delete
Returns
The query ID

Implemented in LDAPService.

virtual LDAPQuery LDAPProvider::Modify ( LDAPInterface i,
const Anope::string base,
LDAPMods attributes 
)
pure virtual

Modify an existing entry in LDAP

Parameters
iThe LDAPInterface the result is sent to
baseThe base DN to modify
attributesThe attributes to modify
Returns
The query ID

Implemented in LDAPService.

virtual LDAPQuery LDAPProvider::Search ( LDAPInterface i,
const Anope::string base,
const Anope::string filter 
)
pure virtual

Search ldap for the specified filter

Parameters
iThe LDAPInterface the result is sent to
baseThe base DN to search
filterThe filter to apply
Returns
The query ID

Implemented in LDAPService.


The documentation for this class was generated from the following file: