internal static void SetProcessTopologyMode(bool isAdminMode, bool publicMethodCheck)
        {
            ExTraceGlobals.TopologyProviderTracer.TraceDebug <string, bool>(0L, "{0} method sets admin mode to {1}", publicMethodCheck ? "Public" : "Internal", isAdminMode);
            int num = 0;

            if (!publicMethodCheck || (TopologyProvider.staticInstance != null && TopologyProvider.CurrentTopologyMode == TopologyMode.Ldap && AdamTopologyProvider.CheckIfAdamConfigured(out num)) || TopologyProvider.staticInstance == null)
            {
                TopologyProvider.SetProcessTopologyMode(isAdminMode ? TopologyMode.Ldap : TopologyMode.ADTopologyService);
            }
        }
Beispiel #2
0
 public static void SetAdminTopologyMode()
 {
     if (!ADSession.isAdminModeEnabled)
     {
         ExTraceGlobals.ADTopologyTracer.TraceDebug(0L, "A process tried to set the Topology Mode to Admin, but this mode has been disabled");
         return;
     }
     TopologyProvider.SetProcessTopologyMode(true, true);
     if (ADSession.IsBoundToAdam)
     {
         ADSessionSettings.ClearProcessADContext();
         ConnectionPoolManager.ForceRebuild();
     }
 }