Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> setpass</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SETPASS
------------------------------------------------------------------------------
 Purpose:
 Emulate the Novell SETPASS.EXE utility.

 Syntax:
 SETPASS <[servername/]username> <oldpassword> <newpassword>

 Parameters:
 servername  The optional file server name.
 username    Name of the user to set the password for.
 oldpassword User's current password
 newpassword The new password.

 Returns:
 None.
 NWErrorGet() returns non-zero if an error occurs.

 Description:
 SETPASS emulates the Novell SETPASS.EXE command line utility which sets
 the password of a specified user. It works like SETPASS.EXE almost exactly
 except that SETPASS.EXE asks for the old and new passwords, whereas with
 this UDC you have to specify the passwords as part of the command line.

 Example:
 // To set user JANE's password from RATBAG to BINBAG on the current server:

 #include "novlib.ch"
 SETPASS JANE RATBAG BINBAG

 // To change user JOHN's password on server ADMIN from HUDSON to RATTLE:

 #include "novlib.ch"
 SETPASS ADMIN/JOHN HUDSON RATTLE

 // To perform the same operation with variables:

 #include "novlib.ch"
 UserStr = "JANE"
 oPwdStr = "RATBAG"
 nPwdStr = "BINBAG"
 SETPASS &UserStr &oPwdStr &nPwdStr

 Notes:
 This command only works with CA-Clipper 5.x and may require
 Supervisor equivalence. For more information, see SETPASS.EXE in the
 NetWare reference manuals.

 NOVLIB50.PRG needs to be compiled and linked to your program when using
 this command.

See Also: UsrPasswordChange() UsrPasswordTest()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson