private static ADObjectId ResolveADObject(ADObjectId obj) { bool config = ConfigBase <AdDriverConfigSchema> .GetConfig <bool>("IsSoftLinkResolutionCacheEnabled"); if (config) { return(ADObjectIdResolutionCache.Default.GetEntry(obj)); } return(ADObjectIdResolutionHelper.ResolveADObjectIdWithoutCache(obj)); }
internal static ADObjectId ResolveSoftLink(ADObjectId obj) { if (!ADGlobalConfigSettings.SoftLinkEnabled) { return(obj); } if (obj == null || string.IsNullOrEmpty(obj.DistinguishedName) || (obj.PartitionGuid != Guid.Empty && obj.ObjectGuid != Guid.Empty)) { return(obj); } return(ADObjectIdResolutionHelper.ResolveADObjectIdWithoutCache(obj)); }