| Summary: | [RFE] Allow specifying the LDAP filter | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | nicolas |
| Component: | AAA | Assignee: | Martin Perina <mperina> |
| Status: | CLOSED DEFERRED | QA Contact: | Lukas Svaty <lsvaty> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 4.0.2 | CC: | bugs, lsvaty, mperina, omachace |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | Flags: | mperina:
ovirt-future?
rule-engine: planning_ack? rule-engine: devel_ack? rule-engine: testing_ack? |
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-04-01 14:46:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
nicolas
2016-08-22 15:43:27 UTC
You can overcome this with little aaa-ldap hack.
Add following lines into your '/etc/ovirt-engine/aaa/profile.properties' file:
sequence.simple-query-principals.005.description = modify filter to search only by uid
sequence.simple-query-principals.005.type = regex
sequence.simple-query-principals.005.regex.value = ${seq:filter}
sequence.simple-query-principals.005.regex.flags = a
sequence.simple-query-principals.005.regex.pattern = \\(givenName=[^)]*\\)|\\(sn=[^)]*\\)|\\(displayName=[^)]*\\)
sequence.simple-query-principals.005.regex.replacement.filter =
It will replaces occurances of givenName, sn and displayName and it's values by empty string. So only uid persist in filter.
I am setting low prio/severity as we have workaround for aaa-ldap, and I don't see any reason to have it for aaa-jdbc. Also changing component accordingly. Confirmed the workaround works, by now it's enough for us. Thanks. If this is properly documented, we can close this RFE. Please verify it is. Ondro, could you please add workaround from Comment 1 into http://www.ovirt.org/develop/release-management/features/infra/aaa_faq/ We didn't get to this bug for more than 2 years, and it's not being considered for the upcoming 4.4. It's unlikely that it will ever be addressed so I'm suggesting to close it. If you feel this needs to be addressed and want to work on it please remove cond nack and target accordingly. ok, closing. Please reopen if still relevant/you want to work on it. ok, closing. Please reopen if still relevant/you want to work on it. |