Remove a too strict check from admin interface
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
Quentin 2021-09-14 10:07:46 +02:00
parent d26f5670bd
commit 216e175eaf
Signed by: quentin
GPG Key ID: A98E9B769E4FF428
1 changed files with 0 additions and 2 deletions

View File

@ -646,8 +646,6 @@ func handleAdminCreate(w http.ResponseWriter, r *http.Request) {
data.Error = "Invalid identifier type"
} else if len(data.IdValue) == 0 {
data.Error = "No identifier specified"
} else if match, err := regexp.MatchString("^[\\d\\w_-]+$", data.IdValue); err != nil || !match {
data.Error = "Invalid identifier"
} else {
dn := data.IdType + "=" + data.IdValue + "," + super_dn
req := ldap.NewAddRequest(dn, nil)