You're most welcome,
There's a section of the help file dedicated to integrating with AD with walkthroughs for setting it up. I also wrote a tutorial a few years ago that never got released to public. I've included it below in case you find it useful.
_________________________
Synchronising with an Active Directory Domain ControllerThis tutorial covers the steps involved with integrating WinGate into an Active Directory network environment, where the Active Directory is being hosted on a separate server within the network. WinGate will synchronise it's user database with the Active Directory, allowing you to perform NTLM authentication through the Domain Controller.
This tutorial assumes that:- Your WinGate server has two network adaptors. One for the internet connection, and one for the local area network.
- The Active Directory server has been setup and the client computers are joined to the domain.
- The WinGate computer is a member of the domain.
- The WinGate computer has WinGate installed and configured to use the WinGate user database, or the local Windows user database.
Networking Pre-requisitesBefore synchronising WinGate with the remote Active Directory server, double check that the networking requirements are met, setup and ready to go.
1) Check that the IP configuration of the WinGate computer is setup correctly. The internal network adaptors Primary DNS should be pointing to the Active Directory DNS server as this is required for the computer to login and communcate with the Domain Controller. The external network adaptor that is facing the internet should have at least one DNS server set that can resolve internet domain names.
Each network adaptor should only have gateways and DNS servers specified that can be accessed from that adaptor. It is a common mistake to configure internet DNS servers on internal network adaptors, and likewise, internal Active Directory DNS servers on external network adaptors.
Your IP configuration should look a little like the diagram below. Keep in mind that your network may have different IP ranges and addresses for the local network and the internet connection, but the basic concept should still be the same.

- Adsynch.GIF (13.53 KiB) Viewed 9120 times
2) The WinGate computer needs to be a part of the domain for WinGate to communicate with the domain controller, so make sure that the computer has been joined to the domain. If the computer wasn't joined to the domain when you attempt to synchronise the user database, WinGate would not be able to retrieve the remote user list or check NTLM passwords against the Active Directory server.
3) Since your client computers need to have their DNS settings pointing to the Active Directory DNS server, the server will need to be able to resolve internet domain names for the client computers. You can specify Internet DNS servers in the forwarders tab of your DNS servers properties. For this tutorial, I want you to add only the WinGate computer to the forwarders tab. Your client computers may start to experience problems connecting to the internet, but this is expected and I will explain why this happens and how to resolve the problem later.
Adding an Internet DNS server to the Forwarders tab:- (Windows) Start -> Programs -> Administrative Tools -> DNS
- Right-click on your server and open the properties
- Goto the "Forwarders" tab
- Add the WinGate computers IP address to the "Selected domain's forwarder IP address list"
- Click OK to finalise the change
If your DNS server has a root server configured, then you won't be able to use the forwarders tab. You will need to remove the root server and restart the DNS service to re-enable the forwarders tab.
Synchronising with the remote user databaseThe network should now be ready for WinGate to synchronise with the Active Directory, however, there is still one more thing to do before you can flick the synchronise switch. The WinGate service needs to freely communicate with the domain controller, so you will need to make it log on using an account from the 'Domain Administrators' user group on the Active Directory, rather than the local system service account. It is recommended that you create a new user on the Active Directory specifically for the WinGate service.
Create a new user in the Active Directory, call it WinGate (or something to that effect) and add it to the 'Domain Administrators' group. For security reasons, you should disallow logon through terminal services for this user.
Now make WinGate login using this account.
- Start -> Run -> Services.msc
- Double-click on the “Qbik WinGate Engine” entry.
- Go to the Log On tab of the properties window that just appeared.
- Select “This account”, and enter the username and password of the user that you just created.
- Restart the WinGate engine.
Now that WinGate can freely communicate with the domain, it can synchronise with the Active directory.
- Gatekeeper -> Users tab -> Database Options
- Select “Use the Operating System (Windows) user database” if it isn't already, then select “Use Remote user database ( Domain Controller / Active Directory )”.
- Enter the domain controller that you want WinGate to synchronise with. This is just a simple network path, e.g. \\server01.
That's it. Click Synchronise now to grab the remote user database, and then click OK. Open up your users list and you should now see your Active Directory user list, rather than the WinGate userlist or the local Windows user list.
Now that WinGate is synchronised with the remote user database, you should select your synchronisation options. In most scenarios, you can simply select “Synchronize entire database when WinGate starts” and “Synchronise individual users when they log in for the first time” to obtain a regular and failsafe update of the remote userlist, but these settings are completely up to you.
Extra ConsiderationsDNS LoopsEarlier in the turorial, I got you to set the forwarders tab of the ADDNS server to point to the WinGate computer. No doubt you have probably been experiencing difficulty with your internet connection since doing that. This configuration would have caused what's called a "DNS Loop" in your network.
A DNS Loop effectively describes a situation where a DNS request bounces infinitely between two DNS servers. Each server thinks that the other server will be able to resolve the domain name, and so the loop begins. The loop will only end if WinGate decides to try an internet DNS server for a change, or a network cable is unplugged from either server, timing the active requests out.
There are two ways to fix a DNS loop. You can either set an internet DNS server in the ADDNS forwarders tab, or you can tell WinGate not to send internet DNS requests to the ADDNS server. You already know how to modify the forwarders tab, so I have only covered the WinGate solution.
- (Windows) Start -> Programs -> WinGate -> Advanced Options -> DNS Servers
- Enter the IP address of the Active Directory server and add it to the list.
That's it. That's all you need to do. The DNS loop should cease as soon as you click OK.
Synchronising when installed on the Active Directory serverSynchronising with an Active Directory when WinGate itself is installed on the AD server is much simpler than synchronising with a remote Domain Controller. All you need to do in this situation is configure WinGate to use the local Windows user database. Since the local Windows user database is also the Active Directory user database everything should work immediately. The only thing you will need to do is disable a couple of services in WinGate.
Since the Active Directory is already running a DNS server for the client computers, you will need to disable the DNS server in WinGate. You may be running a DHCP server on your domain aswell. In this situation, you should also disable the DHCP server in WinGate.