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