fix ldap driver when p=0 and n=0