Yealink Forums
Remote Phonebook provision tXXp phones HTTP 401 error - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: Video Collaboration (/forumdisplay.php?fid=5)
+--- Forum: VP530 (/forumdisplay.php?fid=25)
+--- Thread: Remote Phonebook provision tXXp phones HTTP 401 error (/showthread.php?tid=4294)



Remote Phonebook provision tXXp phones HTTP 401 error - morvai88 - 08-18-2015 06:48 PM

Hello,

When I tried to download remote phonebook from directory with htaccess. The phone try with empty http username (don't authenticate), and return with 401 HTTP error.

Here's the apache log:
x.x.x.x - - [18/Aug/2015:10:26:27 +0000] "GET /dir_to_phonebook/phonebookgenerator.php?mac=00156529fbee HTTP/1.1" 401 653 "-" "Yealink SIP-T26P 6.73.0.50 00:15:65:29:fb:ee"


x.x.x.x - "" [18/Aug/2015:10:26:27 +0000] "GET /dir_to_phonebook/phonebookgenerator.php?mac=00156529fbee HTTP/1.1" 401 652 "-" "Yealink SIP-T26P 6.73.0.50 00:15:65:29:fb:ee"

apache (Server version: Apache/2.4.7 (Ubuntu)) config:

<Directory dir_to_phonebook>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require env let_me_in
</Directory>

htaccess:
AuthType Basic
AuthName "For Authorized Personal Only"
AuthUserFile /etc/apache2/.htpasswd
Require user user_to_authenticate


RE: Remote Phonebook provision tXXp phones HTTP 401 error - Yealink_Michael - 08-19-2015 05:53 AM

hi

which phone book you are using ? is it XML phone book ?

if yes and the http server need authorized , then you need to fill in the whole URL with the user name and password completely in the remote phone book URL.

the format should be like below :

http://username:passsword@server address:serverport/remote phone book.xml


RE: Remote Phonebook provision tXXp phones HTTP 401 error - morvai88 - 09-11-2015 09:49 PM

thanks for reply!

I think it's not so secure, becouse everyone can read the user and the password from the phone web config page ("user" account see the phonebook settings).

Is this the only way to authenticate?