diff --git a/environment_config.yaml b/environment_config.yaml index 0778fef..efeb136 100644 --- a/environment_config.yaml +++ b/environment_config.yaml @@ -5,12 +5,18 @@ attributes: description: 'LDAP domain name' weight: 20 type: "text" + regex: + source: '^[a-zA-Z0-9._-]+$' + error: "Domain do not match regex, e.g.: 'example.com' ." url: value: '' label: 'LDAP URL' description: 'URL for connecting to the LDAP server.' weight: 25 type: "text" + regex: + source: '^ldap:\/\/([a-zA-Z0-9._-]+)(:[0-9]+)?$' + error: "LDAP URL do not match regex, e.g.: 'ldap://example.com' ." suffix: value: 'cn=example,cn=com' label: 'LDAP Suffix' @@ -29,6 +35,9 @@ attributes: description: 'Password for the BindDN to query the LDAP server.' weight: 35 type: "password" + regex: + source: '^\S+$' + error: "Plesase remove spaces." query_scope: value: 'one' label: 'LDAP Query Scope'