HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
If the argument end happens to be NULL, this routine does basically the same thing as
slapi_sdn_get_ndn(), except for NULL terminating the normalized DN.
CAUTION:
This function does not null-terminate the string. Use this function only if you know what you
are doing.
Syntax
#include "slapi-plugin.h"
char *slapi_dn_normalize_to_end( char *dn, char *end);
Parameters This function takes the following parameters:
DN value to be normalized.
dn
Pointer to the end of what will be normalized from the DN value in dn. If this argument
is NULL, the DN value in dn will be wholly normalized.
end
Returns This function returns a pointer to the end of the dn that has been normalized. For
example, if the RDN is cn=Jane and the DN is l=US, dc=example,dc=com, the new DN will
be cn=Jane,l=US, dc=example,dc=com.
39.4 slapi_moddn_get_newdn()
Description This function is used for moddn operations and builds a new DN out of a new RDN
and the DN of the new parent.
The new DN is worked out by adding the new RDN in newrdn to a parent DN. The parent will
be the value in newsuperordn if different from NULL, and will otherwise be taken from
dn_olddn by removing the old RDN (the parent of the entry will still be the same as the new
DN).
Syntax
#include "slapi-plugin.h"
char * slapi_moddn_get_newdn(Slapi_DN *dn_olddn, char *newrdn,
char *newsuperiordn);
Parameters This function takes the following parameters:
The old DN value.
dn_olddn
The new RDN value.
newrdn
If not NULL, will be the DN of the future superior entry of the new DN, which will be
worked out by adding the value in newrdn in front of the content of this parameter.
newsuperordn
Returns This function returns the new DN for the entry whose previous DN was dn_olddn
.
39.5 slapi_sdn_add_rdn()
Adds the RDN contained in a Slapi_RDN structure to the DN contained in a Slapi_DN structure.
Syntax
#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_add_rdn(Slapi_DN *sdn,
const Slapi_RDN *rdn);
39.4 slapi_moddn_get_newdn() 311