Verifies the password of an object. Does not support international or extended characters in passwords.
#include <nwnet.h>
or
#include <nwdsasa.h>
N_EXTERN_LIBRARY (NWDSCCODE) NWDSVerifyObjectPassword (
NWDSContextHandle context,
nflag32 optionsFlag,
pnstr8 objectName,
pnstr8 password);
uses netwin32
Function NWDSVerifyObjectPassword
(context : NWDSContextHandle;
optionsFlag : nflag32;
objectName : pnstr8;
password : pnstr8
) : NWDSCCODE;
(IN) Specifies the handle to the name context structure.
(IN) Reserved; pass in zero.
(IN) Points to the object name (under the context) of the object to verify.
(IN) Points to the clear-text password for the object.
|
0x0000 0000 |
SUCCESSFUL |
|
nonzero value |
Nonzero values indicate errors. See |
To call NWDSVerifyObjectPassword successfully, the current password of the object must be known. If no such password exists, password should point to a zero-length string. All strings used by NWDSVerifyObjectPassword are NULL-terminated.
NOTE:NWDSVerifyPwdEx supports international and extended characters and is recommended in place of NWDSVerifyObjectPassword.