Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Allow single character attribute names #3

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Allow single character attribute names #3

merged 1 commit into from
Mar 10, 2023

Conversation

jsumners
Copy link
Member

This resolves issue #2.

The isValidAttributeString function validates search attributes as defined in https://www.rfc-editor.org/rfc/rfc4511#section-4.5.1.8. In particular, the issue described is around the attributedescription component defined by https://www.rfc-editor.org/rfc/rfc4512#section-2.5. Specifically an attributype of the oid variant.

OIDs are described in https://www.rfc-editor.org/rfc/rfc4512#section-1.4 as being a desc => keystring => leadkeychar *keychar. With leadkeychar being an ALPHA character, and keychar being ALPHA, DIGIT, and/or HYPHEN.

The miss here is that *keychar means "zero or more keychars", not "one or more keychars".

@jsumners jsumners merged commit 4cbc51a into master Mar 10, 2023
@jsumners jsumners deleted the issue-2 branch March 10, 2023 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant