[mythtv] Disabling Authentication in Webfrontend?
Bill Meek
keemllib at gmail.com
Fri Sep 15 15:26:28 UTC 2017
On 09/15/2017 09:54 AM, Dag Nygren wrote:
...
> 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": ""}
If user admin, pass mythtv works, then try this (works for me):
curl --digest --user admin:mythtv -H 'Accept: application/json' --data Key=HTTP/Protected/Urls --data Value="/Off"
yourBackend:6544/Myth/PutSetting
/Off isn't special, it just isn't one of the services known to the API.
User admin is known to mythbackend (in its DB.)
This is a bad solution for anyone that doesn't have something
else, like "Apache web server as a proxy", as Dag does.
--
Bill
More information about the mythtv-dev
mailing list