-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Clarification on search user #9307
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
Conversation
I had issues with configuration because I misunderstood the configuration for the user provider. I didn't realize that the configured user was actually a static one only used for retrieving information. I also added a clarification for the case that you are getting information anonymously, which was what my situation required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution but I'd like to ask some changes:
-
We can remove this: "If you wish to keep your password out of version control, you may want to configure the password as a parameter." because we already explain that in other articles and we want to minimize repeated Symfony Docs contents to ease maintenance.
-
I don't understand this phrase: "It's important to note that the user you configure for the user provider is only going to be retrieving data." and this other phrase: "It is a statically defined user and password. "
I wonder if we can reword this as follow:
.. tip::
If your LDAP server allows you to retrieve information anonymously, you
can leave the ``search_dn`` and ``search_password`` as ``null``.
Thanks for helping us improve Symfony Docs and I'm sorry it took us so long to merge this. |
This PR was merged into the 2.8 branch. Discussion ---------- Clarification on search user I had issues with configuration because I misunderstood the configuration for the user provider. I didn't realize that the configured user was actually a static one only used for retrieving information. I also added a clarification for the case that you are getting information anonymously, which was what my situation required. These changes are relevant for Symfony 2.8+ (2.8 being the oldest maintained version I checked) Also, I added a note on keeping the password out of VC by using a parameter, but in Symfony 4 this should be an environment variable instead. I'm not sure how I'm supposed to propose the change for this slight difference once hitting that version. Commits ------- b7a2009 Minor reword f08eab2 Clarification on search user
I had issues with configuration because I misunderstood the configuration for the user provider. I didn't realize that the configured user was actually a static one only used for retrieving information.
I also added a clarification for the case that you are getting information anonymously, which was what my situation required.
These changes are relevant for Symfony 2.8+ (2.8 being the oldest maintained version I checked)
Also, I added a note on keeping the password out of VC by using a parameter, but in Symfony 4 this should be an environment variable instead. I'm not sure how I'm supposed to propose the change for this slight difference once hitting that version.