Functions for Managing DNs
Chapter
15
Function Reference
453
slapi_moddn_get_newdn()
Builds the new DN of an entry.
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:
Returns
This function returns the new DN for the entry whose previous DN was
dn_olddn
.
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
newsuperiordn
, 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).
slapi_sdn_set_dn_passin()
Sets a DN value in a
Slapi_DN
structure.
slapi_sdn_set_ndn_byref()
Sets a a normalized DN in a
Slapi_DN
structure.
slapi_sdn_set_ndn_byval()
Sets a normalized DN in a
Slapi_DN
structure.
slapi_sdn_set_parent()
Sets a new parent in an entry.
slapi_sdn_set_rdn()
Sets a new RDN for an entry.
dn_olddn
The old DN value.
newrdn
The new RDN value.
newsuperordn
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.
Table 15-25
DN Routines (Continued)
Function
Description
Содержание NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Страница 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Страница 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 26: ...Types of Directory Server Plug Ins 26 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 38: ...Compiling a Directory Server Plug In 38 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 54: ...An Example Pre Operation Plug In 54 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 90: ...Processing an LDAP Abandon Operation 90 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 110: ...Using SASL with an LDAP Client 110 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 122: ...Specifying Start and Close Functions 122 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 214: ...Summary of Data Types and Structures 214 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 554: ...Functions for Registering Additional Plug Ins 554 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 596: ...Parameters for the Virtual Attribute Service 596 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...