mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 05:47:38 -02:30
Support dash in LDAP attribute names in filters.
This commit is contained in:
committed by
Matthew Jones
parent
f93506fe2c
commit
c067788428
@@ -47,7 +47,7 @@ def validate_ldap_filter(value, with_user=False):
|
||||
dn_value = value.replace('%(user)s', 'USER')
|
||||
else:
|
||||
dn_value = value
|
||||
if re.match(r'^\([A-Za-z0-9]+?=[^()]+?\)$', dn_value):
|
||||
if re.match(r'^\([A-Za-z0-9-]+?=[^()]+?\)$', dn_value):
|
||||
return
|
||||
elif re.match(r'^\([&|!]\(.*?\)\)$', dn_value):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user