Copy link to clipboard
Copied
I am running FMIS4.5 on CentOS5.5
FMIS is running and I can connect via Flash Media Encoder.
Web displays and admin console :1111 gives xml output, however
When using the user & password in my xml files to login (testing with ping), I get the "Admin user requires valid username and password" error.
conf/fms.ini:
###########################################################################
# fms.ini contains substitution variables for Flash Media Server #
# configuration files. Lines beginning with '#' are considered comments. #
# A substitution variable is in the form <name>=<value>. Everything up to #
# the first '=' is considered the name of the substitution variable, and #
# everything after the first '=' is considered the substitution value. If #
# you want a substitution variable to have leading or trailing spaces, #
# enclose the value around double quotes. For example, foo=" bar " #
###########################################################################
###############################################################
# This section contains configurable parameters in Server.xml #
###############################################################
# Username for server admin
# For example:
# SERVER.ADMIN_USERNAME = foo
#
SERVER.ADMIN_USERNAME = Admin
SERVER.ADMIN_PASSWORD = str34m1ng
# IP address and port Flash Media Admin Server should listen on
# For example:
# SERVER.ADMINSERVER_HOSTPORT = :1111
#
SERVER.ADMINSERVER_HOSTPORT = :1111
# User id in which to run the process (Linux Only)
# For example:
# SERVER.PROCESS_UID = 500
#
SERVER.PROCESS_UID = 500
# Group id in which to run the process (Linux Only)
# For example:
# SERVER.PROCESS_GID = 500
#
SERVER.PROCESS_GID = 500
# License key for Flash Media Server
# For example:
# SERVER.LICENSEINFO = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
#
SERVER.LICENSEINFO = #SORRY YOU DON'T GET TO SEE THIS#
# LIVE_DIR denotes the full path of sample "Live" application's
# folder for storing any live stream recorded by server.
# For example:
# LIVE_DIR = <FMS_Installation_Dir>\applications\live
#
LIVE_DIR = /opt/adobe/fms/applications/live
# VOD_COMMON_DIR denotes the full path of sample "VOD" application's
# folder for storing onDemand and Progressive Download .flv/.mp3 files.
# File stored in this folder can be streamed and are also PD-able.
# Note : If you are using the default installation of Apache as a webserver,
# and if you modify VOD_COMMON_DIR, please change the document root
# accordingly in httpd.conf.
# For example:
# VOD_COMMON_DIR = <FMS_Installation_Dir>\webroot\vod
#
VOD_COMMON_DIR = /opt/adobe/fms/webroot/vod
# VOD_DIR denotes the full path of sample "VOD" application's
# folder for storing onDemand only .flv/.mp3 files. Files stored in
# this folder are not PD-able
# For example:
# VOD_DIR = <FMS_Installation_Dir>\applications\vod\media
#
VOD_DIR = /opt/adobe/fms/applications/vod/media
# The maximum size of the FLV cache, in megabytes.
# The default is 500MB.
#
SERVER.FLVCACHE_MAXSIZE=500
# Whether to start and stop the included HTTP server along
# with FMS.
#
SERVER.HTTPD_ENABLED = true
################################################################
# This section contains configurable parameters in Adaptor.xml #
################################################################
# Application directory for the virtual host
# For example:
# VHOST.APPSDIR = C:\myapps
#
VHOST.APPSDIR = /opt/adobe/fms/applications
VHOST.ALLOW = all
####################################################################
# This section contains configurable parameters in Application.xml #
####################################################################
# List of semi-colon delimited paths in which to search for script to load
# For example:
# APP.JS_SCRIPTLIBPATH = C:\scripts;C:\Program Files\Foo\scripts
#
APP.JS_SCRIPTLIBPATH = /opt/adobe/fms/scriptlib
###############################################################
# This section contains configurable parameters in Logger.xml #
###############################################################
LOGGER.LOGDIR =
####################################################################
# This section contains configurable parameters in Users.xml #
####################################################################
# Enable or disable using HTTP requests to execute admin commands.
# Set to "true" to enable, otherwise it will be disabled. The
# actual commands permitted for server admin and virtual host admin
# users can be set in Users.xml.
USERS.HTTPCOMMAND_ALLOW = true
Users.xml:
<Root>
<UserList>
<!-- This tag defines an administrator for the server. -->
<User name="${SERVER.ADMIN_USERNAME}">
<!-- Salted Password Hash for this vhost administrator. -->
<Password encrypt="false">${SERVER.ADMIN_PASSWORD}</Password>
<!-- This admin can only connect to the server from the specified -->
<!-- hosts. This is specified as a comma delimited list of -->
<!-- hostnames or domain names, and/or (full or partial) IP -->
<!-- addresses. For example, -->
<!-- "foo.yourcompany.com, macromedia.com, 10.60.1.133, 10.60" -->
<Allow>All</Allow>
<!-- This admin cannot connect to the server from any of the -->
<!-- specified hosts. This is specified as a comma delimited list -->
<!-- of hostnames or domain names, and/or (full or partial) IP -->
<!-- addresses. For example, -->
<!-- "foo.yourcompany.com, macromedia.com, 10.60.1.133, 10.60" -->
<Deny></Deny>
<!-- Specifies the order in which to evaluate the <Allow> and -->
<!-- <Deny> tags. This can be "Allow,Deny" or "Deny,Allow". The -->
<!-- default is "Deny,Allow" which means that access is allowed -->
<!-- unless specified in <Deny> and not specified in <Allow>. -->
<Order>Allow,Deny</Order>
</User>
<User name="janedoe">
<Password encrypt="false">S4mpl3P4ss</Password>
<Allow></Allow>
<Deny></Deny>
<Order>Allow,Deny</Order>
</User>
</UserList>
<AdminServer>
<HTTPCommands>
<!-- Enable or disable using HTTP requests to execute admin commands. -->
<!-- Set to "true" to enable, otherwise it will be disabled. The -->
<!-- actual commands permitted for server admin and virtual host admin -->
<!-- users can be set in the Allow and Deny elements. $
<Enable>${USERS.HTTPCOMMAND_ALLOW}</Enable>
<!-- List of server admin commands that can be accessed via HTTP. -->
<!-- Add multiple commands separated by commas. "All" indicates -->
<!-- every command (it's not recommended to allow all commands). -->
<!-- Seperate multiple commands with commas. -->
<Allow>ping</Allow>
<!-- List of server admin commands denied access via HTTP. -->
<!-- Add multiple commands seperated by commas. "All" indicates -->
<!-- every command. -->
<Deny>All</Deny>
<!-- Processing order for deny and allow command lists. "Deny,Allow" -->
<!-- means the command will be allowed if the command is in the allow -->
<!-- list or not in the deny list. "Allow,Deny" means the command -->
<!-- will be allowed if it is in the allow list and not in the -->
<!-- deny list. -->
<Order>Deny,Allow</Order>
</HTTPCommands>
</AdminServer>
</Root>
Output on :1111/admin/ping?auser=Admin&apswd=str34m1ng :
<result>
<level>error</level>
<code>NetConnection.Connect.Rejected</code>
<description>Admin user requires valid username and password.</description>
<timestamp>Thu 17 May 2012 11:33:43 AM EDT</timestamp>
</result>
Connections do not work from both localhost and external connections and the fms_adminConsole.htm (.swf) fails as well.
Any assistance is appreciated!
Hey Jon,
Please take a look at this. Should help.
http://forums.adobe.com/message/4346847#4346847
Thank You.
Copy link to clipboard
Copied
Hi,
FMIS 4.5 does not accept plain text password. Encrypt=false is no longer supported. See here for more information : http://help.adobe.com/en_US/flashmediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2926bcf-7fed.h...
The value for SERVER.ADMIN_PASSWORD needs to be the encrypted string for your password. That should solve your problem.
Hope this helps.
Thanks,
Apurva
Copy link to clipboard
Copied
Apurva,
Thank you very much. What encryption algorithm and salt do I need to use? Is there a provided tool to do the encryption?
I'll search in the meantime, but I am having no lucking finding this information.
Thanks,
Jon
Copy link to clipboard
Copied
Hey Jon,
Please take a look at this. Should help.
http://forums.adobe.com/message/4346847#4346847
Thank You.
Copy link to clipboard
Copied
Thank you for all your help.
Have a wonderful weekend.