[mythtv] Disabling Authentication in Webfrontend?

Dag Nygren dag at newtech.fi
Fri Sep 15 16:07:28 UTC 2017


On Friday 15 September 2017 10:56:30 Bill Meek wrote:
> On 09/15/2017 10:38 AM, Dag Nygren wrote:
> > On Friday 15 September 2017 10:26:28 Bill Meek wrote:
> >> On 09/15/2017 09:54 AM, Dag Nygren wrote:
> > 
> >>
> >> 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
> ...
> > Gives me a response of:
> > <?xml version="1.0" encoding="utf-8"?><detail><errorCode>501</errorCode><errorDescription>Key Required</errorDescription></detail>
> 
> That error literally means that the "Key wasn't received.
> You'll have to paste the command you sent rather
> than my example (don't need to know your hostname.)
> 
> You successfully used Key earlier in:
> 
>     curl -H 'Accept: application/json' yourBackendHostOrIP:6544/Myth/GetSetting?Key=HTTP/Protected/Urls\&HostName=_GLOBAL_
> 
> However, PutSetting requires a POST so for curl, that means
> using the --data switch. I guess you could try wget in place
> of curl. Or, could something else be eating the postdata
> (like your web server.)

Now I tested with:
curl --digest --user admin:mythtv -H 'Accept: application/json' --data Value="/Off" <hostname>:6544/Myth/PutSetting\?Key=HTTP/Protected/Urls
and got a response of:
{"bool": "true"}
which looks a lot better.
Now off to test if it really works better :-)

Thanks Bill so far!

Dag


More information about the mythtv-dev mailing list