From 312872a9565eeee647adeed0b69ef6d2961fc8a7 Mon Sep 17 00:00:00 2001 From: studio-red Date: Mon, 16 Apr 2012 20:45:47 -0400 Subject: [PATCH] Fixed issue as described by yodaict: "I think this happens if the Active Directory Recycle Bin is enabled on domain level. As kensasongko mentioned changing line 472 to ActiveDirectoryUtils.DeleteADObject(path, true); fixes the problem" --- .../OrganizationProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/OrganizationProvider.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/OrganizationProvider.cs index 03d2f83a..6d980dcc 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/OrganizationProvider.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/OrganizationProvider.cs @@ -469,7 +469,7 @@ namespace WebsitePanel.Providers.HostedSolution string path = GetUserPath(organizationId, loginName); if (ActiveDirectoryUtils.AdObjectExists(path)) - ActiveDirectoryUtils.DeleteADObject(path); + ActiveDirectoryUtils.DeleteADObject(path,true); HostedSolutionLog.LogEnd("DeleteUserInternal"); }