Merge branch 'ampache-auto-disable-salt-auth' into 'master'
Auto-disable salt_auth for ampache See merge request sublime-music/sublime-music!70
This commit is contained in:
@@ -168,10 +168,11 @@ class SubsonicAdapter(Adapter):
|
||||
"Double check the server address."
|
||||
)
|
||||
except ServerError as e:
|
||||
if e.status_code in (10, 41) and config_store["salt_auth"]:
|
||||
if e.status_code in (10, 40, 41) and config_store["salt_auth"]:
|
||||
# status code 10: if salt auth is not enabled, server will
|
||||
# return error server error with status_code 10 since it'll
|
||||
# interpret it as a missing (password) parameter
|
||||
# status code 41: returned by ampache
|
||||
# status code 41: as per subsonic api docs, description of
|
||||
# status_code 41 is "Token authentication not supported for
|
||||
# LDAP users." so fall back to password auth
|
||||
|
Reference in New Issue
Block a user