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

ldap mapping support #171

Merged
merged 2 commits into from
Jul 21, 2015
Merged

ldap mapping support #171

merged 2 commits into from
Jul 21, 2015

Conversation

jtriley
Copy link
Contributor

@jtriley jtriley commented Jul 17, 2015

This adds support for LDAP mappings:

http://docs.opennebula.org/4.12/administration/authentication/ldap.html#group-mapping

The following settings were added which are one-to-one with the LDAP conf:

$oned_ldap_mapping_generate
$oned_ldap_mapping_timeout
$oned_ldap_mapping_filename
$oned_ldap_mapping_key
$oned_ldap_mapping_default

Added the following puppet/hiera config to manually define the group mappings :mapping_generate: is set to false:

$oned_ldap_mappings - hash of group DN to group IDs (used when :mapping_generate: false)

@rwaffen
Copy link
Contributor

rwaffen commented Jul 17, 2015

hi, the tests for ldap seem to fail... would you please have a look at them?

@jtriley jtriley force-pushed the ldap_mapping_support branch 5 times, most recently from d5b34c4 to f1a6f79 Compare July 20, 2015 19:51
@jtriley jtriley changed the title Ldap mapping support ldap mapping support Jul 20, 2015
@jtriley jtriley force-pushed the ldap_mapping_support branch 2 times, most recently from 21a0985 to 3555e82 Compare July 21, 2015 15:24
@jtriley jtriley force-pushed the ldap_mapping_support branch from 3555e82 to 9c1eaf5 Compare July 21, 2015 15:43
@jtriley
Copy link
Contributor Author

jtriley commented Jul 21, 2015

@rwaffen All set now. Test failure was due to setting string 'undef' as default for oned_ldap_mappings. Changed the default to the real undef since this variable isn't used in the ldap_auth template and isn't susceptible to scope.lookupvar issues (ie http://docs.puppetlabs.com/guides/templating.html#testing-for-undefined-variables)

rwaffen added a commit that referenced this pull request Jul 21, 2015
@rwaffen rwaffen merged commit 9be7183 into epost-dev:master Jul 21, 2015
@jtriley jtriley deleted the ldap_mapping_support branch July 22, 2015 00:48
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