[asterisk-gui] Can't login to gui after reinstalling asterisk and asterisk-gui

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Fri Jan 19 07:31:45 MST 2007


On Friday 19 January 2007 8:45 am, Andrew Kohlsmith wrote:
> On Friday 19 January 2007 7:17 am, dima wrote:
> > I've reinstalled asterisk and asterisk-gui this mourning. Now when I
> > navigate to http://10.0.0.39:8088/asterisk/static/config/cfgbasic.html
> > all both edit fields and buttons are disabled. So I can't login.
> > Please help me resolve this. I'm using firefox 2.0 on Kubuntu Edgy to
> > access gui. The OS where asterisk is installed is CentOS 4.4
>
> I too have this problem with svn trunk for both asterisk and asterisk-gui.
> I'm new to asterisk-gui though, so I have no previous experience to say how
> it should work.

Just an update:

It seems to be related to the manager system not liking my users.

# telnet localhost 5038
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/1.0
Action: login
Username: admin
Secret: secret

Response: Error
Message: Authentication failed

Connection closed by foreign host.

the CLI shows this:

[Jan 19 09:25:26] DEBUG[9950]: manager.c:2067 process_message: Manager 
received command 'login'
  == Parsing '/etc/asterisk/manager.conf': [Jan 19 09:25:26] DEBUG[9950]: 
config.c:851 config_text_file_load: Parsing /etc/asterisk/manager.conf
Found
  == Parsing '/etc/asterisk/users.conf': [Jan 19 09:25:26] DEBUG[9950]: 
config.c:851 config_text_file_load: Parsing /etc/asterisk/users.conf
Found
[Jan 19 09:25:26] NOTICE[9950]: manager.c:926 authenticate: 127.0.0.1 tried to 
authenticate with nonexistent user 'admin'
  == Connect attempt from '127.0.0.1' unable to authenticate

and again, for posterity:

# grep -v '^;' /etc/asterisk/manager.conf
[general]
enabled = yes
webenabled = yes
port = 5038
httptimeout = 60
bindaddr = 0.0.0.0
displaysystemname=yes
displayconnects = yes

[admin]
secret = secret
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config
displayconnects=yes

[foo]
secret = foo
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config

So it's there, and the manager even sees the users:

*CLI> manager show user admin

       username: admin
         secret: secret
           deny: (N/A)
         permit: (N/A)
           read: system,call,log,verbose,command,agent,config
          write: system,call,log,verbose,command,agent,config
displayconnects: yes

-A.


More information about the asterisk-gui mailing list