Skip to main content
Participant
September 14, 2015
Question

Can't make Adobe Media Server HTTP Admin commands work !!!

  • September 14, 2015
  • 0 replies
  • 330 views

1. In my Server.xml config file :

<AdminServer>

    ...

    ...

    <HostPort>${SERVER.ADMINSERVER_HOSTPORT}</HostPort>

    <IpcHostPort>localhost:11110</IpcHostPort>

  ...

  ...

    <Allow>all</Allow>

    <Deny></Deny>

    <Order>Deny,Allow</Order>

</AdminServer>

2. I've added an user from the AMS Admin Console and I can see him in the Users.xml

<UserList>

  ...

  ...

  <User name="mynewuser">

      <Password>MyEncryptedPassword</Password>

      <Allow>all</Allow>

      <Deny></Deny>

      <Order>Deny,Allow</Order>

  </User>

</<UserList>

<AdminServer>

  <HTTPCommands>

      <Enable>true</Enable>

      <Allow>ping,getNetStreams,getLiveStreams</Allow>

      <Deny>All</Deny>

      <Order>Deny,Allow</Order>

  </HTTPCommands>

</AdminServer>

However, when I call http://127.0.0.1:1111/admin/getNetStreams?auser=mamisoa&apswd=mypasswd&AppInst=live from wget, for instance, I alwayas get :

<?xml version="1.0" encoding="utf-8"?>

<result>

        <level>error</level>

        <code>NetConnection.Connect.Rejected</code>

        <description>Admin user requires valid username and password.</description>

        <timestamp>ven. 11 sept. 2015 17:13:22 CEST</timestamp>

</result>


Notice that when I use the same couple login/pwd on the Admin Login Console, it works very well.


Have I missed something  (configuration or call parameters) ?

Any help will be welcome.

Mamisoa.

    This topic has been closed for replies.