Bugfix: ignore case when comparing objectclass values

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-07-23 13:32:15 +02:00
parent c0f629bdbd
commit fd5e371ee1
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ func parseFilter(f *ber.Packet) (qtype queryType, q string, err error) {
// replace attributes
switch attribute {
case "objectclass":
switch value {
switch strings.ToLower(value) {
case "posixaccount", "shadowaccount", "users", "person", "inetorgperson", "organizationalperson":
qtype = usersQuery
case "posixgroup", "groups":