2008-03-28 07:05:10 -04:00
|
|
|
// $OpenLDAP$
|
2000-09-01 14:46:32 -04:00
|
|
|
/*
|
2016-01-29 14:32:05 -05:00
|
|
|
* Copyright 2000-2016 The OpenLDAP Foundation, All Rights Reserved.
|
2000-09-01 14:46:32 -04:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_MODIFICATION_H
|
|
|
|
|
#define LDAP_MODIFICATION_H
|
|
|
|
|
|
|
|
|
|
#include <ldap.h>
|
2001-03-15 06:07:58 -05:00
|
|
|
#include <LDAPAttribute.h>
|
2000-09-01 14:46:32 -04:00
|
|
|
|
|
|
|
|
class LDAPModification{
|
|
|
|
|
public:
|
|
|
|
|
enum mod_op {OP_ADD, OP_DELETE, OP_REPLACE};
|
|
|
|
|
|
|
|
|
|
LDAPModification(const LDAPAttribute& attr, mod_op op);
|
|
|
|
|
LDAPMod *toLDAPMod() const;
|
|
|
|
|
|
2011-06-15 09:28:55 -04:00
|
|
|
const LDAPAttribute* getAttribute() const;
|
|
|
|
|
mod_op getOperation() const;
|
|
|
|
|
|
2000-09-01 14:46:32 -04:00
|
|
|
private:
|
|
|
|
|
LDAPAttribute m_attr;
|
|
|
|
|
mod_op m_mod_op;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
#endif //LDAP_MODIFICATION_H
|
|
|
|
|
|