Created on
‎07-13-2015
06:05 AM
Edited on
‎10-28-2024
07:03 AM
By
Stephen_G
Description.
This includes the FortiAuthenticator as well as the FortiGate configuration.
Scope.
FortiGate.
FortiAuthenticator.
Solution
FortiAuthenticator Configuration.
- Enable LDAP services on the interface connected to the FortiGate.
- Go to Network -> Interfaces -> Access Rights -> Services, select check box for LDAP (TCP/389).
- Create Groups.
- LDAP Administrator Group.
Go to Authentication -> User Management -> User Groups -> Create New, create new group named: ‘ldap_admins’.
- Create User groups.
Go to Authentication -> User Management -> User Groups -> Create New, create new group named: ‘testgrp’.
- Create users and add them under the respective groups created earlier.
- Users.
Go to Authentication -> User Management -> Local Users -> Create New.
ldapadmin -> to the group ldap_admins.
Add rights to the 'ldapadmin' user for LDAP browsing.
test1 -> to the group testgrp.
After configurations done:
- Users:
- Groups:
- Configure Directory Tree as shown below. Ensure that the LDAP Administrator is a part of LDAP tree. The LDAP admin and the users MUST be contained as object below the 'Distinguished name' (= baseDN) configuration on FortiGate. If the Admin or user are outside of the baseDN, the objects won't be found.
Go to Authentication -> LDAP Service -> Directory Tree.
FortiGate Configuration.
- Configure LDAP services.
- Go to User & Authentication -> LDAP Servers -> Create New.
Complete using:
- Test Authentication from FortiGate CLI, with the command syntax as follows:
diagnose test authserver ldap <name of LDAP server configuration> <username> <password>
diagnose test authserver ldap LDAP ldapadmin admin$123
- FortiAuthenticator Logs.
- Create User Group.
Go to User & Device -> User -> User Groups, enter 'Name' and select 'Create New' under 'Remote groups', select the remote server created and select the required user group name.
- User group created on firewall in the last step can now be selected on the appropriate firewall authentication policy.
- FortiGate / FortiOS 7.6.0 Administration Guide / Configuring an LDAP server
- FortiAuthenticator 6.5.0 Cookbook / Configuring LDAP on the FortiAuthenticator
- Troubleshooting Tip: FortiGate LDAP troubleshooting and debug logs created by fnbamd