Home > Articles > Cisco Network Technology > General Networking > Cisco Secure Access Control System (ACS) 5.2 and User Change Password (UCP)

Cisco Secure Access Control System (ACS) 5.2 and User Change Password (UCP)

  • Article is provided courtesy of Cisco Press.
  • Date: Feb 14, 2011.


  1. UCP through HTTP(S)
  2. UCP through Command Line
  3. Summary
  4. Resources

Article Description

This article teaches you how to use the User Change Password (UCP) service in Cisco ACS to allow users defined in the ACS internal database to first authenticate themselves and then change their own password.

Like this article? We recommend

AAA Identity Management Security

AAA Identity Management Security


UCP through Command Line

UCP through Command Line

In this section we will see how to make use of the default script provided with ACS to enable users to change their password on ACS local database.

Let us begin with installing and configuring components that will enable UCP.

  1. Get the required files from ACS. Navigate to System Administration > Downloads > User Change Password > Python Script for Using the User Change Password Web Service (along with installation instructions), as shown in figure 7.
  2. ACS will prompt you to save a file ‘pythonUCP.zip’. Save it.

  3. Next we need to install Python 2.4.
  4. For Windows we can get a windows installer for Python 2.4 from http://www.python.org/download/releases/2.4.4/.

    For Linux, we can get the source and compile from above link.

    I already had Python 2.6.5 installed on my Ubuntu box. To make script work we need 2.4.x, so I installed it as

    ~$ wget http://mirror.aarnet.edu.au/pub/ubuntu/archive/pool/main/p/python2.4/
       python2.4-minimal_2.4.6-1ubuntu3. -O python2.4-minimal.deb
    ~$ wget http://mirror.aarnet.edu.au/pub/ubuntu/archive/pool/main/p/python2.4/
       python2.4_2.4.6-1ubuntu3. -O python2.4.deb
    ~$ wget http://mirror.aarnet.edu.au/pub/ubuntu/archive/pool/main/p/python2.4/
       python2.4-dev_2.4.6-1ubuntu3. -O python2.4-dev.deb
    ~$ sudo dpkg -i python2.4-minimal.deb python2.4.deb python2.4-dev.deb
  5. Extract the contents of pythonUCP.zip.
  6. Extract files using any unzipping utility.

    On Windows:

    On Ubuntu:

    ~$ unzip pythonUCP.zip 
    Archive: pythonUCP.zip
     creating: Linux/
     extracting: Linux/fpconst-0.7.2.tar.gz 
     inflating: Linux/PyXML-0.8.4-9.i386.rpm 
     inflating: Linux/SOAPpy-0.11.6.tar.gz 
     creating: Windows/
     inflating: Windows/fpconst.zip 
     inflating: Windows/PyXML-0.8.4.win32-py2.4.exe 
     inflating: Windows/SOAPpy-0.11.6.zip 
     inflating: readme.txt 
     inflating: ucp.py 
    ~$ cd Linux/
    ~$ ls
    fpconst-0.7.2.tar.gz PyXML-0.8.4-9.i386.rpm SOAPpy-0.11.6.tar.gz
  7. Install PyXML.
  8. On Windows, simply execute the ‘PyXML-0.8.4.win32-py2.4.exe’ file.

    On Ubuntu:

    ~$ cd Linux/
    ~/Linux$ ls
    fpconst-0.7.2 fpconst-0.7.2.tar.gz PyXML-0.8.4-9.i386.rpm SOAPpy-0.11.6 SOAPpy-0.11.6.tar.gz
    ~/Linux$ sudo alien -k PyXML-0.8.4-9.i386.rpm 
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    error: incorrect format: unknown tag
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    warning: PyXML-0.8.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
    pyxml_0.8.4-9_i386.deb generated
    ~/Linux$ sudo dpkg -i pyxml_0.8.4-9_i386.deb 
    Selecting previously deselected package pyxml.
    (Reading database ... 251982 files and directories currently installed.)
    Unpacking pyxml (from pyxml_0.8.4-9_i386.deb) ...
    Setting up pyxml (0.8.4-9) ...

    Ensure PyXML was installed successfully,

    On Windows run Python command line or GUI and confirm this as shown in figure 9.

    On Ubuntu:

    ~$ python2.4
    Python 2.4.6 (#2, Jan 21 2010, 23:27:36) 
    [GCC 4.4.1] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import xml
    >>> xml.__version__
  9. Install fpconst.
  10. On Windows, unzip ‘fpconst.zip’ & execute as shown in figure 10.

    On Ubuntu:

    ~/Linux$ tar -xvf fpconst-0.7.2.tar.gz 
    ~/Linux$ cd fpconst-0.7.2/
    ~/Linux/fpconst-0.7.2$ ls
    fpconst.py PKG-INFO README setup.py
    ~/Linux/fpconst-0.7.2$ sudo python2.4 setup.py install
    running install
    running build
    running build_py
    running install_lib
    copying build/lib/fpconst.py -> /usr/lib/python2.4/site-packages
    byte-compiling /usr/lib/python2.4/site-packages/fpconst.py to fpconst.pyc
    running install_egg_info
    Writing /usr/lib/python2.4/site-packages/fpconst-0.7.2.egg-info

    Ensure fpconst was installed successfully from Python command line as shown in figure 11:

  11. Install SOAPPy.
  12. On Windows extract ‘SOAPpy-0.11.6.zip’ & execute as shown in figure 12.

    On Ubuntu:

    ~/Linux$ tar -xvf SOAPpy-0.11.6.tar.gz 
    ~/Linux$ cd SOAPpy-0.11.6
    ~/Linux/SOAPpy-0.11.6$ sudo python2.4 setup.py install
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/SOAPpy
    copying SOAPpy/__init__.py -> build/lib/SOAPpy
    copying SOAPpy/GSIServer.py -> build/lib/SOAPpy
    copying SOAPpy/SOAP.py -> build/lib/SOAPpy
    copying SOAPpy/SOAPBuilder.py -> build/lib/SOAPpy
    copying SOAPpy/URLopener.py -> build/lib/SOAPpy
    copying SOAPpy/version.py -> build/lib/SOAPpy
    copying SOAPpy/Client.py -> build/lib/SOAPpy
    copying SOAPpy/Utilities.py -> build/lib/SOAPpy
    copying SOAPpy/NS.py -> build/lib/SOAPpy
    copying SOAPpy/Config.py -> build/lib/SOAPpy
    copying SOAPpy/Parser.py -> build/lib/SOAPpy
    copying SOAPpy/Errors.py -> build/lib/SOAPpy
    copying SOAPpy/Types.py -> build/lib/SOAPpy
    copying SOAPpy/Server.py -> build/lib/SOAPpy
    copying SOAPpy/WSDL.py -> build/lib/SOAPpy
    creating build/lib/SOAPpy/wstools
    copying SOAPpy/wstools/Namespaces.py -> build/lib/SOAPpy/wstools
    copying SOAPpy/wstools/__init__.py -> build/lib/SOAPpy/wstools
    copying SOAPpy/wstools/UserTuple.py -> build/lib/SOAPpy/wstools
    copying SOAPpy/wstools/XMLname.py -> build/lib/SOAPpy/wstools
    copying SOAPpy/wstools/XMLSchema.py -> build/lib/SOAPpy/wstools
    copying SOAPpy/wstools/WSDLTools.py -> build/lib/SOAPpy/wstools
    copying SOAPpy/wstools/Utility.py -> build/lib/SOAPpy/wstools
    copying SOAPpy/wstools/TimeoutSocket.py -> build/lib/SOAPpy/wstools
    running install_lib
    creating /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/__init__.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/GSIServer.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/SOAP.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/SOAPBuilder.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/URLopener.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/version.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/Client.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/Utilities.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/NS.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/Config.py -> /usr/lib/python2.4/site-packages/SOAPpy
    creating /usr/lib/python2.4/site-packages/SOAPpy/wstools
    copying build/lib/SOAPpy/wstools/Namespaces.py -> /usr/lib/python2.4/site-packages/SOAPpy/wstools
    copying build/lib/SOAPpy/wstools/__init__.py -> /usr/lib/python2.4/site-packages/SOAPpy/wstools
    copying build/lib/SOAPpy/wstools/UserTuple.py -> /usr/lib/python2.4/site-packages/SOAPpy/wstools
    copying build/lib/SOAPpy/wstools/XMLname.py -> /usr/lib/python2.4/site-packages/SOAPpy/wstools
    copying build/lib/SOAPpy/wstools/XMLSchema.py -> /usr/lib/python2.4/site-packages/SOAPpy/wstools
    copying build/lib/SOAPpy/wstools/WSDLTools.py -> /usr/lib/python2.4/site-packages/SOAPpy/wstools
    copying build/lib/SOAPpy/wstools/Utility.py -> /usr/lib/python2.4/site-packages/SOAPpy/wstools
    copying build/lib/SOAPpy/wstools/TimeoutSocket.py -> /usr/lib/python2.4/site-packages/SOAPpy/wstools
    copying build/lib/SOAPpy/Parser.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/Errors.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/Types.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/Server.py -> /usr/lib/python2.4/site-packages/SOAPpy
    copying build/lib/SOAPpy/WSDL.py -> /usr/lib/python2.4/site-packages/SOAPpy
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/__init__.py to __init__.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/GSIServer.py to GSIServer.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/SOAP.py to SOAP.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/SOAPBuilder.py to SOAPBuilder.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/URLopener.py to URLopener.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/version.py to version.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/Client.py to Client.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/Utilities.py to Utilities.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/NS.py to NS.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/Config.py to Config.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/wstools/Namespaces.py to Namespaces.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/wstools/__init__.py to __init__.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/wstools/UserTuple.py to UserTuple.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/wstools/XMLname.py to XMLname.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/wstools/XMLSchema.py to XMLSchema.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/wstools/WSDLTools.py to WSDLTools.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/wstools/Utility.py to Utility.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/wstools/TimeoutSocket.py to TimeoutSocket.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/Parser.py to Parser.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/Errors.py to Errors.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/Types.py to Types.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/Server.py to Server.pyc
    byte-compiling /usr/lib/python2.4/site-packages/SOAPpy/WSDL.py to WSDL.pyc
    running install_egg_info
    Writing /usr/lib/python2.4/site-packages/SOAPpy-0.11.6.egg-info

    Ensure SOAPpy was installed successfully from Python command line as shown in figure 13:

    At this stage we have all the required components to get ‘UCP.py’ to let user change their password.

  13. Execute UCP.py
  14. On Windows simply type ‘ucp.py’ and script will execute as shown in figure 14. The ‘ucp.py’ in this example is placed at C drive root location.

    On Ubuntu:

    ~$ python2.4 ucp.py
    Please enter ACS host name or IP address:
    Please enter user name:
    Please enter old password:
    Please enter new password:

Cisco Press Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Cisco Press and its family of brands. I can unsubscribe at any time.


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Cisco Press products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@ciscopress.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


This site is not directed to children under the age of 13.


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


Users can always make an informed choice as to whether they should proceed with certain services offered by Cisco Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.ciscopress.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020