Fixes: #2705 Fixed problems in ldapmanager plugin