Skip to content

Commit f08eab2

Browse files
authored
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.
1 parent f70883a commit f08eab2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

security/ldap.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ use the ``ldap`` user provider.
173173
provider is used. However, the LDAP component itself does not provide
174174
any escaping yet. Thus, it's your responsibility to prevent LDAP injection
175175
attacks when using the component directly.
176+
177+
.. caution::
178+
179+
It's important to note that the user you configure for the user provider
180+
is only going to be retrieving data. It is a statically defined user and
181+
password. If you wish to keep your password out of version control, you
182+
may want to configure the password as a parameter.
183+
184+
If your ldap server allows you to retrieve information anonymously, you
185+
can leave the ``search_dn`` and ``search_password`` as ``null``.
176186

177187
The ``ldap`` user provider supports many different configuration options:
178188

0 commit comments

Comments
 (0)