Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Ldap] Allow to use ldap in a chain provider#51231

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
l-vo wants to merge1 commit intosymfony:7.4
base:7.4
Choose a base branch
Loading
froml-vo:userprovider_chain_with_ldap

Conversation

l-vo
Copy link
Contributor

@l-vol-vo commentedAug 2, 2023
edited
Loading

QA
Branch?6.4
Bug fix?no
New feature?yes
Deprecations?yes
Tickets#41892
LicenseMIT
Doc PR

This PR allows to fix that theLdapUserProvider that not work properly when used in theChainProvider.

This fix relies on two ideas:

  • TheLdapBadge is not a badge that must be resolved, it's only used to carry Ldap data
  • Allow to preventCheckLdapCredentialsListener to check against the ldap directory the password for a non-ldap user using a new#[WithLdapPassword] attribute

mvhirsch, Chris53897, and wiser reacted with thumbs up emoji
@carsonbotcarsonbot added this to the5.4 milestoneAug 2, 2023
@l-vol-voforce-pushed theuserprovider_chain_with_ldap branch 5 times, most recently fromc63cdc0 toee6ec00CompareAugust 2, 2023 15:19
@carsonbotcarsonbot changed the titleAllow to use ldap in a chain provider[Ldap] Allow to use ldap in a chain providerAug 4, 2023
@nicolas-grekasnicolas-grekas modified the milestones:5.4,6.4Aug 4, 2023
@l-vol-voforce-pushed theuserprovider_chain_with_ldap branch 2 times, most recently fromc1a964d to731dcd3CompareAugust 4, 2023 08:08
@derrabusderrabus changed the base branch from5.4 to6.4August 4, 2023 08:12
@l-vol-voforce-pushed theuserprovider_chain_with_ldap branch 3 times, most recently fromfa50a1e tocbe2c95CompareAugust 4, 2023 09:05
@l-vol-voforce-pushed theuserprovider_chain_with_ldap branch 3 times, most recently from2120810 to726db70CompareAugust 8, 2023 11:32
@l-vol-voforce-pushed theuserprovider_chain_with_ldap branch from726db70 to8dbeb60CompareAugust 8, 2023 12:51
@nicolas-grekasnicolas-grekas modified the milestones:6.4,7.1Nov 15, 2023
@chalasr
Copy link
Member

This looks like a feature

@l-vo
Copy link
ContributorAuthor

l-vo commentedApr 2, 2025

@chalasr I don't know if it's really a feature, it worked with the Guard system and the feature has seamlessly disappeared with the replacement of Guard by Authenticators (and there was no announcement that the feature was not supported with Authenticators).

Copy link
Member

@stofstof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm not sure the configuration described in the linked issue (using the same check_path forform_login andform_login_ldap) actually makes sense (and so whether this solution is valid as solution for that use case anyway)

@@ -171,6 +196,9 @@ public static function queryForDnProvider(): iterable
yield ['{user_identifier}', '{user_identifier}_test'];
}

/**
* @group legacy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why is this becoming a legacy tests ? Why would we remove this test when removing deprecated features related to this PR ?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@stofstofstof left review comments

@OskarStarkOskarStarkOskarStark left review comments

@vtsykunvtsykunvtsykun left review comments

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

8 participants
@l-vo@chalasr@nicolas-grekas@stof@OskarStark@vtsykun@derrabus@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp