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

Allow to setup LDAP auth #339

Closed
wants to merge 4 commits into from
Closed

Conversation

mescanef
Copy link

Be able to setup LDAP auth on Jenkins master. This resulted in splitting
set security method into three methods for setting:

ldap auth
password auth
unsecured
Also give choice to turn on the slave to master feature during
deployment.

mescanef and others added 2 commits July 13, 2015 13:35
Be able to setup LDAP auth on Jenkins master. This resulted in splitting
set security method into three methods for setting:

- ldap auth
- password auth
- unsecured

Also give a chance to turn on the slave to master feature during
deployment.
$jenkins_s2m_acl = false,
$jenkins_ssh_private_key_contents = '',
$jenkins_ssh_public_key_contents = '',
$ldap_access_group = '',
Copy link

Choose a reason for hiding this comment

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

This is a huge amount of parameters for the jenkins::security class. I suggest changing this to take a hash called ldap_config. You could even set the defaults in a container class like jenkins::ldap::config or something like that.

@jenkinsadmin
Copy link

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

Moved ldap params into jenkins::ldap::config.
Moved ssh private/public keys into cli_helper, since
its related to the cli invocation.
@jhoblitt
Copy link
Member

@mescanef My work to support configuring the security realm and authentication strategy via native types was merged in #382. Do you think this work could be merge with the groovy get_security_realm() / get_authorization_strategy() methods on master and the providers for jenkins_security_realm and jenkins_authorization_strategy? @daenney is also interested in configuring ldap.

@jhoblitt jhoblitt added needs-feedback Further information is requested needs-rebase labels Oct 10, 2015
@jhoblitt jhoblitt added the enhancement New feature or request label Jan 20, 2016
@rhoml
Copy link
Member

rhoml commented May 18, 2016

Any news on this PR?

@jhoblitt
Copy link
Member

@rhoml At a minimum it needs to be rebased on the current master and I think it should be converted to passing json instead of CLI args. I think it would be less work to add this to the jenkins_security_realm/jenkins_authorization_strategy types.

@bastelfreak
Copy link
Member

Hello everybody. I'm going to close this PR due to inactivity. Please reopen and rebase the PR if anybody is still interested in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-feedback Further information is requested needs-rebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants