TLDAPServer Class Reference

#include <TLDAPServer.h>

Inheritance diagram for TLDAPServer:

TObject List of all members.

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
TLDAPResultSearch (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 ()
TLDAPResultGetObjectClasses ()
TLDAPResultGetAttributeTypes ()
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 &)
TLDAPServeroperator= (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

Detailed Description

Definition at line 27 of file TLDAPServer.h.


Constructor & Destructor Documentation

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]

Definition at line 82 of file TLDAPServer.cxx.

References Unbind().


Member Function Documentation

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]

Definition at line 388 of file TLDAPServer.cxx.

References c, i, and j.

Referenced by AddEntry(), and ModifyEntry().

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().

Int_t TLDAPServer::RenameEntry ( const char *  dn,
const char *  newrdn,
Bool_t  removeattr = kFALSE 
)

Definition at line 361 of file TLDAPServer.cxx.

References TObject::Error(), fLd, and IsConnected().


Member Data Documentation

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]

Definition at line 31 of file TLDAPServer.h.

Referenced by Bind(), and operator=().

TString TLDAPServer::fPassword [private]

Definition at line 32 of file TLDAPServer.h.

Referenced by Bind(), and operator=().

Bool_t TLDAPServer::fIsConnected [private]

Definition at line 33 of file TLDAPServer.h.

Referenced by Bind(), IsConnected(), operator=(), and Unbind().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:42:15 2011 for ROOT_528-00b_version by  doxygen 1.5.1