• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Create local user from CLI/SSH?

     
    • 0 Vote(s) - 0 Average

    Create local user from CLI/SSH?

    surfrock66
    Offline

    Junior Member

    Posts: 3
    Threads: 3
    Joined: 2023 Jun
    Reputation: 0
    Country:United States
    #1
    2024-05-20, 04:50 PM
    I have had an install of Jellyfin that has been working great for several years, and I use LDAP authentication.  My LDAP user's name overlaps with the local user's name I made when setting it up, and I have no other local user.  Following a recent update, i'm getting the following in the logs when trying to log in:

    Code:
    User "surfrock66" was found with invalid/missing Authentication Provider "Jellyfin.Plugin.LDAP_Auth.LdapAuthenticationProviderPlugin". Assigning user to InvalidAuthProvider until this is corrected

    Seems pretty clear cut and well documented; the LDAP plugin needs an update to a compatible version.  In theory that will happen automatically, but at the moment, I'm effectively locked out.  I probably should have left a local user in the system, but I didn't and I can't disable the plugin as I can't get to the web UI.

    Am I just locked out until the LDAP plugin updates?  Or is there a way to create a local user from a shell?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-05-24, 01:08 PM
    Sorry. I missed this post. You can reenable the setup wizard to create a local user. Though I think the LDAP plugin has been updated for 10.9 by now.

    /etc/jellyfin/system.xml

    Change "IsStartupWizardComplete" from true to false and restart jellyfin.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Nutellaeis
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: 2024 Jun
    Reputation: 0
    Country:Germany
    #3
    2024-06-05, 11:59 AM
    I am running into the same problem. Your suggested fix does not seem to work. I can restart the setup wizard but even then I get a

    Code:
    [WRN] [20] Jellyfin.Server.Implementations.Users.UserManager: User localAdmin was found with invalid/missing Authentication Provider Jellyfin.Plugin.LDAP_Auth.LdapAuthenticationProviderPlugin. Assigning user to InvalidAuthProvider until this is corrected

    [13:51:34] [INF] [20] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for localAdmin has been denied (IP: 192.168.178.138).

    [13:51:34] [ERR] [20] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: Invalid username or password entered. URL POST /Users/authenticatebyname.

    localAdmin being the newly created user (I am sure this one does not exist in LDAP). Password was copied directly from a file several times. I highly doubt I misstyped.
    Any Help appreciated.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-06-05, 02:07 PM
    I'm not familiar with how the LDAP plugin integrates with Jellyfin. Does it not allow local accounts to be used? You may need to remove the plugin manually and then redo the setup wizard process.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Nutellaeis
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: 2024 Jun
    Reputation: 0
    Country:Germany
    #5
    2024-06-05, 02:59 PM
    I do not really know how it integrates. Up until now it just worked. Can you tell me how to manually remove a plugin? Otherwise I will just reinstall Jellyfin. It was not that complicated of a setup thankfully.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-06-05, 03:40 PM
    https://jellyfin.org/docs/general/server...ns/#manual

    Go to the plugins directory, usually /var/lib/jellyfin/plugins, and delete the folder for the plugin. And then in the configurations directory in that folder, move (don't delete) the XML configuration file.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode