Fix auth_ad_url validation (#15487)

Improve the validation, but try not to be too strict.
Allow IPv6 addresses too
This commit is contained in:
Tony Murray
2023-10-20 07:29:56 -05:00
committed by GitHub
parent f0aa80e73d
commit 43bc857a5c

View File

@@ -500,7 +500,7 @@
"order": 1,
"type": "text",
"validate": {
"value": "regex:#(ldaps?://[\\w.]+\\s+)+#"
"value": ["regex:#^ldaps?://([-0-9a-zA-Z_.]+|\\[[a-fA-F0-9:]{3,39}\\])(\\s+ldaps?://([-0-9a-zA-Z_.]+|\\[[a-fA-F0-9:]{3,39}\\]))*$#"]
}
},
"auth_ad_require_groupmembership": {