ldapsdk  0.0.1
Public Member Functions | Static Public Attributes | List of all members
LDAPConstraints Class Reference

This class represents some options that can be set for a LDAPConnection operation. More...

#include <LDAPConstraints.h>

Public Member Functions

 LDAPConstraints ()
 
 LDAPConstraints (const LDAPConstraints &c)
 
 ~LDAPConstraints ()
 
void setAliasDeref (int deref)
 
void setMaxTime (int t)
 
void setSizeLimit (int s)
 
void setReferralChase (bool rc)
 
void setHopLimit (int hop)
 
void setReferralRebind (const LDAPRebind *rebind)
 
void setServerControls (const LDAPControlSet *ctrls)
 
void setClientControls (const LDAPControlSet *ctrls)
 
int getAliasDeref () const
 
int getMaxTime () const
 
int getSizeLimit () const
 
const LDAPRebindgetReferralRebind () const
 
const LDAPControlSetgetServerControls () const
 
const LDAPControlSetgetClientControls () const
 
LDAPControl ** getSrvCtrlsArray () const
 
LDAPControl ** getClCtrlsArray () const
 
timeval * getTimeoutStruct () const
 
bool getReferralChase () const
 
int getHopLimit () const
 

Static Public Attributes

static const int DEREF_NEVER = 0x00
 
static const int DEREF_SEARCHING = 0x01
 
static const int DEREF_FINDING = 0x02
 
static const int DEREF_ALWAYS = 0x04
 

Detailed Description

This class represents some options that can be set for a LDAPConnection operation.

Namely these are time and size limits. Options for referral chasing and a default set of client of server controls to be used with every request

Constructor & Destructor Documentation

◆ LDAPConstraints() [1/2]

LDAPConstraints::LDAPConstraints ( )

◆ LDAPConstraints() [2/2]

LDAPConstraints::LDAPConstraints ( const LDAPConstraints c)

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

◆ ~LDAPConstraints()

LDAPConstraints::~LDAPConstraints ( )

References DEBUG, and LDAP_DEBUG_DESTROY.

Member Function Documentation

◆ getAliasDeref()

int LDAPConstraints::getAliasDeref ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPSearchRequest::sendRequest().

◆ getClCtrlsArray()

LDAPControl ** LDAPConstraints::getClCtrlsArray ( ) const

◆ getClientControls()

const LDAPControlSet * LDAPConstraints::getClientControls ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

◆ getHopLimit()

int LDAPConstraints::getHopLimit ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPMessageQueue::chaseReferral().

◆ getMaxTime()

int LDAPConstraints::getMaxTime ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

◆ getReferralChase()

bool LDAPConstraints::getReferralChase ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPMessageQueue::getNext().

◆ getReferralRebind()

const LDAPRebind * LDAPConstraints::getReferralRebind ( ) const

◆ getServerControls()

const LDAPControlSet * LDAPConstraints::getServerControls ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

◆ getSizeLimit()

int LDAPConstraints::getSizeLimit ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPSearchRequest::sendRequest().

◆ getSrvCtrlsArray()

LDAPControl ** LDAPConstraints::getSrvCtrlsArray ( ) const

◆ getTimeoutStruct()

timeval * LDAPConstraints::getTimeoutStruct ( ) const

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPSearchRequest::sendRequest().

◆ setAliasDeref()

void LDAPConstraints::setAliasDeref ( int  deref)

◆ setClientControls()

void LDAPConstraints::setClientControls ( const LDAPControlSet ctrls)

References DEBUG, and LDAP_DEBUG_TRACE.

◆ setHopLimit()

void LDAPConstraints::setHopLimit ( int  hop)

◆ setMaxTime()

void LDAPConstraints::setMaxTime ( int  t)

◆ setReferralChase()

void LDAPConstraints::setReferralChase ( bool  rc)

◆ setReferralRebind()

void LDAPConstraints::setReferralRebind ( const LDAPRebind rebind)

References DEBUG, and LDAP_DEBUG_TRACE.

◆ setServerControls()

void LDAPConstraints::setServerControls ( const LDAPControlSet ctrls)

References DEBUG, and LDAP_DEBUG_TRACE.

◆ setSizeLimit()

void LDAPConstraints::setSizeLimit ( int  s)

Member Data Documentation

◆ DEREF_ALWAYS

const int LDAPConstraints::DEREF_ALWAYS = 0x04
static

Referenced by setAliasDeref().

◆ DEREF_FINDING

const int LDAPConstraints::DEREF_FINDING = 0x02
static

Referenced by setAliasDeref().

◆ DEREF_NEVER

const int LDAPConstraints::DEREF_NEVER = 0x00
static

Referenced by LDAPConstraints(), and setAliasDeref().

◆ DEREF_SEARCHING

const int LDAPConstraints::DEREF_SEARCHING = 0x01
static

Referenced by setAliasDeref().


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