Some users are able to connect while others aren’t, and the following error message keeps appearing:
WARN [i.l.s.l.LdapMemberOfUserGroupPlugin] [lenses-akka.actor.default-dispatcher-6] Invalid LDAP regex ‘(?i)cn=([-\w]+),(?:ou=Kafka_company,)?ou=groups_company,dc=ldap,dc=lenses,dc=local$’. Could not match:cn=groupWrite,ou=groups,dc=ldap,dc=lenses,dc=local
2024-01-31 14:31:31,199 ERROR [a.a.ActorSystemImpl] [lenses-akka.actor.default-dispatcher-6] Exception when handling request by: [login] POST /api /login {body as application/json (UTF-8)} → status code - possible codes (Map()) {body as text/plain (UTF-8)}/{body as text/plain (UTF-8)}
io.lenses.security.authentication.NoMatchingGroupsException: User [user_company] groups do not match any ones defined in Lenses. When using LDAP, this means there is no group registered in Lenses which matches the groups the user is linked to in LDAP. As a result the login is rejected
at io.lenses.security.management.SecurityManagerPermissionProvider.$anonfun$grant$2(SecurityManagerPermissionProvider.scala:37)
at flatMap @ io.lenses.security.management.SecurityManagerPermissionProvider.grant(SecurityManagerPermissionProvider.scala:28)
2024-01-31 14:31:31,219 INFO [a.a.ActorSystemImpl] [lenses-akka.actor.default-dispatcher-6] Request: POST->http:// localhost:9991/api/login returned 500 Internal Server Error in 457ms
How can I solve this?