3 * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
9 #include "LDAPRequest.h"
10 #include "LDAPException.h"
12 #include "LDAPResult.h"
13 #include "LDAPExtResult.h"
17 LDAPExtResult::LDAPExtResult(const LDAPRequest* req, LDAPMessage* msg) :
19 DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPExtResult::LDAPExtResult()" << endl);
22 LDAP* lc = req->getConnection()->getSessionHandle();
23 int err=ldap_parse_extended_result(lc, msg, &oid, &data, 0);
24 if(err != LDAP_SUCCESS){
27 throw LDAPException(err);
32 m_data=string(data->bv_val, data->bv_len);
38 LDAPExtResult::~LDAPExtResult(){
39 DEBUG(LDAP_DEBUG_DESTROY,"LDAPExtResult::~LDAPExtResult()" << endl);
42 const string& LDAPExtResult::getResponseOid() const{
46 const string& LDAPExtResult::getResponse() const{