derive_uid_from_ldap() converted to use ldap_get_values_len() which is not deprecated