class ldapentry :
object
.. end
this object represents a remote object within local memory. It
records all local changes made to it (if it's changetype is set to
`MODIFY), and can commit them to the server at a later time. This
can significantly improve performance by reducing traffic to the
server.
method add : op_lst -> unit
add values to an attribute (or create a new attribute). Does
not change the server until you update
method attributes : string list
return a list of the type (name) of all the attributes present
on the object
method changes : (Ldap_types.modify_optype * string * string list) list
return a list of changes made to the object in a format suitable for
sending directly to modify_s
method changetype : changetype
return the changetype of the object
method delete : op_lst -> unit
delete attributes from the object, does not change the
directory until you update
method dn : string
return the dn of the object
method diff : ldapentry_t ->
(Ldap_types.modify_optype * string * string list) list
given an ldapentry, return the differences between the current
entry and the specified entry
method exists : string -> bool
query whether the attribute type (name) exists in the object
method flush_changes : unit
clear all accumulated changes
method get_value : string -> string list
get the value of an attribute
method modify : (Ldap_types.modify_optype * string * string list) list -> unit
modify the object (same as modify_s), does not change the
database until you update
method print : unit
print an ldif like representation of the object to stdout, see
Ldif_oo for standards compliant ldif. Usefull for toplevel
sessions.
method replace : op_lst -> unit
replace values in the object, does not change the database
until you call update
method set_changetype : changetype -> unit
set the changetype of the object
method set_dn : string -> unit
set the dn of the object