[mythtv] Disabling Authentication in Webfrontend?

Dag Nygren dag at newtech.fi
Fri Sep 15 14:54:48 UTC 2017


On Friday 15 September 2017 09:41:31 Bill Meek wrote:
> On 09/15/2017 05:07 AM, Dag Nygren wrote:
> > Hi!
> > 
> > Just tried out the Webfrontend in Master and
> > it seems quite useful.
> > 
> > As I don't want to expose mythtv to the internet
> > I am using an Apache web server as a proxy and it
> > also handles authentication.
> > 
> > Now Webfrontend in itself also wants authentication and
> > I have yet to make this setup work.
> > 
> > An easy way to fix it would be to completely
> > disable the authentication in Webfrontend.
> > 
> > Is this possible?
> 
> Didn't know WebFrontend authentication was turned on by default.

Authentication is turned on for the administrative functions
and that seems to clash badly with my Apache Basic authentication as
myth keeps asking again and again for authentication and
fills the logs with:
.
.
.
2017-09-15 13:53:53.676865 W [2828/19462] HttpServer179 mythsession.cpp:345 (LoginUser) - LoginUser: Failed login attempt for user dag
2017-09-15 13:53:53.676892 W [2828/19462] HttpServer179 httprequest.cpp:1942 (BasicAuthentication) - Authorization attempt with invalid password
2017-09-15 13:53:53.796905 W [2828/19462] HttpServer179 mythsession.cpp:345 (LoginUser) - LoginUser: Failed login attempt for user dag
2017-09-15 13:53:53.796937 W [2828/19462] HttpServer179 httprequest.cpp:1942 (BasicAuthentication) - Authorization attempt with invalid password
2017-09-15 13:53:53.920856 W [2828/19462] HttpServer179 mythsession.cpp:345 (LoginUser) - LoginUser: Failed login attempt for user dag
2017-09-15 13:53:53.920888 W [2828/19462] HttpServer179 httprequest.cpp:1942 (BasicAuthentication) - Authorization attempt with invalid password
2017-09-15 13:53:54.019423 W [2828/19462] HttpServer179 mythsession.cpp:345 (LoginUser) - LoginUser: Failed login attempt for user dag
2017-09-15 13:53:54.019465 W [2828/19462] HttpServer179 httprequest.cpp:1942 (BasicAuthentication) - Authorization attempt with invalid password
2017-09-15 13:53:54.147120 W [2828/19462] HttpServer179 mythsession.cpp:345 (LoginUser) - LoginUser: Failed login attempt for user dag
2017-09-15 13:53:54.147149 W [2828/19462] HttpServer179 httprequest.cpp:1942 (BasicAuthentication) - Authorization attempt with invalid password
2017-09-15 13:53:54.230241 W [2828/19462] HttpServer179 mythsession.cpp:345 (LoginUser) - LoginUser: Failed login attempt for user dag

Also tried creating a user named admin for the
Apache part, but still no good.

> What does this return:
> 
>      curl -H 'Accept: application/json' yourBackendHostOrIP:6544/Myth/GetSetting?Key=HTTP/Protected/Urls\&HostName=_GLOBAL_

Returns:
{"String": ""}

Dag


More information about the mythtv-dev mailing list