Created on
02-05-2023
10:29 PM
Edited on
10-20-2024
09:01 PM
By
Anthony_E
This article describes how to configure Google secure LDAPS in FortiGate using certificate authentication.
FortiGate v7.2.0+, v7.4.4+
Supported Google Suite plans:
Business Plus; Enterprise; Education Fundamentals, Education Standard, Teaching and Learning Upgrade, and Education Plus.
Some LDAP servers require a client certificate to perform peer verification instead of password authentication. Google LDAPS is one example of such a configuration.
Starting with FortiOS 7.2.0, client certificate authentication can be configured when FortiGate is acting as an LDAP client.
Related document:
Configuring client certificate authentication on the LDAP server
Below is an example of Google Suite LDAPS integration.
Note:
A Distinguished Name should contain the OU 'users' and any other OU in the path to where users are located. If the DN is incorrect, the following error message will be displayed:
CLI Configuration:
config user ldap
edit "GoogleLDAPS"
set server "ldap.google.com"
set server-identity-check disable
set cnid "uid"
set dn "ou=users,dc=colombas,dc=me"
set secure ldaps
set port 636
set client-cert-auth enable
set client-cert "GoogleLDAPS"
next
end
Troubleshooting and verification:
diagnose debug console timestamp enable
diagnose debug application fnbamd -1
diagnose debug enable
CLI Connectivity test:
diagnose test authserver ldap-direct ldap.google.com
CLI User Credentials test:
diagnose test authserver ldap <server_name> <username> <password>
Note:
From v7.4.4, it requires the CA Certificate of the LDAPS to be trusted, to comply with this requirement the CA certificate must be imported to the FortiGate, In the related document there is a guide on how to obtain this Certificate.
Import the CA certificate as follow:
System -> Certificates -> Import -> Remote Certificate -> Certificate.
Related document:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.