Troubleshooting
Problem
Is it possible to write a PC log-on script to sync up Windows network and IBM i user passwords?
Resolving The Problem
Is it possible to write a PC log-on script to sync up Windows network and IBM i user passwords? In this case, Windows passwords were changed monthly. The administrator wanted to write a network log-on script that would change the Windows network password and then prompt the user to ask whether they wanted their IBM i password changed to match the Windows password.
IBM i Access Client Solutions Windows Application Package provides both ActiveX automation objects and C/C++ APIs that can be used to change an IBM i password. They can be used along with Windows APIs to sync the Windows network and IBM i user passwords. For more information about the IBM i Access Client Solutions Windows Application Package ActiveX automation objects and C/C++ APIs, see the Programmer's Toolkit. Go to Windows Start->Programs->IBM i Access Client Solutions->Programmer's Toolkit->Programmer's Toolkit. In Programmer's Toolkit, expand Communications and Security and choose either ActiveX or C/C++ APIs.
On the ActiveX documentation page, select the link: IBM i Access for Windows ActiveX Automation Objects - communications. On the ActiveX automation objects page, select AS400System for a complete list of properties and methods. Click the ChangePassword method for parameters and example code.
On the C/C++ APIs documentation page, select the link: IBM i Access --> Programming-communications. On the iSeries Access for Windows Communications and Security APIs page, select the link: IBM i Access for Windows Communications and Security system object APIs listing. Click cwbCO ChangePassword for parameters and return codes.
A visual basic sample program (VbCwbSyTst.zip) that uses the security APIs can be downloaded from public.dhe.ibm.com/services/us/igsc/cs2/ApiSamples/VbCwbSyTst.zip.
IBM i Access Client Solutions Windows Application Package provides both ActiveX automation objects and C/C++ APIs that can be used to change an IBM i password. They can be used along with Windows APIs to sync the Windows network and IBM i user passwords. For more information about the IBM i Access Client Solutions Windows Application Package ActiveX automation objects and C/C++ APIs, see the Programmer's Toolkit. Go to Windows Start->Programs->IBM i Access Client Solutions->Programmer's Toolkit->Programmer's Toolkit. In Programmer's Toolkit, expand Communications and Security and choose either ActiveX or C/C++ APIs.
On the ActiveX documentation page, select the link: IBM i Access for Windows ActiveX Automation Objects - communications. On the ActiveX automation objects page, select AS400System for a complete list of properties and methods. Click the ChangePassword method for parameters and example code.
On the C/C++ APIs documentation page, select the link: IBM i Access --> Programming-communications. On the iSeries Access for Windows Communications and Security APIs page, select the link: IBM i Access for Windows Communications and Security system object APIs listing. Click cwbCO ChangePassword for parameters and return codes.
A visual basic sample program (VbCwbSyTst.zip) that uses the security APIs can be downloaded from public.dhe.ibm.com/services/us/igsc/cs2/ApiSamples/VbCwbSyTst.zip.
[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Data Access","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]
Historical Number
332317189
Was this topic helpful?
Document Information
Modified date:
24 June 2021
UID
nas8N1016169