Technical Tip: LDAP authentication on FortiProxy
Description
This article describes how to configure LDAP server and authentication scheme.
LDAP User authentication in Explicit-Proxy mode.
- Configure the LDAP server.
- Configure Authentication Scheme/rules and proxy auth settings.
- Configure firewall policies with LDAP authentication by selecting the explicit mode.
- Enabling proxy settings on the workstation and test the authentication.
Scope
FortiProxy
Solution
Configuring LDAP server.



edit "9-42"
set subnet 10.40.9.42 255.255.255.255
next
end
config authentication rule
edit "ldap_rule"
set srcintf "port2"
set srcaddr "9-42"
set dstaddr "all"
set active-auth-method "ldap-scheme"
next
end



Once the user is authenticated, the user under FortiView -> User can be seen.

Note:
Only HTTP, HTTPS, FTP, and Telnet protocols are supported by LDAP.
Troubleshooting:
Useful debug command:
diagnose wad filter src <source IP>
diagnose wad debug enable category auth
diagnose wad debug enable category policy
diagnose wad debug enable level verbose
diagnose debug application fnbamd -1
diagnose debug enable
To disable debug:
diagnose debug disable
diagnose debug reset
Then, run the below command on FortiProxy to verify whether user authentication working correctly with the LDAP server or not.
diagnose test authserver ldap <server_name> <username> <password>
Related document:
