Sun Java System Directory Server Enterprise Edition 6.3 Developer's Guide

New Entry Handling Functions and Flags (4 to 5.2)

The slapi_str2entry() function contains the following new flags defined for handling entries:

SLAPI_STR2ENTRY_EXPAND_OBJECTCLASSES
SLAPI_STR2ENTRY_IGNORE_STATE
SLAPI_STR2ENTRY_INCLUDE_VERSION_STR
SLAPI_STR2ENTRY_NOT_WELL_FORMED_LDIF
SLAPI_STR2ENTRY_TOMBSTONE_CHECK

The old flags are still available. Refer to comments in slapi-plugin.h for hints on how to use the flags.

The following functions have been added to handle entries:

slapi_entry2str_with_options()
slapi_entry_add_string()
slapi_entry_add_value()
slapi_entry_attr_add()
slapi_entry_attr_get_long()
slapi_entry_attr_get_uint()
slapi_entry_attr_get_ulong()
slapi_entry_attr_remove()
slapi_entry_attr_set_int()
slapi_entry_attr_set_uint()
slapi_entry_attr_set_ulong()
slapi_entry_delete_string()
slapi_entry_get_dn_const()
slapi_entry_get_ndn()
slapi_entry_get_sdn()
slapi_entry_get_sdn_const()
slapi_entry_get_uniqueid()
slapi_entry_has_children()
slapi_entry_init()
slapi_entry_set_sdn()
slapi_entry_size()
slapi_is_rootdse()