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
Parameter suffix failed, because of too restrictive patterns in openldap/lib/puppet/type/openldap_database.rb #396
Comments
wkernler
changed the title
Parameter suffix failed, because of too restictive patterns in openldap/lib/puppet/type/openldap_database.rb
Parameter suffix failed, because of too restrictive patterns in openldap/lib/puppet/type/openldap_database.rb
Oct 13, 2023
Hi seems like a similiar problem i am facing in #391 |
Hum, I guess I was influenced by RFC2247 and also added |
smortex
added a commit
that referenced
this issue
Jan 5, 2024
The validation of the `suffix` parameter assumed conformance with RFC2247, but this is not a requirement and cause trouble to some users. A full validation of the suffix syntax to check if it conforms to RFC2253 is probably overkill, so for now, we just relax the used regexp to allow valid values which where previously rejected. Some valid DN syntax are still rejected, as supporting them would require to replace the regexp with a parser. Add them as known-bad examples in the test suite (pending tests). Fixes #391 Fixes #396
smortex
added a commit
that referenced
this issue
Jan 5, 2024
The validation of the `suffix` parameter assumed conformance with RFC2247, but this is not a requirement and cause trouble to some users. A full validation of the suffix syntax to check if it conforms to RFC2253 is probably overkill, so for now, we just relax the used regexp to allow valid values which where previously rejected. Some valid DN syntax are still rejected, as supporting them would require to replace the regexp with a parser. Add them as known-bad examples in the test suite (pending tests). Fixes #391 Fixes #396
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
What behaviour did you expect instead
Successful creation of database
Output log
Any additional information you'd like to impart
There are two problems:
I could work around this error in adding an extra rule to openldap/lib/puppet/type/openldap_database.rb:
The text was updated successfully, but these errors were encountered: