From 418c11cdf55c849e1f9474e1c26f7ea6d82c590f Mon Sep 17 00:00:00 2001 From: robvde Date: Mon, 30 Jul 2012 21:06:29 +0400 Subject: [PATCH] Fix: Unable to create contacts with same displayName. GetContactGeneralSetting was not returning generated sAMAccountNAme --- .../WebsitePanel.Providers.HostedSolution/Exchange2007.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs index 533abfe4..d7e56871 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs @@ -3014,6 +3014,7 @@ namespace WebsitePanel.Providers.HostedSolution info.WebPage = (string)GetPSObjectProperty(user, "WebPage"); info.Notes = (string)GetPSObjectProperty(user, "Notes"); + info.SAMAccountName = string.Format("{0}\\{1}", GetNETBIOSDomainName(), (string)GetPSObjectProperty(user, "Name")); } finally