2000-09-01 14:46:32 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_CONTROL_H
|
|
|
|
|
#define LDAP_CONTROL_H
|
2000-10-03 14:25:34 -04:00
|
|
|
#include <string>
|
|
|
|
|
#include <ldap.h>
|
2000-09-01 14:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class LDAPCtrl{
|
|
|
|
|
public :
|
2000-10-03 14:25:34 -04:00
|
|
|
LDAPCtrl(const LDAPCtrl& c);
|
|
|
|
|
LDAPCtrl(const char *oid, bool critical, const char *data=0,
|
|
|
|
|
int length=0);
|
|
|
|
|
LDAPCtrl(const string& oid, bool critical=false,
|
|
|
|
|
const string& data=string());
|
|
|
|
|
LDAPCtrl(const LDAPControl* ctrl);
|
|
|
|
|
~LDAPCtrl();
|
|
|
|
|
|
|
|
|
|
string getOID() const;
|
|
|
|
|
string getData() const;
|
|
|
|
|
bool isCritical() const;
|
|
|
|
|
LDAPControl* getControlStruct() const;
|
|
|
|
|
|
|
|
|
|
private :
|
|
|
|
|
string m_oid;
|
|
|
|
|
string m_data;
|
|
|
|
|
bool m_isCritical;
|
2000-09-01 14:46:32 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif //LDAP_CONTROL_H
|