Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update troubleshooting.md #1215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/general/administration/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Comment on lines +172 to +173
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please upload the images to the repo instead of imgur. You can look at other images in the repo on how to do that.


## Fix Admin User Permissions

If the permissions for your admin account break, you can restore them using simple SQL queries.
Expand Down