This chapter describes what's new in the Directory Server 6.3 release, that is, the changes to the plug-in API since the Directory Server 5.2 release. If you maintain Directory Server plug-ins originally developed for a previous release, consider upgrade such plug-ins to use the new and updated features.
For reference information, see Part II, Directory Server Plug-In API Reference.
Consider working with Sun Services consultants to develop and to maintain your Directory Server plug-ins.
This chapter covers the following topics:
This section addresses features deprecated or changed since the Directory Server5.2 release. Where possible, use the replacement functionality.
The following table shows deprecated functions and their replacements for handling attribute values.
Table 2–1 Replacement Functions for Handling Attribute Values
Deprecated Function |
Replacement Function |
---|---|
slapi_attr_first_value() |
slapi_attr_first_value_const() |
slapi_attr_next_value() |
slapi_attr_next_value_const() |
slapi_valueset_add_value() |
slapi_valueset_add_value_optimised() |
slapi_valueset_first_value() |
slapi_valueset_first_value_const() |
slapi_valueset_next_value() |
slapi_valueset_next_value_const() |
slapi_valueset_set_valueset() |
slapi_valueset_set_valueset_optimised() |
slapi_valueset_find() |
slapi_valueset_find_const() |
The following functions now apply const correctness:
slapi_build_control()
slapi_build_control_from_berval()
slapi_control_present()
slapi_dup_control()
slapi_entry2str()
slapi_entry2str_with_options()
slapi_get_account_availability()
slapi_log_error_ex()
slapi_log_info_ex()
slapi_log_warning_ex()
slapi_register_supported_control()
slapi_search_internal_get_entry()
The following callback data types also now apply const correctness:
slapi_pwd_storage_scheme_cmp_fn
slapi_pwd_storage_scheme_dec_fn
slapi_pwd_storage_scheme_enc_fn
For updated prototypes, see install-path/ds6/include/slapi-plugin.h.
This section summarizes features that have been added since the Directory Server 5.2 release. This section does not include features that are reserved for internal use.
The following functions have been added to handle distinguished names (DNs):
slapi_dn_is_besuffix_norm() slapi_sdn_get_suffix()
The slapi_entry_isroot() function has been added to handle entries.
The slapi_mods_remove_at() function has been added to handle modifications.
Directory Server now includes a mechanism for setting the order in which plug-ins are called by the server. See Ordering Plug-In Calls for details.
The slapi_entry_schema_check_ext() function has been added to handle schema checking.
The following functions have been added to browse supported suffixes:
slapi_free_suffix_list() slapi_get_suffix_list()
The following functions have been added to handle syntax checking:
slapi_entry_syntax_check() slapi_ldapmods_syntax_check() slapi_rdn_syntax_check()
The slapi_vattr_is_virtual() function has been added to handle virtual attributes.
+
The attrs parameter is implemented in the slapi_search_internal_set_pb()() function to specify the list of attributes to be returned. Earlier, irrespective of the value of the attrs parameter all the attributes were returned.