mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
37 lines
782 B
C
37 lines
782 B
C
|
|
/*
|
||
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
||
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
||
|
|
*/
|
||
|
|
|
||
|
|
// $Id: LDAPResult.h,v 1.7 2000/08/31 17:43:49 rhafer Exp $
|
||
|
|
|
||
|
|
#ifndef LDAP_RESPNSE_H
|
||
|
|
#define LDAP_RESPONSE_H
|
||
|
|
|
||
|
|
#include<iostream>
|
||
|
|
#include<ldap.h>
|
||
|
|
#include "LDAPMessage.h"
|
||
|
|
|
||
|
|
class LDAPRequest;
|
||
|
|
class LDAPAsynConnection;
|
||
|
|
class LDAPResult : public LDAPMsg{
|
||
|
|
private :
|
||
|
|
int m_resCode;
|
||
|
|
char *m_matchedDN;
|
||
|
|
char *m_errMsg;
|
||
|
|
|
||
|
|
public :
|
||
|
|
static const int SUCCESS=0;
|
||
|
|
static const int REFERRAL=10;
|
||
|
|
|
||
|
|
LDAPResult(LDAPRequest *req, LDAPMessage *msg);
|
||
|
|
virtual ~LDAPResult();
|
||
|
|
int getResultCode();
|
||
|
|
char* resToString();
|
||
|
|
char* getErrMsg();
|
||
|
|
char* getMatchedDN();
|
||
|
|
friend ostream& operator<<(ostream &s,LDAPResult &l);
|
||
|
|
};
|
||
|
|
#endif //LDAP_RESPONSE_H
|
||
|
|
|