NWDSEGetLocalAttrID
Retrieves the local ID of a specified eDirectory attribute.
#include <nwdsdsa.h>
#include <nwdsevnt.h>
N_EXTERN_LIBRARY (NWDSCCODE) NWDSEGetLocalAttrID (
NWDSContextHandle context,
const pnstr name,
pnuint32 id);
|
0x0000 |
Successful |
|
Negative Value |
Negative values indicate errors. For
error values, see |
An attribute’s local ID is valid only for the server on which NWDSEGetLocalAttrID is called. For this reason, this ID is called a local ID.
The data structures returned for eDirectory events do not contain attribute names. Instead, these structures use local IDs to identify the attribute that is associated with the event. NWDSEGetLocalAttrID is used to map an attribute name, such as User, and convert it to a local ID that can be used to compare with the local ID in an event structure.
Comparisons of IDs are faster than comparisons of text strings. Therefore, to avoid unnecessary processing time, your application should filter on IDs when possible.