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

Error LDAP Windows server 2016 #9

Closed
leyenda97 opened this issue May 27, 2019 · 6 comments · Fixed by #86
Closed

Error LDAP Windows server 2016 #9

leyenda97 opened this issue May 27, 2019 · 6 comments · Fixed by #86
Assignees
Labels
bug This PR or Issue describes or fixes something that isn't working

Comments

@leyenda97
Copy link

Hi, I have problems using this plugin. My domain controller is a Windows Server 2016. The error it gives me in the logs is as follows. Jellyfin is exposed through a reverse proxy. I do not know if that would have something to do with it? I have a very similar configuration in nextcloud and it works.
It is also possible that I have something wrong configured.
Very thanks.
[2019-05-27 10:51:44.636 +00:00] [INF] ExecuteQueuedTasks [2019-05-27 10:52:26.054 +00:00] [ERR] Error authenticating with provider "LDAP-Authentication" LdapReferralException: Search result reference received, and referral following is off (10) Referral LdapReferralException: Referral: ldap://ForestDnsZones.castejon.lo/DC=ForestDnsZones,DC=castejon,DC=lo [2019-05-27 10:52:26.059 +00:00] [ERR] Error authenticating with provider "Default" System.Exception: Invalid username or password at Emby.Server.Implementations.Library.DefaultAuthenticationProvider.Authenticate(String username, String password, User resolvedUser) at Emby.Server.Implementations.Library.UserManager.AuthenticateWithProvider(IAuthenticationProvider provider, String username, String password, User resolvedUser) [2019-05-27 10:52:26.063 +00:00] [ERR] Invalid username or password entered.

@kutyla-philipp
Copy link

Can confirm, same for me.

@LogicalPhallacy
Copy link
Contributor

So I found some info on your error here: https://stackoverflow.com/questions/46052873/a-list-of-all-users-ldap-referral-error-ldapreferralexception

I've implemented the proposed fix, can someone test with a build from my repo:
https://github.com/LogicalPhallacy/jellyfin-plugin-ldapauth

@joshuaboniface
Copy link
Member

@LogicalPhallacy It looks like this breaks the existing OpenSSL compat, at least with my settings:

Aug 27 18:26:07 jf1.i.net jellyfin[30262]: [18:26:07] [ERR] Failed to Connect or Bind to server
Aug 27 18:26:07 jf1.i.net jellyfin[30262]: LdapException: Protocol Error (2) Protocol Error
Aug 27 18:26:07 jf1.i.net jellyfin[30262]: LdapException: Server Message: unsupported extended operation
Aug 27 18:26:07 jf1.i.net jellyfin[30262]: LdapException: Matched DN:

@HudsonProdigy
Copy link

Was this ever resolved? I am having same issue configuring ldap plugin with windows server 2016 AD

@BenLangers
Copy link

I have the same issue.
Oddly, I have been able to log in with my own AD user account, and a new user I just created, but no other users seem to be able to log on. They get the "Connection Failure" pop-up.
Another strange thing, the log looks like this:

[ERR] Error processing request. URL: "http://media.atticstudios.be/Users/authenticatebyname"
LdapReferralException: Search result reference received, and referral following is off (10) Referral
LdapReferralException: Referral: ldap://###.atticstudios.be/DC=###,DC=atticstudios,DC=be
"###" being a subdomain of atticstudios.be. The tested user account or groups used to filter the logins are not in this subdomain. Not sure why this would be referred to? It is not mentioned in the plugin configuration anywhere (but is a part of AD of course).
The new user account that is able to log on is identical to some of the other ones that do not word. Same OU, same groups. There are no non-alphanumeric characters in the user names.
Anything else I can try or test?

@shanehughes1990
Copy link

shanehughes1990 commented Aug 5, 2020

For anyone who came across this issue while setting jellyfin LDAP with AD
Docker host - ubuntu 20 server
Jellyfin docker container - hotio/jellyfin
Jellyfin version - 10.6.2
Ldap plugin version - 9.0.0.0
Windows server 2019
Active directory 2016 forest level

I Have an OU called groups that houses all my security groups
All users are placed in the default CN users
(The jellyfin admin chunk doesn't appear to work I can live with that)
This is my working config with sensative information redacted

<?xml version="1.0"?>
<PluginConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <LdapServer>192.168.0.254</LdapServer> # This is the AD IP (I have no docker DNS to forward AD DNS to docker containers)
  <LdapBaseDn>dc=contoso,dc=com</LdapBaseDn>
  <LdapPort>389</LdapPort>
  <LdapSearchAttributes>sAMAccountName, userPrincipalName, mail, displayName</LdapSearchAttributes>
  <LdapUsernameAttribute>displayName</LdapUsernameAttribute>
  <LdapSearchFilter>(memberOf=CN=JellyfinUsers,OU=Groups,DC=contoso,DC=com)</LdapSearchFilter>
  <LdapAdminFilter>(memberOf=CN=JellyfinAdmins,OU=Groups,DC=contoso,DC=com)</LdapAdminFilter>
  <LdapBindUser>CN=bind,CN=Users,DC=contoso,DC=com</LdapBindUser>
  <LdapBindPassword>YOURBINDACCOUNTPASSWORD</LdapBindPassword>
  <CreateUsersFromLdap>true</CreateUsersFromLdap>
  <UseSsl>false</UseSsl>
  <UseStartTls>false</UseStartTls>
  <SkipSslVerify>false</SkipSslVerify>
</PluginConfiguration>

@h1dden-da3m0n h1dden-da3m0n added the bug This PR or Issue describes or fixes something that isn't working label Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This PR or Issue describes or fixes something that isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants