deleted users archiving
This commit is contained in:
parent
45462971d2
commit
26a050a3e5
78 changed files with 13755 additions and 9774 deletions
|
@ -7103,6 +7103,13 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
#endregion
|
||||
|
||||
#region Archiving
|
||||
|
||||
public virtual ResultObject ExportMailBox(string organizationId, string accountName, string storagePath)
|
||||
{
|
||||
// not implemented
|
||||
return null;
|
||||
}
|
||||
|
||||
public virtual ResultObject SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy)
|
||||
{
|
||||
// not implemented
|
||||
|
|
|
@ -526,6 +526,36 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
return res;
|
||||
}
|
||||
|
||||
public void DisableUser(string loginName, string organizationId)
|
||||
{
|
||||
DisableUserInternal(loginName, organizationId);
|
||||
}
|
||||
|
||||
public void DisableUserInternal(string loginName, string organizationId)
|
||||
{
|
||||
HostedSolutionLog.LogStart("DisableUserInternal");
|
||||
HostedSolutionLog.DebugInfo("loginName : {0}", loginName);
|
||||
HostedSolutionLog.DebugInfo("organizationId : {0}", organizationId);
|
||||
|
||||
if (string.IsNullOrEmpty(loginName))
|
||||
throw new ArgumentNullException("loginName");
|
||||
|
||||
if (string.IsNullOrEmpty(organizationId))
|
||||
throw new ArgumentNullException("organizationId");
|
||||
|
||||
string path = GetUserPath(organizationId, loginName);
|
||||
|
||||
if (ActiveDirectoryUtils.AdObjectExists(path))
|
||||
{
|
||||
DirectoryEntry entry = ActiveDirectoryUtils.GetADObject(path);
|
||||
|
||||
entry.InvokeSet(ADAttributes.AccountDisabled, true);
|
||||
|
||||
entry.CommitChanges();
|
||||
}
|
||||
|
||||
HostedSolutionLog.LogEnd("DisableUserInternal");
|
||||
}
|
||||
|
||||
public void DeleteUser(string loginName, string organizationId)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue