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

fix re-usage of SSO-based accounts for LDAP login #7407

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sumpfralle
Copy link

In pull request #6903 the SSO_LDAP_USE_SAME_UID field was introduced.

But this change only took care for the following order of login actitivies:

  1. login via LDAP -> account is created
  2. login via SSO -> account is re-used

The opposite order of login activities (first SSO, later LDAP) failed with the following error message:

[ERROR] seahub.base.accounts:1004 authenticate ldap user [email protected] not found.

The introduction of SSO_LDAP_USE_SAME_UID lacked the fallback procedure from LDAP to SSO.
This commit fixes that issue.

In pull request haiwen#6903 the SSO_LDAP_USE_SAME_UID field was introduced.

But this change only took care for the following order of login actitivies:

1. login via LDAP -> account is created
2. login via SSO -> account is re-used

The opposite order of login activities (first SSO, later LDAP) failed
with the following error message:

> [ERROR] seahub.base.accounts:1004 authenticate ldap user [email protected] not found.

The introduction of SSO_LDAP_USE_SAME_UID lacked the fallback procedure
from LDAP to SSO.
This commit fixes that issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant