#include <nwnet.h> or #include <nwdsbuft.h>NWDSCCODE N_API NWDSPutAttrVal (NWDSContextHandle context, pBuf_T buf, nuint32 syntaxID, nptr attrVal);
buf points to a Buf_T which is allocated by NWDSAllocBuf and initialized by NWDSInitBuf.
The name of the attribute to which the value belongs is specified previously by calling either NWDSPutChange or NWDSPutAttrName (depending on the nature of the operation).
syntaxID tells NWDSPutAttrVal what method to use for converting the attribute value to a machine-transparent form when storing the value in the buffer. Syntax IDs (such as SYN_PATH) are enumerated in NWDSDEFS.H. Syntaxes are described in the ``Attribute Syntax Definitions'' chapter of the NetWare Directory Services Schema Specification.
attrVal points to the attribute value to be stored in the request buffer. The type of data pointed to by attrVal depends on the indicated attribute syntax. See the ``Attribute Type Definitions'' chapter of the NetWare Directory Services Schema Specification to determine the data type associated with an attribute.
Directory