Example #1
0
        private static ADObjectId ResolveADObject(ADObjectId obj)
        {
            bool config = ConfigBase <AdDriverConfigSchema> .GetConfig <bool>("IsSoftLinkResolutionCacheEnabled");

            if (config)
            {
                return(ADObjectIdResolutionCache.Default.GetEntry(obj));
            }
            return(ADObjectIdResolutionHelper.ResolveADObjectIdWithoutCache(obj));
        }
Example #2
0
 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));
 }