Skip to content

Commit

Permalink
Allow commas in LDAP filters
Browse files Browse the repository at this point in the history
  • Loading branch information
fxbru committed Apr 9, 2024
1 parent 3db8453 commit 0f40f3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/administration/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ class LdapForm(FlaskForm):
validators=[
Optional(),
Regexp(
"^[a-zA-Z0-9-_\(\)=&|*:! ]+$",
message="User object filter must contain only letters, numbers, dash (-), underscore (_), parenthesis (), colon (:), exclamation mark (!), equal (=), space ( ), ampersand (&), pipe (|) ans star (*) characters",
"^[a-zA-Z0-9-_\(\)=&|*:! ,]+$",
message="User object filter must contain only letters, numbers, dash (-), underscore (_), parenthesis (), colon (:), exclamation mark (!), equal (=), space ( ), comma (,), ampersand (&), pipe (|) ans star (*) characters",
)
],
)
Expand All @@ -164,8 +164,8 @@ class LdapForm(FlaskForm):
validators=[
Optional(),
Regexp(
"^[a-zA-Z0-9-_\(\)=&|*:! ]+$",
message="Group object filter must contain only letters, numbers, dash (-), underscore (_), parenthesis (), colon (:), exclamation mark (!), equal (=), space ( ), ampersand (&), pipe (|) ans star (*) characters",
"^[a-zA-Z0-9-_\(\)=&|*:! ,]+$",
message="Group object filter must contain only letters, numbers, dash (-), underscore (_), parenthesis (), colon (:), exclamation mark (!), equal (=), space ( ), comma (,), ampersand (&), pipe (|) ans star (*) characters",
)
],
)

0 comments on commit 0f40f3e

Please sign in to comment.