This commit is contained in:
Vashchuk Nikita 2022-04-11 12:51:54 +03:00
parent df86859903
commit 2c4e6db03a
3 changed files with 10 additions and 2 deletions

View File

@ -88,7 +88,7 @@ public class LdapUserImporter : IDisposable
public void Init(LdapSettings settings, LdapLocalization resource)
{
LdapHelper.Init(settings);
((NovellLdapHelper)LdapHelper).Init(settings);
Resource = resource;
}

View File

@ -459,4 +459,12 @@ public abstract class LdapOperation
return Resource.LdapSettingsErrorUnknownError;
}
}
public static class LdapOperationExtension
{
public static void Register(DIHelper services)
{
services.TryAdd<NovellLdapSettingsChecker>();
}
}
}

View File

@ -19,7 +19,7 @@
using Constants = ASC.Core.Users.Constants;
namespace ASC.ActiveDirectory.ComplexOperations;
[Scope]
[Scope(Additional = typeof(LdapOperationExtension))]
public class LdapSaveSyncOperation : LdapOperation
{
private LdapChangeCollection _ldapChanges;