[KARAF-2978]RBAC-- recognize group configuration when use Publickey to Login
(cherry picked from commit 7e1aa7ae4adab02b975ef2bc172be5ceaca42af7)