From efdf9a3117196390a59cfba6a7745958db13a46b Mon Sep 17 00:00:00 2001 From: TJ <55514551+itzteajay-glitch@users.noreply.github.com> Date: Fri, 29 Nov 2024 23:11:26 -0800 Subject: [PATCH] Update troubleshooting.md Included a use case where the AuthenticationProviderID is pointing to the ldap plugin but the ldap service isnt available. This results in the account being inaccessible without updating the db. --- docs/general/administration/troubleshooting.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/general/administration/troubleshooting.md b/docs/general/administration/troubleshooting.md index 69c821d68..d383327c8 100644 --- a/docs/general/administration/troubleshooting.md +++ b/docs/general/administration/troubleshooting.md @@ -158,6 +158,20 @@ UPDATE Users SET InvalidLoginAttemptCount = 0 WHERE Username = 'LockedUserName'; UPDATE Permissions SET Value = 0 WHERE Kind = 2 AND UserId IN (SELECT Id FROM Users WHERE Username = 'LockedUserName'); ``` +## Admin Account inaccessible after ldap misconfiguration + +Using the ldap plugin can be extreamly useful when streamlining authentication across multiple apps but in some cases it can leave your admin accounts inacciesslbe. If this occurs the simplest way to restore them is to take a copy of the jellyfin.db and open it in sqlite browser. Select `browse data` table: `users` and there you will see your list of users. + +For the following columns update the appropriate entries by removing the ldap provider and inserting the jellyfin provider + +```shell +AuthenticationProviderId: Jellyfin.Server.Implementations.Users.DefaultAuthenticationProvider +PasswordResetProviderId: Jellyfin.Server.Implementations.Users.DefaultPasswordResetProvider +``` + +![Password ID](https://imgur.com/sbV3ppO) +![Password Reset](https://imgur.com/XTtP3ia) + ## Fix Admin User Permissions If the permissions for your admin account break, you can restore them using simple SQL queries.