Go to file
Scott Dial 50457503f2 Expand capabilities of ldap.groupMemberPattern
Previously, the pattern supported a limited set of variables that were
either accidentially available (due to their use in other queries) or
hard-coded (e.g., `username` is a special-case that was added).
Furthermore, the documentation made reference to being able to use
variables such as `${uidNumber}` even though they are not actually
supported (since `uidNumber` is normally never queried). Under the
default RFC 2307 configuration of LDAP, the only variables available
were `displayName, `mail`, `uid`, and `username` (It's noteworthy
that `username` was added as a special-case due to the default
`groupMemberPattern` containing `${username}` even though `username`
is substitued by Gerrit and not LDAP).

This changeset removes the artificial restrictions on the attributes
used in the `groupMemberPattern`. Any variable is assumed to
originate from the account, but `username` is still overridden and
provided by Gerrit (as before). This allows more expressive patterns,
which allows us to fix an outstanding bug in group matching. Prevously,
a user whose `gidNumber` matched the group's `gidNumber` would not have
been included in the group. This changeset updates the default
`groupMemberPattern` to account for this issue by adding the additional
case of `(gidNumber=${gidNumber}`.

Bug: Issue 2054
Change-Id: Iff3a14c569a10c1ef693b672f4710fb6f2f8d9a6
2013-08-11 16:52:51 -04:00
2013-08-06 11:34:13 -07:00
2013-07-26 18:11:51 -07:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-07-05 18:55:30 -07:00
2013-05-21 20:28:56 -07:00
2013-08-06 18:37:45 -07:00
2013-07-30 17:18:33 +00:00
2008-11-14 16:59:34 -08:00
2009-03-27 20:20:10 -07:00
Description
RETIRED, Gerrit as used by OpenStack
120 MiB