LDAP regexp condition doesn't consider all values

Also improved debugging output.