Adds to the specified object’s security equivalence.
#include <nwnet.h> or #include <nwdsdsa.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSAddSecurityEquiv ( NWDSContextHandle context, pnstr8 equalFrom, pnstr8 equalTo);
uses netwin32 Function NWDSAddSecurityEquiv (context : NWDSContextHandle; equalFrom : pnstr8; equalTo : pnstr8 ) : NWDSCCODE;
(IN) Specifies the NDS context for the request.
(IN) Points to the name of the object that will receive security equivalence.
(IN) Points to the name to be added to the Security Equivalence attribute of the object specified by equalFrom.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
If NWDSAddSecurityEquiv is successful, it will place the name of the object specified by equalTo into the Security Equals attribute of the object specified by the equalFrom parameter. (Security Equals is a multivalued attribute.)
If the object specified by the equalFrom parameter does not contain sufficient rights to add the security equivalence to its list, NWDSAddSecurityEquiv will return ERR_NO_ACCESS.