Back to index

openldap  2.4.31
LDAPRebindAuth.cpp
Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved.
00004  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00005  */
00006 
00007 #include <iostream>
00008 
00009 #include "LDAPRebindAuth.h"
00010 #include "debug.h"
00011 
00012 using namespace std;
00013 
00014 LDAPRebindAuth::LDAPRebindAuth(const string& dn, const string& pwd){
00015     DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPRebindAuth::LDAPRebindAuth()" << endl);
00016     DEBUG(LDAP_DEBUG_CONSTRUCT | LDAP_DEBUG_PARAMETER,"   dn:" << dn << endl 
00017             << "   pwd:" << pwd << endl);
00018     m_dn=dn;
00019     m_password=pwd;
00020 }
00021 
00022 LDAPRebindAuth::LDAPRebindAuth(const LDAPRebindAuth& lra){
00023     DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPRebindAuth::LDAPRebindAuth(&)" << endl);
00024     m_dn=lra.m_dn;
00025     m_password=lra.m_password;
00026 }
00027 
00028 LDAPRebindAuth::~LDAPRebindAuth(){
00029     DEBUG(LDAP_DEBUG_DESTROY,"LDAPRebindAuth::~LDAPRebindAuth()" << endl);
00030 }
00031 
00032 const string& LDAPRebindAuth::getDN() const{
00033     DEBUG(LDAP_DEBUG_TRACE,"LDAPRebindAuth::getDN()" << endl);
00034     return m_dn;
00035 }
00036 
00037 const string& LDAPRebindAuth::getPassword() const{
00038     DEBUG(LDAP_DEBUG_TRACE,"LDAPRebindAuth::getPassword()" << endl);
00039     return m_password;
00040 }