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

Changes for PAM support needed on RHEL7/Centos7 #227

Closed
wants to merge 14 commits into from

Conversation

WetHippie
Copy link

The following change adds in support for the changed path and filename for the PAM module. This can be used if you have PAM already configured to support LDAP rather than hitting up LDAP directly (ie UsePAM => true, rather than UseLDAP => true). ie this is another way of tackling the problems raised in #172

@luxflux
Copy link
Contributor

luxflux commented Feb 13, 2017

Thank you for sorting this out.
I tried to resolve the merge conflicts, could you verify the functionality again?

EDIT: Could you also address the failing tests?

@WetHippie
Copy link
Author

Can do. Give me a day or so to work through it all with the tests. Should be simple, just busy at work today.

@WetHippie
Copy link
Author

I can't get the tests running as currently you explicitly require puppet-lint 1.0.1 in the Gemfile. Current lint is 2.1.0. Could I upgrade the Gem to that and work on updating the tests?

@luxflux
Copy link
Contributor

luxflux commented Feb 20, 2017

I can't get the tests running as currently you explicitly require puppet-lint 1.0.1 in the Gemfile. Current lint is 2.1.0. Could I upgrade the Gem to that and work on updating the tests?

Sure, feel free to update it.

@WetHippie
Copy link
Author

Lint updated. Lots of changes to be 4.x compatible. Now the tests are completely broken :( I'll have to dig through and find out just what it is up as they seem to be broken in some really fundamental ways - like not even being able to instance the core class due to missing global variables like ::osfamily. Might be a few more days yet.

@wyardley
Copy link
Contributor

wyardley commented Oct 7, 2017

@WetHippie Do you want to rebase (and squash) this for review?

$key_ou = '',
$key_cn = undef,
$key_name = undef,
$key_ou = undef,
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this change

$tls_auth = false,
) {

include openvpn
include ::openvpn
Copy link
Contributor

Choose a reason for hiding this comment

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

With puppet4+, the absolute path check is no longer needed, and in fact, include foo is preferred over include ::foo

}

concat::fragment { "${etc_directory}/openvpn/${server}/download-configs/${name}.ovpn/key":
target => "${etc_directory}/openvpn/${server}/download-configs/${name}.ovpn",
source => "${etc_directory}/openvpn/${server}/download-configs/${name}/keys/${name}/${name}.key",
order => '06'
order => '06',
Copy link
Contributor

Choose a reason for hiding this comment

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

These should now be updated w/ the switch to Vox

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.

I think converting to undefs is worthwhile (as is, perhaps, adding datatypes), but perhaps should be done in a separate PR from changes related to PAM?

@bastelfreak
Copy link
Member

Hi @WetHippie, are you still interested in getting this merged? If so, could you please rebase?

@bastelfreak
Copy link
Member

Hi. I'm going to close this PR due to inactivity. Please rebase it and address the comments above if you're still interested in it.

@bastelfreak bastelfreak closed this Jul 3, 2019
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.

4 participants