In this article we will explain the best way to configure FSSO agent mode with Microsoft LDAP.
There are many videos and articles explain that, but we will give you the best way with best performance, just go with this article step by step.
We will use in this scenario one Fortigate (1000D), with two Active directory servers ( DC and the additional one).
First of All, You should make an integration between FG and LDAP (AD) severs, to create an LDAP query from FG to Active directory servers you must configure the LDAP as below:
Go to User -> Remote -> LDAP and create new LDAP entry, keep in mind that you should create an LDAP entry for each domain controller:
NAME: choose any meaningful name as a display name of the LDAP entry.
SERVER NAME/IP: fill the IP address of the domain controller.
SERVER Port: choose 389 since it’s the port the LDAP use it.
COMMON NAME IDENTIFIER: choose sAMAccountName.
Distinguished Name: fill your DC distinguished name ( in next few line we will show you how to find it).
Bind Type: Regular.
User DN: choose any domain admin user.
Password: the password of the domain admin user.
Before we continue, let’s show you how to find the Distinguished Name for your domain controller:
Open ADSIEdit from Run in the domain controller as below:
The ADSIEDIT console will appear, right click in ADSIEDIT and click Connect to:
from Select a well know Naming context option, make sure that default naming context is selected and click ok:
Now as you see, the distinguished name of the DC is “DC=contoso,DC=com” as shown below:
if you need to make an LDAP connection for specific OU or specific group, user ..etc. you can browse to the object you need then you will see the Distinguished name column behind each object as below:
If the Distinguished name column is not appear, you can find it by right click in the object you need, then click properties as below:
find the distinguishedName attribute and click view button as below:
finally copy the value to where you need:
Now, let’s continue our configuration of FSSO.
Go to https://support.fortinet.com/ , then login to the support portal with your account, go to Download> firmware images > downloads > select your version > FSS0>FSSO setup file.
Installing FSSO agent on Windows AD server:
First you should run the agent on active AD then to the secondary as below:
You should reboot the DC.
Configuring Single Sign-On on the FortiGate:
NOW you should see status with green mark, that mean that FSSO see LDAP server.
NOW go back to LDAP (DC) server and open FSSO agent to configure groups of your AD on the FSSO agent ,
This is the trick to configure your OUs from FSSO agent NOT from FG .
Back to Agent on you LDAP and select configure groups and add the groups you want:
Creating a user group in the FortiGate:
About Bloggers …
Ahmad Al-Kafaween in a Specialist Network Engineer and publisher at AzureDummies blog. He also hold many certificates in CISCO routing and switching, Cisco express foundation for field ( CXFF), Fortigate Security.
Ahmad Yasin in a Microsoft Cloud Engineer and the publisher of
AzureDummies blog. He also hold many certificates in office 365
and windows azure including Developing Microsoft Azure Solutions, Implementing Microsoft Azure Infrastructure Solutions
and MCSA office 365.