SSO: Fix client side validations for LDAP (#94561)
* fix client side validations for LDAP
* add translations for new messages
* simplify code in isInvalidField()
(cherry picked from commit 0bd3ad1d5a)
Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>
pull/94613/head
grafana-delivery-bot[bot]1 year agocommitted byGitHub
"description":"Hostname or IP address of the LDAP server you wish to connect to.",
"label":"Server host *",
"error":"Server host is a required field",
"label":"Server host",
"placeholder":"example: 127.0.0.1"
},
"login-form-alert":{
@ -1234,12 +1235,14 @@
},
"search_filter":{
"description":"LDAP search filter used to locate specific entries within the directory.",
"label":"Search filter *",
"error":"Search filter is a required field",
"label":"Search filter",
"placeholder":"example: cn=%s"
},
"search-base-dns":{
"description":"An array of base dns to search through.",
"label":"Search base DNS *",
"error":"Search base DNS is a required field",
"label":"Search base DNS",
"placeholder":"example: dc=grafana,dc=org"
},
"subtitle":"The LDAP integration in Grafana allows your Grafana users to log in with their LDAP credentials. Find out more in our <2><0>documentation</0></2>.",