NIFI-5839 Applied identity mapping to user lookups and group members#3602
NIFI-5839 Applied identity mapping to user lookups and group members#3602dtmo wants to merge 1 commit intoapache:support/nifi-1.9.xfrom
Conversation
* The members of a group in LDAP do not have to be case identical to the actual user's DNs and so need to be transformed first. * Added a group with member DNs that do not match the capitalisation of the user DNs.
|
@dtmo Thanks for creating this PR! I recently ran into the same problem and was going to post a PR (it's not quite ready yet) with a slightly different solution when I came across this. I took a slightly different approach and wanted to discuss here. While we could leverage the user/group mappings to transform the values for this use case within the I would like to suggest that we do not use the mappings to transform the values to support this scenario. If a user did not care to map the user identities or group names, but the did have this problem, they would need to create mapping entries in I should have a PR ready for consideration soon. When I do, I'll link it here. Thanks. |
|
@mcgilman You're quite right. While my change to the application of transformations does provide a fix for that specific problem, in reality there shouldn't be any need for transformations in the first place. In my case I made use of transformations as a work around for the situation where user certificate DNs, LDAP user DNs and LDAP group unique member DNs were all considered equal based on LDAP's matching rules, but not based on the Java String equality checks that NiFi performs. |
|
@dtmo I just posted my PR [1] which introduces a new flag that allows the user to configure whether NiFi should use case sensitivity when making group membership decisions. I want to retain the current approach with regards to how often the directory server would be queried so I left the basic structure intact and just ensured that membership decisions considered case conditionally. I was not aware that we could consider querying the directory server for which matching rules were enabled. Is this something that we could reliably depend on? I'm tempted to leave the configuration on the NiFi side for cases when a directory server implements something slightly differently from another implementation. [1] #3657 |
|
We're marking this PR as stale due to lack of updates in the past few months. If after another couple of weeks the stale label has not been removed this PR will be closed. This stale marker and eventual auto close does not indicate a judgement of the PR just lack of reviewer bandwidth and helps us keep the PR queue more manageable. If you would like this PR re-opened you can do so and a committer can remove the stale tag. Or you can open a new PR. Try to help review other PRs to increase PR review bandwidth which in turn helps yours. |
actual user's DNs and so need to be transformed first.
the user DNs.
Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
Applies configured transformations to LDAP group members and the user DN look up keys to cater for group members with different capitalisation than the user DN.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically
master)?Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not
squashor use--forcewhen pushing to allow for clean monitoring of changes.For code changes:
mvn -Pcontrib-check clean installat the rootnififolder?LICENSEfile, including the mainLICENSEfile undernifi-assembly?NOTICEfile, including the mainNOTICEfile found undernifi-assembly?.displayNamein addition to .name (programmatic access) for each of the new properties?For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.