Skip to content

Fix GetRoleMappings when multiple distinguished names returned #5271

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

Merged
merged 3 commits into from
Jan 15, 2021

Conversation

stevejgordon
Copy link
Contributor

When an array of DNs is returned, the array is deserialised into a new property DistinguishedNames on FieldRuleBase and the IEnumerable<string> is added to the backing dictionary under the key "dns".

Fixes #5270

Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@stevejgordon stevejgordon merged commit c1316d3 into 7.x Jan 15, 2021
@stevejgordon stevejgordon deleted the bug/role-mapping-deserialisation branch January 15, 2021 08:06
github-actions bot pushed a commit that referenced this pull request Jan 15, 2021
* Fix deserialisation of multiple dns
* Support serialisation
@github-actions
Copy link
Contributor

The backport to master failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-master master
# Navigate to the new working tree
cd .worktrees/backport-master
# Create a new branch
git switch --create backport-5271-to-master
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick ---mainline 1 c1316d32bc749c35a5ea45f2e74553561d901bd6
# Push it to GitHub
git push --set-upstream origin backport-5271-to-master
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-master

Then, create a pull request where the base branch is master and the compare/head branch is backport-5271-to-master.

stevejgordon added a commit that referenced this pull request Jan 15, 2021
* Fix deserialisation of multiple dns
* Support serialisation
stevejgordon added a commit that referenced this pull request Jan 15, 2021
#5273)

* Fix deserialisation of multiple dns
* Support serialisation

Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
stevejgordon added a commit that referenced this pull request Jan 15, 2021
…es returned (#5274)

* Fix GetRoleMappings when multiple distinguished names returned (#5271)
* Support serialisation

* Fixup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants