Start a conversation

GFI WebMonitor is taking a long time to enumerate users and groups in auto-complete

Answer

PROBLEM

GFI WebMonitor is installed in an environment with multiple domains. When trying to add users or groups to a policy, the auto-complete takes a long time to enumerate the list of users and groups.

ENVIRONMENT

  • GFI WebMonitor 
  • All supported environments

SOLUTION

Configure GFI WebMonitor to enumerate users and groups from the local domain only:
  1. Open ..\GFI\WebMonitor\WebMon.WinService.exe.config with a text editor
  2. Add the following under the <configuration> tag at the beginning of the file:

    <configSections>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
                <section name="WebMon.Net.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
            </sectionGroup>
    </configSections>
     
    The beginning of the file should look like this:
     
    <?xml version="1.0"?>
    <configuration>
    <configSections>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
                <section name="WebMon.Net.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
            </sectionGroup>
    </configSections>
     
  3. Add the following at the end of the file before the </configuration> tag:
     
    <applicationSettings>
            <WebMon.Net.Properties.Settings>
                <setting name="localDomainOnly" serializeAs="String">
                    <value>True</value>
                </setting>
            </WebMon.Net.Properties.Settings>
    </applicationSettings>
     
    The end of the file should look like this:
     
    <applicationSettings>
            <WebMon.Net.Properties.Settings>
                <setting name="localDomainOnly" serializeAs="String">
                    <value>True</value>
                </setting>
            </WebMon.Net.Properties.Settings>
        </applicationSettings>
    </configuration>
     
  4. Save changes and close the file
  5. Re+start the GFI WebMonitor Core Service
Notes: 
  • It is recommended to make a backup of GFI WebMon.WinService.exe.config before editing the file
  • If the change is not made correctly, the GFI WebMonitor Core service will not start

CAUSE

By default GFI WebMonitor will enumerate all the users and groups from all the existing domains, sub-domains and OUs in Microsoft Active Directory. In large environments with more than one sub-domain and a large amount of existing users in each sub-domain, GFI WebMonitor may take longer to enumerate users and groups in auto-complete when modifying a policy.  

The enumeration is only needed for auto-complete in the management console. The time it takes to enumerate the users and groups highly depends on the environment. GFI WebMonitor uses Microsoft Active Directory APIs to perform this enumeration.
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments