Re: [asterisk-users] Message: Authentication failed on manager interface

2019-04-04 Thread Brian J. Murrell
On Thu, 2019-04-04 at 15:08 +0200, Antony Stone wrote:
> 
> It's not "Password", it's "Secret" :)

Ha ha.  I knew it would be a head-smack type problem.

Cheers,
b.



signature.asc
Description: This is a digitally signed message part
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Message: Authentication failed on manager interface

2019-04-04 Thread Antony Stone
On Thursday 04 April 2019 at 14:28:15, Brian J. Murrell wrote:

> # echo -e "Action: Login\r\nUsername: myasterisk\r\nPassword: a\r\n\r\n"

It's not "Password", it's "Secret" :)


Antony.

-- 
I don't know, maybe if we all waited then cosmic rays would write all our 
software for us. Of course it might take a while.

 - Ron Minnich, Los Alamos National Laboratory

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Message: Authentication failed on manager interface

2019-04-04 Thread Brian J. Murrell
I'm not sure how much more simple I can make this but I just cannot
seem to get my Asterisk 13 to accept a connection on the manager
interface:

--- manager.conf ---
[general]
enabled = yes

port = 5038
bindaddr = 127.0.0.1

[myasterisk]
secret=a
permit=0.0.0.0/0.0.0.0

read = all
write = all

So, couldn't be any more wide open and simpler to connect yet:

# echo -e "Action: Login\r\nUsername: myasterisk\r\nPassword: a\r\n\r\n" | ncat 
127.0.0.1 5038
Asterisk Call Manager/2.10.4
Response: Error
Message: Authentication failed

Even more basically if you like:

# telnet 127.0.0.1 5038
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Asterisk Call Manager/2.10.4
Action: Login
Username: myasterisk
Password: a

Response: Error
Message: Authentication failed

Connection closed by foreign host.

I have restarted asterisk after editing manager.conf, even though a
manager reload should be all that's needed.

server*CLI> manager show user myasterisk

  username: myasterisk
secret: 
   ACL: yes
 read perm: 
system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,agi,cc,aoc,test,security,message,all
write perm: 
system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,agi,cc,aoc,test,security,message,all
   displayconnects: yes
allowmultiplelogin: yes
 Variables: 

I know this is going to be a "head smack" problem, but seriously.  What
am I missing?

Cheers,
b.



signature.asc
Description: This is a digitally signed message part
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users