Description | This article describes the steps to resolve issues related to LDAP authentication failure when using usernames with domain names 'username@domain.local'. |
Scope | FortiOS, FortiGate, LDAP. |
Solution |
Navigate to the LDAP settings via FortiGate CLI to understand the current configuration by using commands:
config user ldap show
Run the following debug commands to check for the error 'No DN is Found'.
diagnose debug enable diagnose debug enable
If debug logs show 'No DN is found', this output will appear: [1100] fnbamd_ldap_recv-Response length: 16, server: 192.168.1.11
Set the CNID attribute to 'UserPrincipalName' to allow successful authentication using usernames with domain names. Here are the commands to run on CLI:
config user ldap edit <LDAP Server Name> end
Note: Only 'UserPrincipalName' would work for 'username@domain.local', while sAMAccountName and cn are suitable for 'username' and 'domain\username'. |
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 2024 Fortinet, Inc. All Rights Reserved.