Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
Review and Checkout
Adobe Developer Connection / Adobe Media Server Developer Center /

Changing secure passwords

by Apurva Udaykumar

Apurva Udaykumar

Content

  • Reset password using the Administrator Console
  • Reset password using the command line
  • Reset passwords using the Admin API
  • Where to go from here

Created

5 November 2012

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
administrationAdobe Media Server 5 Standar...Flash Media Serversecurityvideo
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

Requirements

Prerequisite knowledge

This article assumes that you have basic knowledge of the Adobe Media Server. For in-depth understanding of this article you also need some experience working with ActionScript.

User level

Intermediate

Required products

  • Adobe Media Server 5 Standard

User and administrator usernames and passwords are stored in salted hash forms in the root_install/conf/Users.xml file.
To change or reset a password, use one of the following methods:

  • Administrator Console
  • Command line
  • Admin API

Reset password using the Administrator Console

To reset a password using the Administrator Console:

  1. Log in to the Administration Console as the server administrator.
Administration Console
Figure 1. Administration Console
  1. Click Manage Users.
  2. Select the user whose password you wish to change or reset.
Manage users tab of the Administrator Console
Figure 2. Manage users tab of the Administrator Console
  1. Select ”Reset the password for this user.”
  2. Enter the new password and select “Reset Password.”
Resetting the administrator password
Figure 3. Resetting the administrator password

Note: The default password policy specifies that the password must be at least eight characters. You can enable or disable this password policy using the PasswordPolicy element in the Users.xml file. By default the value of PasswordPolicy is true.

To turn off the password policy so that there is no minimum password length, update the Users.xml file with the following line:

<Root><PasswordPolicy enable="false"></PasswordPolicy></Root>

When you click Reset Password, the new password is written to the Users.xml file in the salted hash form. For this reason, the write access to the Users.xml configuration file should be monitored.

Reset password using the command line

To reset a password from the command line:

On Linux

  1. Open a command window.
  2. Change directories to the Adobe Media Server installation directory:
    (default) /opt/adobe/ams
  3. Stop Adobe Media Server and Adobe Media Administration Server.
  4. Enter the following command:
    ./amsadmin -console -user <username>
  5. Enter a minimum eight character password.

Alternatively, you can specify the password in the command line as follows:

./amsadmin -console -user <username> -password <password>

On Windows

  1. Open a command window.
  2. Change directories to the Adobe Media Server installation directory:
    (default) C:\Program Files\Adobe\Adobe Media Server 5
  3. Stop Adobe Media Server and Adobe Media Administration Server.
  4. Enter the following command:
    amsadmin -console -user <username>
  5. Enter a minimum eight character password.

Alternatively, you can specify the password in the command line as follows:

amsadmin -console -user <username> -password <password>

Note: The password is not exposed because terminal echo is off.

You can also call amsadmin in your script without displaying the password:

#!/bin/bash echo "Changing password" ./amsadmin -console -user admin -password `echo $1` echo "Password changed"

Here, the password to be set is given as the first parameter to the script.

Reset passwords using the Admin API

You can use the changePswd() API to reset a password. Call the changePswd() API as follows:

RTMP/E
changePswd(admin_name:String, password:String [,scope:String]) : Object


HTTP
http://www.example.com:1111/admin/changePswd?auser=username&apswd=password&username=name &password=password[&scope=scope]

Parameters

admin_name A String indicating the name of the administrator whose password is being changed.

username A String indicating the name of the user whose password is being changed.

password A String indicating the administrator’s new password.

scope A String indicating whether the administrator is a server administrator or virtual host administrator, and for which virtual host. To change the password for the specified administrator on the virtual host to which you’re connected, omit this parameter. To change the password for the specified administrator on a different virtual host, specify adaptor_name/virtual_hostname. To change a server administrator’s password, specify server.

auser A String indicating the user name of the administrator.

apswd A String indicating the password of the administrator.

Returns

RTMP/E If the call succeeds, the server sends a reply information object with a level property of status and a code property of NetConnection.Call.Success. If the call fails, the server sends a reply information object with a level property of error and a code property of NetConnection.Admin.CommandFailed or a more specific value, if available. Some objects might also have a description property that contains a string describing the cause of the failure. If the specified administrator does not exist, this method fails.

HTTP A call returns XML with the following structure:

<result>
<level></level>
<code></code>
<timestamp></timestamp>
</result>


The XML elements contain the same information as the Object properties returned in an RTMP/E call.

Example

nc_admin = new NetConnection();
nc_admin.addEventListener(NetStatusEvent.NET_STATUS, onStatus);
nc_admin.connect("rtmp://localhost:1111/admin", "JLee", "x52z49ab");

function onStatus(event:NetStatusEvent):void{
   if(event.info.code==”NetConnection.Connect.Success){
/* Change password for server administrator named "ASilva" to "cbx5978y" */
   nc_admin.call("changePswd", new onChangePswd(), "ASilva", "cbx5978y", "server");

/* Change password for virtual host administrator "JLee" to "kbat3786" on */
/* virtual host "tree.oak.com" */
   nc_admin.call("changePswd", new onChangePswd(), "JLee", "kbat3786",
  "_defaultRoot_/tree.oak.com");
   }
}

Note: All the previously mentioned methods change the password for a specific user. The new password is encoded and then written to the Users.xml configuration file.

Virtual host administrators can only change their own password.

Where to go from here

Secure passwords can be changed by using either the Administrator console, the command line utility, or the changePswd() Admin API.

Learn more about the Admin APIs here.

Learn more about using the Administrator console here.

More Like This

  • Encoding live video to H.264/AVC with Flash Player 11
  • Beginner's guide to streaming audio through Flash Media Server 3.5
  • Beginner's guide to dynamic streaming with Flash Media Server 3.5
  • Beginner's guide to using ActionScript 3.0 with Flash Media Server 3.5
  • Streaming AAC/MP3 files with Flash Media Server 3
  • Beginner's guide to installing Flash Media Server 3.5
  • Beginner's guide to streaming live video with Flash Media Server 3.5
  • Calculating bandwidth needs for Flash Media Server 3
  • Beginner's guide to streaming video with Flash Media Server 3.5
  • Protecting online video distribution with Adobe Flash media technology

Tutorials & Samples

Tutorials

  • Troubleshooting hang/crash issues in Adobe Media Server
  • Attaching alternate audio tracks using OSMF
  • AMS remote server logging

Samples

  • Best practices for real-time collaboration using Flash Media Server
  • Understanding live DVR – Part 2: Using DVRCast with Flash Media Live Encoder 3
  • Understanding live DVR – Part 1: Implementing a live DVR player

Flash Media Server Forum

More
05/17/2013 HDS-Live playback stops after some time
05/17/2013 Cacheroot larger vod files, and AMS dont accept external connections
05/16/2013 audio live streaming not smooth
12/16/2010 Recording multicast RTMFP streams

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement