Back to index

openldap  2.4.31
Public Member Functions | Private Attributes
LDAPRebindAuth Class Reference

This class represent Authenication information for the case that the library is chasing referrals. More...

#include <LDAPRebindAuth.h>

Collaboration diagram for LDAPRebindAuth:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LDAPRebindAuth (const std::string &dn="", const std::string &pwd="")
 LDAPRebindAuth (const LDAPRebindAuth &lra)
 Copy-constructor.
virtual ~LDAPRebindAuth ()
 Destructor.
const std::string & getDN () const
const std::string & getPassword () const

Private Attributes

std::string m_dn
std::string m_password

Detailed Description

This class represent Authenication information for the case that the library is chasing referrals.

The LDAPRebind::getRebindAuth() method returns an object of this type. And the library uses it to authentication to the destination server of a referral.

Note:
currently only SIMPLE authentication is supported by the library

Definition at line 21 of file LDAPRebindAuth.h.


Constructor & Destructor Documentation

LDAPRebindAuth::LDAPRebindAuth ( const std::string &  dn = "",
const std::string &  pwd = "" 
)
Parameters:
dnThe DN that should be used for the authentication
pwdThe password that belongs to the DN

Definition at line 14 of file LDAPRebindAuth.cpp.

                                                                 {
    DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPRebindAuth::LDAPRebindAuth()" << endl);
    DEBUG(LDAP_DEBUG_CONSTRUCT | LDAP_DEBUG_PARAMETER,"   dn:" << dn << endl 
            << "   pwd:" << pwd << endl);
    m_dn=dn;
    m_password=pwd;
}

Copy-constructor.

Definition at line 22 of file LDAPRebindAuth.cpp.

                                                       {
    DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPRebindAuth::LDAPRebindAuth(&)" << endl);
    m_dn=lra.m_dn;
    m_password=lra.m_password;
}

Destructor.

Definition at line 28 of file LDAPRebindAuth.cpp.

                               {
    DEBUG(LDAP_DEBUG_DESTROY,"LDAPRebindAuth::~LDAPRebindAuth()" << endl);
}

Member Function Documentation

const string & LDAPRebindAuth::getDN ( ) const
Returns:
The DN that was set in the constructor

Definition at line 32 of file LDAPRebindAuth.cpp.

                                         {
    DEBUG(LDAP_DEBUG_TRACE,"LDAPRebindAuth::getDN()" << endl);
    return m_dn;
}

Here is the caller graph for this function:

const string & LDAPRebindAuth::getPassword ( ) const
Returns:
The password that was set in the constructor

Definition at line 37 of file LDAPRebindAuth.cpp.

                                               {
    DEBUG(LDAP_DEBUG_TRACE,"LDAPRebindAuth::getPassword()" << endl);
    return m_password;
}

Here is the caller graph for this function:


Member Data Documentation

std::string LDAPRebindAuth::m_dn [private]

Definition at line 50 of file LDAPRebindAuth.h.

std::string LDAPRebindAuth::m_password [private]

Definition at line 51 of file LDAPRebindAuth.h.


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