Below are the steps involved for Active Directory (AD) Integration:

  1. The user visits [yourapp]
  2. Freshservice sees that your Freshservice account is configured for remote authentication.
  3. Freshservice sends a redirect response to your browser, telling it to visit the authentication script. The script would be hosted on an internal IIS server at your site, but since your PC where your browser resides, can access both and your LAN, that is alright.
  4. Your browser redirects to the authentication script.
  5. Since you configure your IIS to use Windows Integrated Authentication (and disable anonymous access) for this script, your browser automatically uses your Active Directory credentials to run the script.
  6. The script uses your Active Directory username to lookup your full name and email address.
  7. These pieces of information are packaged and a digest is created (MD5 digest with name + email + shared secret).
  8. The script redirects your browser back to [yourcompany], and includes your full name, email and message digest.
  9. Freshservice receives the information and logs you in.


Attached is the VB Script for AD Integration.

Let's assume your script is stored in "dc-svr01". In this script when it points to http://dc-svr01/rep , the script should redirect the user to which will automatically proceed to freshservice logged in. So, when users access the helpdesk - ,  we will automatically redirect to this script http://dc-svr01/rep which must redirect to the url.

Points to note:

First off, the script file (attached: ADScript.asp) should have a ".asp" extension, and should be encoded in the UTF8 with BOM format. 

Go  to the IIS Server -> C:\inetpub\wwwroot. Here create a new Folder - Freshservice & place this file here and save it.

In the sReturnURL section, it should point to your Freshservice URL. i.e.

In your Freshservice Account, Go to Admin > Security > Single Sign on  and copy this Shared Secret HASH and paste it in the script in the HASH section.

Once done, ensure that you give the correct script URL in Admin > Security > Single Sign on section in Freshservice.

In this script where it shows, sLdapReaderUsername = "domain\username" & sLdapReaderPassword = "password" , give any Read Only username and Password from your AD, who has access to Read all the user credentials.

Please follow the screenshots and then try to access the Script from http://dc-svr01/test.asp and see if the script is executed or not. Ensure that the IIS calls this script with Integrated Authentication and NOT via Anonymous Authentication.Change the authentication to only use NTLM and not negotiate to Kerberos.

Run the following command to apply the FDHMACMD5.dll file.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe <PATH_TO_DLL> /codebase

You can find this file attached below.