From 1ba2e0a1246cb58785665dfa3954f83ee883c285 Mon Sep 17 00:00:00 2001 From: Jam <1347620+JamsRepos@users.noreply.github.com> Date: Fri, 26 Apr 2024 16:49:30 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A9=B9=20Fixed=20error=20which=20o?= =?UTF-8?q?ccured=20when=20using=20LDAP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wizarr-backend/wizarr_backend/helpers/emby.py | 5 ++++- apps/wizarr-backend/wizarr_backend/helpers/jellyfin.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/wizarr-backend/wizarr_backend/helpers/emby.py b/apps/wizarr-backend/wizarr_backend/helpers/emby.py index 03cc2a45..0d7a7f90 100644 --- a/apps/wizarr-backend/wizarr_backend/helpers/emby.py +++ b/apps/wizarr-backend/wizarr_backend/helpers/emby.py @@ -265,7 +265,10 @@ def invite_emby_user(username: str, password: str, code: str, server_api_key: Op post_emby(api_path=f"/Users/{user_response['Id']}/Password", json={"NewPw": str(password)}, server_api_key=server_api_key, server_url=server_url) # Create policy object - new_policy = { "EnableAllFolders": True } + new_policy = { + "EnableAllFolders": True, + "AuthenticationProviderId": "Emby.Server.Implementations.Library.DefaultAuthenticationProvider", + } # Set library options if sections: diff --git a/apps/wizarr-backend/wizarr_backend/helpers/jellyfin.py b/apps/wizarr-backend/wizarr_backend/helpers/jellyfin.py index 08cca015..c049f24c 100644 --- a/apps/wizarr-backend/wizarr_backend/helpers/jellyfin.py +++ b/apps/wizarr-backend/wizarr_backend/helpers/jellyfin.py @@ -260,7 +260,10 @@ def invite_jellyfin_user(username: str, password: str, code: str, server_api_key user_response = post_jellyfin(api_path="/Users/New", json=new_user, server_api_key=server_api_key, server_url=server_url) # Create policy object - new_policy = {"EnableAllFolders": True} + new_policy = { + "EnableAllFolders": True, + "AuthenticationProviderId": "Jellyfin.Server.Implementations.Users.DefaultAuthenticationProvider", + } # Set library options if sections: