Jump to content

LDAP Password History Issue


ados8000
Go to solution Solved by Luke,

Recommended Posts

ados8000

I've recently changed from FreeIPA which was completely unreliable to Windows Active Directory.

Setup works and filters out users from the "Emby" group.

I have no issues with login but something I noticed when using a testing account.

If you change the users password in AD the user can login with that password and any previous one.

Rebooted server, enable/disabled user, set authentication in Emby to default then LDAP but same issue.

If password is "Apples" and then changed to "Oranges", they can still login with "Apples" even when the LDAP server is online and the password doesn't match.

If you try a password the user has never had then it fails, if you delete the user account in Emby then the password must be correct.

Seems the plugin is keeping the password hashes in cache, not good.

Anyone able to provide insight into this?

Also, I had FreeIPA working with password writeback i.e. user can change their password in Emby and it updates but doesn't with Windows AD.
Anyone know the solution to that too? 😊

Edited by ados8000
Link to comment
Share on other sites

Hi, passwords are not remembered, so perhaps one of the following is true:

  • The user was already logged in. Normally changing a password in emby server will sign out existing sessions, but for ldap, there's no to know that you changed the password from the ldap side
  • Or perhaps the ldap server is still accepting the old password for some reason
Link to comment
Share on other sites

ados8000

Sorry but that doesn't match the findings through my testing above.

The plugin has to be the issue, test steps explained:

1. No test user in Emby, login and account created with current password Apples.

2. Log user out and change password in AD to Grapes.

3. Login works with new password Grapes but on logout and login so does Apples still.

4. Try a never used password Fruit and denied.

5. Logout and delete user from Emby.

6. Try to login With Apples and fails, try to login with Grapes and works.

It is keeping a record of hashes or some authentication until the account is new.

Edited by ados8000
Link to comment
Share on other sites

ados8000

Used the Emby web portal to sign in and out for password testing.

I created the account for testing, it was only signed in for 1 browser.

Link to comment
Share on other sites

  • 1 month later...
ados8000

Could we possibly get the plugin developers opinion on the matter.
I would like to have Emby (LDAP plugin) not allow sign-ins of past passwords as it has obvious security risks.

Edited by ados8000
Link to comment
Share on other sites

11 hours ago, ados8000 said:

Could we possibly get the plugin developers opinion on the matter.
I would like to have Emby (LDAP plugin) not allow sign-ins of past passwords as it has obvious security risks.

For the scenario you described, can you temporarily enable debug logging in the server logs section, then repeat the problem, and then attach the server log? thanks.

Link to comment
Share on other sites

ados8000

@Lukethanks for following up, I've been away for the past few weeks with email only access. I won't be able to test until end of next week.

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
ados8000

@Lukeyep, I had forgotten about this <facepalm>.

I still haven't been able to get Emby LDAP plugin to use SSL and I know my server works because I have Authentik using SSL.
Sunk a bit of time into it and I think the plugin doesn't work for new AD servers, it's still using SHA-1 for example.

Edited by ados8000
Link to comment
Share on other sites

4 hours ago, ados8000 said:

@Lukeyep, I had forgotten about this <facepalm>.

I still haven't been able to get Emby LDAP plugin to use SSL and I know my server works because I have Authentik using SSL.
Sunk a bit of time into it and I think the plugin doesn't work for new AD servers, it's still using SHA-1 for example.

Hi, what exactly is the ssl problem?

Link to comment
Share on other sites

ados8000

If I use these settings with 389 and no SSL it works.

image.png.90dfa6135bad967ab3b7da7bc8e685aa.png

Soon as I use 636 and SSL it fails (see log)
It just thinks the password is wrong but switch back to 389 without SSL and works.
It's annoying the plugin doesn't have a test button so I have to login every time to test if it works and that doesn't confirm if the connection is working.
However I have Authentik and Organizr working with the same Windows Server AD system on SSL without issue.

SSL.txt

Edited by ados8000
Link to comment
Share on other sites

Hi, can you please attach the complete Emby server log? I don’t see any ldap activity in that one. Thanks.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...