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

Multi ldpa strategies Issue #2554 #5116

Merged
merged 1 commit into from
Mar 26, 2022
Merged

Multi ldpa strategies Issue #2554 #5116

merged 1 commit into from
Mar 26, 2022

Conversation

frantic91
Copy link
Contributor

I fixed it. The main problem was in file:

server/modules/authentication/ldap/authentication.js

Every LDAP strategy has the same name in the strategy list (look at line 13) so only the last added one will work.

How I fixed it:

  1. Open file server/core/auth.js
  2. Add stg.config.key = stg.key; after line 84.
  3. Open file server/modules/authentication/ldap/authentication.js
  4. Replace line 13 with passport.use(conf.key,
  5. Open file server/models/users.js
  6. Replace line 311 with WIKI.auth.passport.authenticate(selStrategy.key, {

@NGPixel NGPixel merged commit 1f489a3 into requarks:main Mar 26, 2022
@yhuaxing
Copy link

yhuaxing commented Jan 9, 2023

Item 6 should not be modified. If modified, other user-defined login methods will be affected.

jionggyu pushed a commit to jionggyu/wiki-2.5.302-patch that referenced this pull request Jul 9, 2024
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.

3 participants