jellyfin-plugin-ldapauth icon indicating copy to clipboard operation
jellyfin-plugin-ldapauth copied to clipboard

[BUG] LDAP authentification not working properly

Open technics3 opened this issue 4 years ago • 3 comments

System

OS : Debian 10 Jellyfin version : 10.5.0 LDAP plugin version : 6.0.0 I'm using OpenLDAP default Debian package.

Description

Field filled as follow :

  • LDAP server : 192.168.0.xx
  • LDAP base DN : ou=People,dc=domain,dc=tld
  • LDAP port : 389
  • LDAP attributes : uid
  • LDAP Name attribute : uid
  • LDAP user Filter : (objectClass=inetOrgPerson)
  • LDAP Admin Filter : (enabledService=JellyfinAdministrator)
  • LDAP Bind User : cn=user,dc=domain,dc=tld
  • LDAP Bind User Password : xxxxxxxxxx

This setup is working when my user's RDN identifier is "cn" (cn=Name LastName,ou=People,dc=domain,dc=tld), but it is not working when i use "uid" (uid=pseudo,ou=People,dc=le43,dc=eu) as RDN identifier. I really don't know if I'm doing something wrong, please tell me if I am.

The only error message i'm getting is : [2020-03-23 17:54:36.822 +01:00] [ERR] Error processing request: "[192.168.0.254] Invalid username or password entered."

Thanks a lot.

technics3 avatar Mar 23 '20 16:03 technics3

I have the same issue. However for me, it's not working at all. With any configuration, nothing works.

Zegorax avatar Mar 26 '20 21:03 Zegorax

I have the same issue. However for me, it's not working at all. With any configuration, nothing works.

Checks out https://github.com/jellyfin/jellyfin/issues/2654

technics3 avatar Mar 27 '20 11:03 technics3

My Log shows the following. Is this know and is there a solution for this as well? The users are created, which I can verify due to the image which is stored in the LDAP entry. The only thing is, that I cannot login when I set it to authenticate via LDAP.

[2020-05-07 09:22:32.693 +02:00] [ERR] Error processing request. URL: "http://example.org/Users/authenticatebyname"
System.NullReferenceException: Object reference not set to an instance of an object.
   at Jellyfin.Plugin.LDAP_Auth.LdapAuthenticationProviderPlugin.Authenticate(String username, String password)
   at Emby.Server.Implementations.Library.UserManager.AuthenticateWithProvider(IAuthenticationProvider provider, String username, String password, User resolvedUser)
   at Emby.Server.Implementations.Library.UserManager.AuthenticateLocalUser(String username, String password, String hashedPassword, User user, String remoteEndPoint)
   at Emby.Server.Implementations.Library.UserManager.AuthenticateUser(String username, String password, String hashedPassword, String remoteEndPoint, Boolean isUserSession)
   at Emby.Server.Implementations.Session.SessionManager.AuthenticateNewSessionInternal(AuthenticationRequest request, Boolean enforcePassword)
   at MediaBrowser.Api.UserService.Post(AuthenticateUserByName request)
   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IRequest httpReq, HttpResponse httpRes, ILogger logger, CancellationToken cancellationToken)
   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)

twinkybot avatar May 07 '20 07:05 twinkybot