Skip to content

[Ldap] Feature/force lowercase attributes #36432

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

Closed
wants to merge 3 commits into from

Conversation

elvis2
Copy link

@elvis2 elvis2 commented Apr 12, 2020

…e all lowercase, to force case insensitivity and enforce a standard (if desired) for the consumer software.

Q A
Branch? 4.4 (I'll create another PR for 5.0)
Bug fix? no
New feature? no, Changelog updated
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

Why? Companies have different AD setups, some force certain naming conventions, that developers may not know what and why. Coding around these pseudo standards introduces complex code that isn't necessary. Allowing the SE to force all lowercase attributes will ease their utilization of symfony/ldap and overall (I think) have better quality code.

Elvis McNeely added 2 commits April 12, 2020 01:34
…e all lowercase, to reduce overall confusion and enforce a standard (if desired).
@nicolas-grekas nicolas-grekas added this to the next milestone Apr 12, 2020
@nicolas-grekas nicolas-grekas changed the title Feature/force lowercase attributes [Ldap] Feature/force lowercase attributes Apr 12, 2020
Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

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

Please add a testcase

@@ -18,11 +18,16 @@ class Entry
{
private $dn;
private $attributes;
private $force_lowercase_attributes;
Copy link
Contributor

Choose a reason for hiding this comment

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

Variables should be named in camelCase

Copy link
Author

Choose a reason for hiding this comment

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

Ok, I'll change it. I'm surprised the PSR tests didn't pick that up.

Copy link
Member

Choose a reason for hiding this comment

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

friendly ping

@fabpot
Copy link
Member

fabpot commented Jul 31, 2020

@elvis2 Any news?

@fabpot
Copy link
Member

fabpot commented Sep 5, 2020

Closing as there is no more activity. Feel free to reopen when you have time.

@derrabus
Copy link
Member

New PR: #39037

fabpot added a commit that referenced this pull request Nov 27, 2020
…(karlshea)

This PR was merged into the 5.3-dev branch.

Discussion
----------

[Ldap] Ldap Entry case-sensitive attribute key option

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

See PR #36432

Commits
-------

d3b9440 [Ldap] Ldap Entry case-sensitive attribute key option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants