Fix for resolving LDAP user and group names on permissions form

Ticket: #5310