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

mimic: docs: fix rgw_ldap_dnattr username token #30099

Merged
merged 1 commit into from Oct 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions doc/radosgw/ldap-auth.rst
Expand Up @@ -64,7 +64,8 @@ authentication:
more specific Organizational Unit (OU).
- ``rgw_ldap_dnattr``: The attribute being used in the constructed search
filter to match a username. Depending on your Directory Information Tree
(DIT) this would probably be ``uid`` or ``cn``.
(DIT) this would probably be ``uid`` or ``cn``. The generated filter string
will be, e.g., ``cn=some_username``.
- ``rgw_ldap_searchfilter``: If not specified, the Ceph Object Gateway
automatically constructs the search filter with the ``rgw_ldap_dnattr``
setting. Use this parameter to narrow the list of allowed users in very
Expand Down Expand Up @@ -102,14 +103,14 @@ password.
Specifying a complete filter
----------------------------

A complete filter must contain a ``USERNAME`` token which will be substituted
A complete filter must contain a ``@USERNAME@`` token which will be substituted
with the user name during the authentication attempt. The ``rgw_ldap_dnattr``
parameter is not used anymore in this case. For example, to limit valid users
to a specific group, use the following filter:

::

"(&(uid=USERNAME)(memberOf=cn=ceph-users,ou=groups,dc=mycompany,dc=com))"
"(&(uid=@USERNAME@)(memberOf=cn=ceph-users,ou=groups,dc=mycompany,dc=com))"

.. note:: Using the ``memberOf`` attribute in LDAP searches requires server side
support from you specific LDAP server implementation.
Expand Down