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

Add syncLdapUser param to security_config #511

Merged
merged 16 commits into from
Oct 11, 2023

Conversation

nosrio
Copy link
Contributor

@nosrio nosrio commented Sep 18, 2023

Pull Request (PR) description

Add rundeck.security.syncLdapUser to rundeck_config.groovy file. This flag enable using LDAP user attributes to update the email, first name, and last name properties of your Rundeck users.
Add ldap user attributes used to source the email, and name properties.
Remove un used templates.

ref: https://docs.rundeck.com/docs/administration/security/authentication.html#ldap

This Pull Request (PR) fixes the following issues

Fixes #510
Fixes #416

@nosrio nosrio changed the title Remove unused erb. Add syncLdapUser param to security_config Add syncLdapUser param to security_config Sep 18, 2023
@nosrio
Copy link
Contributor Author

nosrio commented Sep 18, 2023

Adding some tests.

@nosrio
Copy link
Contributor Author

nosrio commented Sep 19, 2023

@bastelfreak I can't seems to find why some tests are failling, could you give me a hand?

@kenyon
Copy link
Member

kenyon commented Sep 20, 2023

Failure/Error: apply_manifest(pp, catch_changes: true)

This is the second run, to check for idempotency. Something is changing during that run.

@nosrio
Copy link
Contributor Author

nosrio commented Sep 20, 2023

I believe that these checks started failling when #502 was merged. In fact, that PR do not have all checks passed.

I am triying to debug why the second run is not idempotent but it is not related to the changes on thisI think.

@nosrio
Copy link
Contributor Author

nosrio commented Sep 28, 2023

@bastelfreak can you help me to solve this errors?

@nosrio
Copy link
Contributor Author

nosrio commented Oct 10, 2023

@bastelfreak please review

templates/_auth_ad.epp Outdated Show resolved Hide resolved
Copy link
Member

@bastelfreak bastelfreak left a comment

Choose a reason for hiding this comment

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

please take a look at the inline comments i did and squash your commits together.

add test

fix test identation

Add ldap user attributes to source the email and name properties

fix lint

fix rubocop

fix typo

fix add missing $

fix tests

fix template logic

try to fix tests

Remove mvcc to fix tests

undo unnecesary change

Resolve comments
@nosrio
Copy link
Contributor Author

nosrio commented Oct 10, 2023

Done @bastelfreak :)

@bastelfreak bastelfreak added the bug Something isn't working label Oct 11, 2023
@bastelfreak bastelfreak merged commit 9ddfea2 into voxpupuli:master Oct 11, 2023
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing rundeck.security.syncLdapUser config setting
3 participants