-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
feat: add ldap user/dn/attribute/filter #416
Conversation
afa3bfe
to
4996734
Compare
manifests/apache/conf.pp
Outdated
Optional[String] $ldap_require_user = undef, | ||
Optional[String] $ldap_require_dn = undef, | ||
Optional[String] $ldap_require_attribute = undef, | ||
Optional[String] $ldap_require_filter = undef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are empty strings allowed here, or should String
be replaced with String[1]
? Or are there even more strict datatypes we could use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, empty strings are not allowed - about more restrictive datatypes I don't think it's possible, it would imply to validate LDAP expressions
25c228d
to
bf8b2eb
Compare
Sorry for the force pushes, mistakes with commit signing |
9922a90
to
712c9a8
Compare
Reproduced the test failure on a VM of mine, it looks like the culprit is puppetlabs-puppetdb 8.1.0, see also puppetlabs/puppetlabs-puppetdb/#412 |
Allow use of Require ldap-user/ldap-dn/ldap-attribute/ldap-filter in Apache config. Compatible with pre-existing ldap-group settings.
Unmodified tests pass with puppetdb 8.0.1 module. See its issue 412 for probable cause.
505042b
to
31b65d0
Compare
@bastelfreak it works, the fix might also allow to unlock modulesync related issues such as #413 |
thanks for your work! |
Pull Request (PR) description
Allow use of
Require ldap-user/ldap-dn/ldap-attribute/ldap-filter
in Apache config.Compatible with pre-existing ldap-group settings.
See mod_authnz_ldap docs