Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

LDAPSynchConnection Class Reference

A Concrete Synchronous connection to an LDAP Server. More...

Inheritance diagram for LDAPSynchConnection:

LDAPConnection List of all members.

Public Member Functions

 LDAPSynchConnection (const std::string &, const std::string &, int, long=15)
 Constructor.

virtual ~LDAPSynchConnection ()
 Distructor.

bool open ()
 Opens a connection to the Server.

bool close ()
 Closes a connection to the Server.

generic_search_result_texecute (LDAPQuery *q)
 Performs LDAP search operations using ldap_search_st() allowing a timeout to be specified.

bool is_established () const
 Conenction test wheter established or not.

std::string error () const

Detailed Description

A Concrete Synchronous connection to an LDAP Server.

This class implements all virtual superclass methods in order to provide a synchronous concrete connection to the LDAP Server.

See also:
LDAPConnection
Author:
Salvatore Monforte salvatore.monforte@ct.infn.it


Constructor & Destructor Documentation

LDAPSynchConnection const std::string &  ,
const std::string &  ,
int  ,
long  = 15
 

Constructor.

virtual ~LDAPSynchConnection  )  [virtual]
 

Distructor.


Member Function Documentation

bool close  )  [virtual]
 

Closes a connection to the Server.

This function overrides virtual LDAP Connection one.

Returns:
true on success, false otherwise.

Implements LDAPConnection.

std::string error  )  const [inline]
 

generic_search_result_t* execute LDAPQuery q  )  [virtual]
 

Performs LDAP search operations using ldap_search_st() allowing a timeout to be specified.

Parameters:
q the query which will be executed.
Returns:
a pointer to generic search result. This pointer should be explicitly freed.

Implements LDAPConnection.

bool is_established  )  const [virtual]
 

Conenction test wheter established or not.

Returns:
true if connection is established, false otherwise.

Implements LDAPConnection.

bool open  )  [virtual]
 

Opens a connection to the Server.

This function overrides virtual LDAP Connection one.

Returns:
true on success, false otherwise.

Implements LDAPConnection.


The documentation for this class was generated from the following file:
Generated on Wed Mar 1 00:37:56 2006 for COMMON API - configuration, jobid, ldif2classadi, logger, process, requestad, socket++i, task, utilities by doxygen 1.3.5