kbr / fritzconnection

Python-Tool to communicate with the AVM Fritz!Box by the TR-064 protocol and the AHA-HTTP-Interface
MIT License
304 stars 59 forks source link

Fritzbox default username has been removed in Fritz!OS 7.25 #95

Closed ploink closed 2 years ago

ploink commented 3 years ago

Last night I updated my fritzbox 7590 to Fritz!OS 7.25 and noticed my fritzconnection script broke. From the traceback:

fritzconnection.core.exceptions.FritzConnectionException: Unable to perform operation. 401 Unauthorized (ERR_NONE)401 UnauthorizedERR_NONEWebserver Tue, 20 Apr 2021 06:06:07 GMT

It appears that AVM has replaced the default username. It is no longer "dsl-config" but something like "fritz1234" where the 1234 is probably a random number. This means there is no default username and it must be specified:

conn = FritzConnection(user="fritz1234",password="abcd1234")

or:

fritzconnection -u fritz1234 -p abcd1234

One can find the username in the web interface at "System->FRITZ!box users".

Edit: another solution would be to recreate the dsl-config user in the fritzbox.

kbr commented 3 years ago

AVM has announced this change: https://avm.de/service/schnittstellen/. Since OS 7.25 every user can set a username (as before) or gets an individual default-username according to the mentioned pattern. So fritzconnection is not broken, but starting from OS 7.25 the username is no longer optional.

kbr commented 3 years ago

With version 1.5 the username ist optional again for FritzOS >= 7.24 (using the last logged in user in this case).

kbr commented 2 years ago

Since 1.5.0 the new default usernames are handled according the AVM guideline.