[middleware] Fix #224 - spaces over LDAP