NXP-16115: save directory type when user sets it
NXP-16116: fix LDAP configuration template to write the user searchFilter value