NWDisallowObjectPassword

Prevents use of the specified password by the specified object

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Bindery

Syntax

C

   #include <nwbindry.h> 
   or 
   #include <nwcalls.h> 
    
   NWCCODE NWAPI  NWDisallowObjectPassword  ( 
      NWCONN_HANDLE       conn,  
      const nstr8 N_FAR  *objName,  
      nuint16             objType,  
      const nstr8 N_FAR  *disallowedPassword);
   

Pascal

   uses calwin32 
    
   Function NWDisallowObjectPassword 
     (conn : NWCONN_HANDLE; 
      const objName : pnstr8; 
      objType : nuint16; 
      const disallowedPassword : pnstr8 
   ) : NWCCODE; stdcall;
   

Parameters

conn
(IN) Specifies the NetWare server connection handle.
objName
(IN) Points to the name of the object whose password is being disallowed.
objType
(IN) Specifies the type of the object whose password is being disallowed.
disallowedPassword
(IN) Points to the password that is being disallowed.

Return Values

These are common return values. See Return Values (Return Values for C).

0x0000

SUCCESSFUL

0x00FF

BINDERY_FAILURE

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x89F0

WILD_CARD_NOT_ALLOWED

0x89FB

INVALID_PARAMETERS

0x89FC

NO_SUCH_OBJECT

0x89FF

HARDWARE_FAILURE

Remarks

The objName and objType parameters must be specific and cannot contain wildcards.

For NWDisallowObjectPassword to work properly, LOGIN_CONTROL must be set appropriately.

NWDisallowObjectPassword adds an encrypted password to the list of old passwords maintained in the OLD_PASSWORDS property. If the OLD_PASSWORDS property does not exist, NWDisallowObjectPassword will check UNIQUE_PASSWORDS of the restriction flags in the LOGIN_CONTROL property. If the UNIQUE_PASSWORDS is set, the OLD_PASSWORDS property will be created. Otherwise, a BINDERY_FAILURE error code will be returned.

See Object Type.

NCP Calls

See Also

NWChangeObjectPassword, NWLoginToFileServer (Server Management)