protected void cmdAuthenticationUpdate_Click(Object sender, EventArgs e)
		{
			PortalSettings _portalSettings = (PortalSettings) HttpContext.Current.Items["PortalSettings"];
			try
			{
				string providerTypeName = this.cboProviders.SelectedItem.Value;
				string authenticationType = this.cboAuthenticationType.SelectedItem.Value;
				
				Configuration.UpdateConfig(_portalSettings.PortalId, this.chkAuthentication.Checked, this.txtRootDomain.Text, this.txtEmailDomain.Text, this.txtUserName.Text, this.txtPassword.Text, this.chkSynchronizeRole.Checked, this.chkSynchronizePassword.Checked, providerTypeName, authenticationType);
				Configuration.ResetConfig();
				
				AuthenticationController objAuthenticationController = new AuthenticationController();
				string statusMessage = objAuthenticationController.NetworkStatus();
				
				if (statusMessage.ToLower().IndexOf("fail") > - 1)
				{
					MessageCell.Controls.Add(UI.Skins.Skin.GetModuleMessageControl("", LocalizedStatus(statusMessage), ModuleMessageType.RedError));
				}
				else
				{
					MessageCell.Controls.Add(UI.Skins.Skin.GetModuleMessageControl("", LocalizedStatus(statusMessage), ModuleMessageType.GreenSuccess));
				}
				
			}
			catch (Exception exc) //Module failed to load
			{
				Exceptions.ProcessModuleLoadException(this, exc);
			}
		}