HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Memory concerns Never free the returned attr. Use “slapi_attr_dup()” to make a copy if a
copy is needed.
See also “slapi_attr_dup()”
24.42 slapi_entry_rdn_values_present()
Determines whether the values in an entry's relative distinguished name (RDN) are also present
as attribute values. For example, if the entry's RDN is cn=Barbara Jensen, the function
determines if the entry has the cn attribute with the value Barbara Jensen.
Syntax
#include "slapi-plugin.h"
int slapi_entry_rdn_values_present( const Slapi_Entry *e );
Parameters This function takes the following parameter:
Entry from which you want to get the attribute.
e
Returns The function returns one of the following values:
0 If the values are not present.
1 If the values in the RDN are present in attributes of the entry.
24.43 slapi_entry_schema_check()
Determines whether the specified entry complies with the schema for its object class.
Syntax
#include "slapi-plugin.h"
int slapi_entry_schema_check( Slapi_PBlock *pb, Slapi_Entry *e );
Parameters This function takes the following parameters:
Parameter block.
pb
Entry of which you want to check the schema.
e
Returns The function returns one of the following values:
0 If the entry complies with the schema or if schema checking is turned off. The function also
returns 0 if the entry has additional attributes not allowed by the schema and has the object
class extensibleObject.
1
If the entry is missing the objectclass attribute, if it is missing any required attributes, if
it has any attributes not allowed by the schema but does not have the object class
extensibleObject, or if the entry has multiple values for a single-valued attribute.
Memory concerns The pb argument can be NULL. It is only used to get the
SLAPI_IS_REPLACED_OPERATION flag. If that flag is present, no schema checking is done.
24.44 slapi_entry_set_dn()
Sets the distinguished name (DN) of an entry.
Description This function sets the DN pointer in the specified entry to the DN that you supply.
Syntax
#include "slapi-plugin.h"
void slapi_entry_set_dn( Slapi_Entry *e, char *dn );
24.42 slapi_entry_rdn_values_present() 229