<div dir="ltr">Hello,<div><br></div><div>I'm asking if there is a way to do extra troubleshooting for admin auth, by adjusting a config parameter (i.e. loglevel), then looking at log files.</div><div><br></div><div><br></div><div>Sometimes I can auth properly when trying to update metadata using a url with basic auth embedded before the server/hostname, requested from a web browser like google chrome.</div><div><br></div><div>i.e. <a href="http://admin:password@icecast.org:1234/admin/metadata?mode=updinfo&mount=.">http://admin:password@icecast.org:1234/admin/metadata?mode=updinfo&mount=.</a>.. etc</div><div><br></div><div>Other times, I can't, and I can't figure out why not.</div><div><br></div><div><br></div><div>1. Does admin:password in this scenario (a web browser request) need to be encoded to Base64, or can it be the "normal / plaintext" i.e. "admin" ?</div><div><br></div><div>Reading the code on Github, in src/connection.c  </div><div>static int <span style="color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">_check_pass_http </span></div><div><span style="color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><span style="color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">it appears it calls a method util_base64_decode, so it appears it is trying to decode it.</span></div><div><span style="color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><span style="color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">but sometimes this works from a web browser request when username:password is typed in plaintext (not base64encoded)</span></div><div><span style="color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"><br></span></div><div><span style="color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">does the browser automatically encode it behind the scenes before the network tranmission?</span></div><div><br></div><div><br></div><div>2. is there anyway to enable a more detailed logging level which would be able to echo the values submitted, to validate if they are being changed by the web browser during transmission?</div><div><br></div><div>in same code file, I see </div><div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-spacing:0px;border-collapse:collapse;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-LC1499" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"> <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">WARN1</span>(<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>Base64 decode of Authorization header <span class="gmail-pl-cce" style="box-sizing:border-box">\"</span><span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">%s</span><span class="gmail-pl-cce" style="box-sizing:border-box">\"</span> failed<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>, header+<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">6</span>);

In which log would this appear? access or error?

</td></tr><tr style="box-sizing:border-box"><td id="gmail-L1500" class="gmail-blob-num gmail-js-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top"></td><td id="gmail-LC1500" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">
<br></td></tr></tbody></table></div><div><br></div><div>Thank you.</div><div>3. </div></div>