#include <TLDAPServer.h>
Inheritance diagram for TLDAPServer:

Public Member Functions | |
| TLDAPServer (const char *host, Int_t port=LDAP_PORT, const char *binddn=0, const char *password=0, Int_t version=LDAP_VERSION2) | |
| virtual | ~TLDAPServer () |
| Bool_t | IsConnected () const |
| TLDAPResult * | Search (const char *base="", Int_t scope=LDAP_SCOPE_BASE, const char *filter=0, TList *attrs=0, Bool_t attrsonly=0) |
| const char * | GetNamingContexts () |
| const char * | GetSubschemaSubentry () |
| TLDAPResult * | GetObjectClasses () |
| TLDAPResult * | GetAttributeTypes () |
| Int_t | AddEntry (TLDAPEntry &entry) |
| Int_t | ModifyEntry (TLDAPEntry &entry, Int_t mode=LDAP_MOD_REPLACE) |
| Int_t | DeleteEntry (const char *dn) |
| Int_t | RenameEntry (const char *dn, const char *newrdn, Bool_t removeattr=kFALSE) |
Protected Member Functions | |
| TLDAPServer (const TLDAPServer &) | |
| TLDAPServer & | operator= (const TLDAPServer &) |
Private Member Functions | |
| Int_t | Bind () |
| void | Unbind () |
Static Private Member Functions | |
| static void | DeleteMods (LDAPMod **mods) |
Private Attributes | |
| LDAP * | fLd |
| TString | fBinddn |
| TString | fPassword |
| Bool_t | fIsConnected |
Definition at line 27 of file TLDAPServer.h.
| TLDAPServer::TLDAPServer | ( | const TLDAPServer & | ) | [protected] |
Definition at line 58 of file TLDAPServer.cxx.
| TLDAPServer::TLDAPServer | ( | const char * | host, | |
| Int_t | port = LDAP_PORT, |
|||
| const char * | binddn = 0, |
|||
| const char * | password = 0, |
|||
| Int_t | version = LDAP_VERSION2 | |||
| ) |
| TLDAPServer::~TLDAPServer | ( | ) | [virtual] |
| Int_t TLDAPServer::Bind | ( | ) | [private] |
Definition at line 90 of file TLDAPServer.cxx.
References TString::Data(), TObject::Error(), fBinddn, fIsConnected, fLd, fPassword, IsConnected(), kFALSE, kTRUE, and result().
Referenced by AddEntry(), DeleteEntry(), ModifyEntry(), and Search().
| void TLDAPServer::Unbind | ( | ) | [private] |
Definition at line 120 of file TLDAPServer.cxx.
References fIsConnected, fLd, IsConnected(), and kFALSE.
Referenced by ~TLDAPServer().
| void TLDAPServer::DeleteMods | ( | LDAPMod ** | mods | ) | [static, private] |
| TLDAPServer & TLDAPServer::operator= | ( | const TLDAPServer & | ) | [protected] |
Definition at line 69 of file TLDAPServer.cxx.
References fBinddn, fIsConnected, fLd, fPassword, and TObject::operator=().
| Bool_t TLDAPServer::IsConnected | ( | ) | const [inline] |
Definition at line 51 of file TLDAPServer.h.
References fIsConnected.
Referenced by AddEntry(), Bind(), DeleteEntry(), ModifyEntry(), RenameEntry(), Search(), and Unbind().
| TLDAPResult * TLDAPServer::Search | ( | const char * | base = "", |
|
| Int_t | scope = LDAP_SCOPE_BASE, |
|||
| const char * | filter = 0, |
|||
| TList * | attrs = 0, |
|||
| Bool_t | attrsonly = 0 | |||
| ) |
Definition at line 223 of file TLDAPServer.cxx.
References TList::At(), Bind(), TObject::Error(), fLd, TObject::GetName(), TCollection::GetSize(), i, IsConnected(), n, and result().
Referenced by GetAttributeTypes(), GetNamingContexts(), GetObjectClasses(), GetSubschemaSubentry(), and LDAPExample().
| const char * TLDAPServer::GetNamingContexts | ( | ) |
Definition at line 131 of file TLDAPServer.cxx.
References TList::AddLast(), attribute, entry, result(), Search(), and TCollection::SetOwner().
Referenced by LDAPExample().
| const char * TLDAPServer::GetSubschemaSubentry | ( | ) |
Definition at line 157 of file TLDAPServer.cxx.
References TList::AddLast(), attribute, entry, result(), Search(), and TCollection::SetOwner().
Referenced by GetAttributeTypes(), and GetObjectClasses().
| TLDAPResult * TLDAPServer::GetObjectClasses | ( | ) |
Definition at line 183 of file TLDAPServer.cxx.
References TList::AddLast(), GetSubschemaSubentry(), result(), Search(), and TCollection::SetOwner().
| TLDAPResult * TLDAPServer::GetAttributeTypes | ( | ) |
Definition at line 203 of file TLDAPServer.cxx.
References TList::AddLast(), GetSubschemaSubentry(), result(), Search(), and TCollection::SetOwner().
| Int_t TLDAPServer::AddEntry | ( | TLDAPEntry & | entry | ) |
Definition at line 286 of file TLDAPServer.cxx.
References Bind(), DeleteMods(), entry, TObject::Error(), fLd, and IsConnected().
| Int_t TLDAPServer::ModifyEntry | ( | TLDAPEntry & | entry, | |
| Int_t | mode = LDAP_MOD_REPLACE | |||
| ) |
Definition at line 309 of file TLDAPServer.cxx.
References Bind(), DeleteMods(), entry, TObject::Error(), fLd, and IsConnected().
| Int_t TLDAPServer::DeleteEntry | ( | const char * | dn | ) |
Definition at line 340 of file TLDAPServer.cxx.
References Bind(), TObject::Error(), fLd, and IsConnected().
Definition at line 361 of file TLDAPServer.cxx.
References TObject::Error(), fLd, and IsConnected().
LDAP* TLDAPServer::fLd [private] |
Definition at line 30 of file TLDAPServer.h.
Referenced by AddEntry(), Bind(), DeleteEntry(), ModifyEntry(), operator=(), RenameEntry(), Search(), and Unbind().
TString TLDAPServer::fBinddn [private] |
TString TLDAPServer::fPassword [private] |
Bool_t TLDAPServer::fIsConnected [private] |
Definition at line 33 of file TLDAPServer.h.
Referenced by Bind(), IsConnected(), operator=(), and Unbind().
1.5.1