few ldap fixes; introduced init_flag to mark which fields have been