NWChangeObjectPassword(3nw)


NWChangeObjectPassword -- changes the specified object's password to a new password

Synopsis

   #include <nwbindry.h> 
   or 
    #include <nwcalls.h> 
   

NWCCODE N_API NWChangeObjectPassword (NWCONN_HANDLE conn, pnstr8 objName, nuint16 objType, pnstr8 oldPassword, pnstr8 newPassword);

Description

The parameters are as follows:

conn
(IN) Specifies the NetWare server connection handle corresponding to the server to receive the change.

objName
(IN) Points to the name of the object whose password is to be changed.

objType
(IN) Specifies the object type of the object having its password changed.

oldPassword
(IN) Points to the old password.

newPassword
(IN) Points to the new password.

Return values

0x0000
SUCCESSFUL

0x89DE
PASSWORD_HAS_EXPIRED_NO_GRACE

0x89F0
WILD_CARD_NOT_ALLOWED

0x89FB
INVALID_PARAMETER

0x89FF
NO_SUCH_OBJECT_OR_BAD_PASSWORD

Notices

NWChangeObjectPassword does not require the old password to be known.

As with other functions requiring passwords, the change is attempted using encryption if the server supports it; otherwise, the change is attempted without encryption.

Clients can change their own password. To change the password for other bindery objects, the client must be a SUPERVISOR or SUPERVISOR equivalent.

Services

Bindery

NCP calls

0x2222 23 23
Get Login Key

0x2222 23 53
Get Bindery ObjectID

0x2222 23 75
Keyed Change Password

References

NWCreateObject(3nw), NWCreateProperty(3nw)


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.