https commands with basic authentication

tlex
Posts: 20
Joined: Wed Jul 17, 2019 5:23 pm

https commands with basic authentication

Post by tlex »

Hi,
I've been searching but couldn't find how to send https post command ( /admin?xxxxx ) while using basic authentication within the url itself.
When I try to send commands using https, (im using stunnel) via any browser, i get prompted for username and password even if (Use secure session keys and login page) is disabled.

I tried : https://ip:port/admin?camera=ZZZ&preset=1?user=username&pw=password
and
https://user:password@10.32.50.32:444/a ... 2&preset=1
without success.

Any idea ?
HeneryH
Posts: 678
Joined: Thu Jul 18, 2019 2:50 pm

Re: https commands with basic authentication

Post by HeneryH »

You need to turn off the advanced login setting in the web server section. I forget the exact name but look in the web server section for something like 'advanced login security' or similar.
tlex
Posts: 20
Joined: Wed Jul 17, 2019 5:23 pm

Re: https commands with basic authentication

Post by tlex »

I tried both disabling / enabling these without success, I still get userpwd prompt :

-Use UI3 for non-IE browsers
-Use secure session keys and login page.

Couldn't find any other option..
Attachments
authBI-httpPost.jpg
authBI-httpPost.jpg (90.81 KiB) Viewed 54319 times
HeneryH
Posts: 678
Joined: Thu Jul 18, 2019 2:50 pm

Re: https commands with basic authentication

Post by HeneryH »

Uncheck "Use secure session keys and login page"

then add this to the end of the url
?user=user&pw=password
tlex
Posts: 20
Joined: Wed Jul 17, 2019 5:23 pm

Re: https commands with basic authentication

Post by tlex »

Nope. that still prompts the usr/pwd pop-up when you use https with stunnel :(
Attachments
https_command_cred.jpg
https_command_cred.jpg (36.74 KiB) Viewed 54309 times
ydnapluk
Posts: 1
Joined: Fri Dec 06, 2019 1:27 am

Re: https commands with basic authentication

Post by ydnapluk »

I'm having the same issue - can anyone help?
DarkStar
Posts: 3
Joined: Mon Sep 02, 2019 4:06 pm

Re: https commands with basic authentication

Post by DarkStar »

To my knowledge none of the current browsers support basic authentication. In each case the browser strips out the username/password before attempting to set up the connection. I've tested Safari (IOS & OXS), Edge (both new and old), FireFox and Chrome. IN short using a typical browser to test basic authentication will not work.
ben
Posts: 5
Joined: Fri Nov 22, 2019 3:49 pm

Re: https commands with basic authentication

Post by ben »

uncheck the box "Use secure session keys..."
to log in its:
http://IP-Adress/admin?user=yourusernam ... Z&preset=1

it works for me, hope for you too;D
HeneryH
Posts: 678
Joined: Thu Jul 18, 2019 2:50 pm

Re: https commands with basic authentication

Post by HeneryH »

ben wrote: Fri May 08, 2020 3:18 pm uncheck the box "Use secure session keys..."
to log in its:
http://IP-Adress/admin?user=yourusernam ... Z&preset=1

it works for me, hope for you too;D
I suggested the same but these reports say that doesn't work. I don't have BI5 so maybe that is a difference.
tinnov
Posts: 1
Joined: Sun Jul 19, 2020 8:58 am

Re: https commands with basic authentication

Post by tinnov »

I ran into issues with this as well, and after some tinkering I figured out my problem... I was trying to use 'localhost' or '127.0.0.1' as the address. Neither works.

You've got to use your PC's adapter IP address.
Post Reply