Previous Topic: APSXlateTest - Test Translation SettingsNext Topic: APSForcePWChg - Set Force Password Change Flag


SmCPW - Load Test Password Changes

Prior to Version 3.0, a utility called SmCPWTest was provided for testing password changes from the command line. Starting in Version 3.0, this functionality has been merged with SmCPW itself.

SmCPW is the CGI interface for user password changes. If run from the command line, it can also do password changes and is useful for testing APS.

SmCPW can detect whether it is running under a Web Server.

If run with no arguments or just language arguments (-L and/or -C), SmCPW will act as it does under a Web Server satisfying a GET action: it will produce the HTML required for the default form (using the language identifiers, if specified).

If invoked with a User Path, old password and new password, it will post the password change through the APS API and display the result (without any HTML wrapped around the resulting message).

The format of the command (when run from the command line) is:

SmCPW <options> <userpath> <oldpassword> <newpassword>

<options> include:

-L <language>

Indicates the desired language code (as the ISO abbreviation). "EN" is the default.

-C <country>

Indicates the desired country code (as the ISO abbreviation).

-Q <qualifier>

Indicates the qualifier to use for the API calls (useful for testing to multiple Policy Servers from a single client without changing SmPortal.cfg).

The <userpath> must be in the format LDAP://<server>/User DN for LDAP users, WinNT://<server>/<userid> for Windows NT users and ODBC://<server>/<userid> for ODBC users.

SmCPW uses SmPortal to communicate with the Policy Server. It can be run on any machine where SmPortal is installed and properly configured. Neither it nor SmPortal require a Web Server or SiteMinder Web Agent.