Verifies the password of an object. Supports international and extended characters in passwords. NWDSVerifyPwdEx was not implemented in the old NLMs so you might not find it if you are using an old netnlm32.
#include <nwnet.h> or #include <nwdsasa.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSVerifyPwdEx ( NWDSContextHandle context, pnstr8 objectName, nuint32 pwdFormat, nptr pwd);
uses netwin32 Function NWDSVerifyPwdEx (context : NWDSContextHandle; objectName : pnstr8; pwdFormat : nuint32; pwd : nptr ) : NWDSCCODE;
(IN) Specifies the handle to the name context structure.
(IN) Points to the object name (under the context) of the object to verify.
(IN) Specifies the format of the password data. Select from the following:
(IN) Points to the 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. password can be any length and all characters are significant. Upper- and lowercase letters are distinct.
NOTE:The PWD_RAW_C_STRING password format allows any arbitrary NULL-terminiated data to be used as a password. Passwords specified with this format are not interoperable with unicode and UTF8 passwords.