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 support for require ldap-group #232

Closed
wants to merge 13 commits into from
Closed

add support for require ldap-group #232

wants to merge 13 commits into from

Conversation

swenske
Copy link
Contributor

@swenske swenske commented Oct 22, 2018

Pull Request (PR) description

add support for require ldap-group

@swenske
Copy link
Contributor Author

swenske commented Oct 26, 2018

Hello @wyardley !

#173 (comment)

I am interested for help , thanks

@wyardley
Copy link
Contributor

Hi --

#voxpupuli on Freenode IRC or #voxpupuli / #testing on the Puppet slack are good places to get help with tests. Normally, when reworking something like this, it's ideal to preserve attribution to the original author in the commit (ideally by cherry-picking their commit), but I don't know that it's required.

@swenske
Copy link
Contributor Author

swenske commented Oct 29, 2018

hello @wyardley ,
I finally achieve to add tests and Travis seems to be happy with it.
Is it ok for you?

Thanks,
Sebastian

Copy link
Contributor

@wyardley wyardley left a comment

Choose a reason for hiding this comment

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

This looks about right, see comments on tests, though. Ideally, leave the existing context, and add a new one, testing this specifically.

Also, your GitHub username doesn't seem to be tied to the address you're using for commits.
https://help.github.com/articles/setting-your-commit-email-address-in-git/

Can you squash the commits in your branch?
https://github.com/todotxt/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit

@@ -126,6 +126,8 @@ class { 'puppetboard::apache::conf':
ldap_bind_dn => 'cn=user,dc=puppet,dc=example,dc=com',
ldap_bind_password => 'password',
ldap_url => 'ldap://puppet.example.com',
ldap_require_group => true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi - Yes, I think this is pretty close. But we should test both cases, so one context for ldap auth, and test that the config file does not contain "Require ldap-group".

Then make another conext that sets those parameters explicitly, and test for the expected results.

@@ -88,6 +96,8 @@
Optional[String] $ldap_bind_password = undef,
Optional[String] $ldap_url = undef,
Optional[String] $ldap_bind_authoritative = undef,
Boolean $ldap_require_group = $::puppetboard::params::ldap_require_group,
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe the leading colons are not needed here anymore, so
$puppetboard::params...

@@ -69,7 +77,9 @@
Optional[String] $ldap_bind_dn = undef,
Optional[String] $ldap_bind_password = undef,
Optional[String] $ldap_url = undef,
Optional[String] $ldap_bind_authoritative = undef
Optional[String] $ldap_bind_authoritative = undef,
Boolean $ldap_require_group = $::puppetboard::params::ldap_require_group,
Copy link
Contributor

Choose a reason for hiding this comment

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

$puppetboard:: vs $::puppetboard.

@wyardley
Copy link
Contributor

I'd also acknowledge @rendhalver in the commit message if you can't get the commit directly attributed to him in your branch.

@swenske
Copy link
Contributor Author

swenske commented Dec 12, 2018

New PR #236

@swenske swenske closed this Dec 12, 2018
@swenske swenske deleted the ldap_group branch December 12, 2018 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants