fixed bug with openldap 2.3