]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPRebindAuth.cpp
Merge remote-tracking branch 'origin/mdb.master'
[openldap] / contrib / ldapc++ / src / LDAPRebindAuth.cpp
1 // $OpenLDAP$
2 /*
3  * Copyright 2000-2013 The 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 }