@Override
public void readForm(PageLdapForm form, ActionMessages errors, HttpServletRequest request) {
List<ConfigurationVO> configurations = (List<ConfigurationVO>)getPanel().getAttribute("configurations");
ConfigurationVO authenticationEnabled = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_AUTHENTICATION_ENABLED, configurations);
authenticationEnabled.setValue(String.valueOf(form.isAuthenticationEnabled()));
ConfigurationVO addressExportEnabled = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_ADDRESS_EXPORT_ENABLED, configurations);
addressExportEnabled.setValue(String.valueOf(form.isAddressExportEnabled()));
ConfigurationVO addressInitalExport = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_ADDRESS_INITIAL_EXPORT, configurations);
addressInitalExport.setValue(String.valueOf(form.isAddressInitialExport()));
ConfigurationVO server = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_SERVER, configurations);
server.setValue(form.getServer());
ConfigurationVO port = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_PORT, configurations);
port.setValue(form.getPort());
ConfigurationVO adminUser = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_ADMIN_USER, configurations);
adminUser.setValue(form.getAdminUser());
ConfigurationVO adminPassword = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_ADMIN_PASSWORD, configurations);
adminPassword.setValue(form.getAdminPassword());
ConfigurationVO baseDn = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_BASE_DN, configurations);
baseDn.setValue(form.getBaseDn());
ConfigurationVO addressPrefix = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_ADDRESS_PREFIX, configurations);
addressPrefix.setValue(form.getAddressPrefix());
ConfigurationVO addressCompanyPrefix = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_ADDRESS_COMPANY_PREFIX, configurations);
addressCompanyPrefix.setValue(form.getAddressCompanyPrefix());
ConfigurationVO addressPersonPrefix = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_ADDRESS_PERSON_PREFIX, configurations);
addressPersonPrefix.setValue(form.getAddressPersonPrefix());
ConfigurationVO userPrefix = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_USER_PREFIX, configurations);
userPrefix.setValue(form.getUserPrefix());
ConfigurationVO groupPrefix = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_GROUP_PREFIX, configurations);
groupPrefix.setValue(form.getGroupPrefix());
ConfigurationVO systemUser = ConfigurationUtil.getConfiguration(SystemConfiguration.Key.LDAP_SYSTEM_USER, configurations);
systemUser.setValue(form.getSystemUser());
}