SOLVED Download provisioning file got unauthorized

Status
Not open for further replies.

vuthy09

Member
Jun 12, 2023
104
5
18
40
I try to download provisioning file, but I got an error of unauthorized, log file said 401. how to fix this? anyone have any idea please help?

1721614911138.png
1721614931361.png
1721614824804.png
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,496
413
83
The provisioning is asking you to provide WWW-Basic-Auth, which is the method used by the phones. It is different from the auth. mechanism used in the Web GUI.
All you need to do is type in the http_auth_username and http_auth_password that you have used in the default or domain settings.
 
  • Like
Reactions: vuthy09

vuthy09

Member
Jun 12, 2023
104
5
18
40
The provisioning is asking you to provide WWW-Basic-Auth, which is the method used by the phones. It is different from the auth. mechanism used in the Web GUI.
All you need to do is type in the http_auth_username and http_auth_password that you have used in the default or domain settings.
it is lillte bit confusing about what u mean? I did fill my username and password for the http_auth_username and http_auth_password
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,496
413
83
Sorry, I'll re-phrase. What ever username and password to put into the http_auth_username and http_auth_password variables. All you need to do is type the same into the sign in dialog when it is presented to you. You will then be authorised to see the config files that your phone would download.
 
  • Like
Reactions: vuthy09

vuthy09

Member
Jun 12, 2023
104
5
18
40
Sorry, I'll re-phrase. What ever username and password to put into the http_auth_username and http_auth_password variables. All you need to do is type the same into the sign in dialog when it is presented to you. You will then be authorised to see the config files that your phone would download.
I try to do as you told, but I still get the same error unauthorized, it is very weird, any problem with SSL ?
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,496
413
83
OK, if you are entering the correct provision username and password, then we may need to gig a little deeper. The 401 is an unauthorised error for sure.

You can set the provision username and password either globally in default settings or an the per domain basis in domain settings. Make sure these have been entered correctly.

You may want to try this in a different browser or better still use wget on the command line, an example below:
Bash:
wget --user <provision user>  --password <provision password> http://<your domain>/app/provision/<mac>.cfg

If you are using only https, then use https you can also add the switch --no-check-certificate if you are using self signed.

Difficult to help much more without a very close look at your setup.
 

vuthy09

Member
Jun 12, 2023
104
5
18
40
OK, if you are entering the correct provision username and password, then we may need to gig a little deeper. The 401 is an unauthorised error for sure.

You can set the provision username and password either globally in default settings or an the per domain basis in domain settings. Make sure these have been entered correctly.

You may want to try this in a different browser or better still use wget on the command line, an example below:
Bash:
wget --user <provision user>  --password <provision password> http://<your domain>/app/provision/<mac>.cfg

If you are using only https, then use https you can also add the switch --no-check-certificate if you are using self signed.

Difficult to help much more without a very close look at your setup.
Hi @Adrian Fretwell, Thank you so much, it is solved now, username and password is different with duplicated on global in default settings and per domain settings, and I have disable one settings, now it is working! ;)
 
Status
Not open for further replies.