From 216e175eafd50b977e132ca0055df9fed9e83a6a Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 14 Sep 2021 10:07:46 +0200 Subject: [PATCH] Remove a too strict check from admin interface --- admin.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/admin.go b/admin.go index 04f051e..a2c70c5 100644 --- a/admin.go +++ b/admin.go @@ -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)