Troubleshooting Tip: Updating LDAP server configuration resets the Username and Password fields
| Description | This article describes the reasons behind the error that is triggered after updating the LDAP server configuration, including Server IP/Name, the Common Name Identifier, the Distinguished Name, or the Secondary/Tertiary Server. |
| Scope | FortiOS version 7.4.9 and later. |
| Solution | Updating the Server IP/Name, Common Name Identifier, or Distinguished Name parameters in GUI triggers the error 'This field is required'.
When the same update is executed through the CLI, the system returns the message 'username and password unset', as illustrated below. Adding or deleting the secondary server or the tertiary server in CLI also triggers the same message.
This error occurs because each time a change is made, the Username and Password credentials must be entered again. For security reasons, changing key binding parameters (server IP address, CNID, or DN) or updating the secondary/tertiary server automatically unsets/clears the stored username and password credentials. These sensitive fields are not displayed in the GUI or show commands for security, so the system forces re-entry to prevent accidental use of stale or mismatched credentials with the new settings. |

