1 // OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPRebindAuth.cpp,v 1.2.10.1 2008/04/14 23:09:26 quanah Exp 2 /* 3 * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. 4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file 5 */ 6 7 #include <iostream> 8 9 #include "LDAPRebindAuth.h" 10 #include "debug.h" 11 12 using namespace std; 13 14 LDAPRebindAuth::LDAPRebindAuth(const string& dn, const string& pwd){ 15 DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPRebindAuth::LDAPRebindAuth()" << endl); 16 DEBUG(LDAP_DEBUG_CONSTRUCT | LDAP_DEBUG_PARAMETER," dn:" << dn << endl 17 << " pwd:" << pwd << endl); 18 m_dn=dn; 19 m_password=pwd; 20 } 21 22 LDAPRebindAuth::LDAPRebindAuth(const LDAPRebindAuth& lra){ 23 DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPRebindAuth::LDAPRebindAuth(&)" << endl); 24 m_dn=lra.m_dn; 25 m_password=lra.m_password; 26 } 27 28 LDAPRebindAuth::~LDAPRebindAuth(){ 29 DEBUG(LDAP_DEBUG_DESTROY,"LDAPRebindAuth::~LDAPRebindAuth()" << endl); 30 } 31 32 const string& LDAPRebindAuth::getDN() const{ 33 DEBUG(LDAP_DEBUG_TRACE,"LDAPRebindAuth::getDN()" << endl); 34 return m_dn; 35 } 36 37 const string& LDAPRebindAuth::getPassword() const{ 38 DEBUG(LDAP_DEBUG_TRACE,"LDAPRebindAuth::getPassword()" << endl); 39 return m_password; 40 } 41