FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
JCPL
Staff & Editor
Staff & Editor
Article Id 421640
Description

This article explains the reasons behind the error that is triggered after updating the Server IP/Name, the Common Name Identifier, or the Distinguished Name.

Scope FortiOS version 7.4.9.
Solution

Updating the Server IP/Name, Common Name Identifier, or Distinguished Name parameters triggers the error 'This field is required'.

 

Picture1.png

 

When the same update is executed through the CLI, the system returns the message 'username and password unset', as illustrated below.

 

FortiGate3 (ADLDAP) # show
config user ldap
    edit "ADLDAP"
        set server "172.31.80.9"
        set server-identity-check disable
        set cnid "sAMAccountName"
        set dn "DC=Fortinet,DC=DomainController1"
        set type regular
        set username "carlos"
        set secure ldaps
        set ca-cert "CA_Cert_1"
        set port 636
        set password-expiry-warning enable
        set password-renewal enable
    next
end

FortiGate3 (ADLDAP) # set server 172.31.80.8
Username and password unset.

FortiGate3 (ADLDAP) # show
config user ldap
    edit "ADLDAP"
        set server "172.31.80.8"
        set server-identity-check disable
        set cnid "sAMAccountName"
        set dn "DC=Fortinet,DC=DomainController1"
        set type regular
        set secure ldaps
        set ca-cert "CA_Cert_1"
        set port 636
        set password-expiry-warning enable
        set password-renewal enable
    next
end

FortiGate3 (ADLDAP) # end
Attribute 'username' MUST be set.
Command fail. Return code -56

 

This error occurs because each time a change is made, the Username and Password credentials must be entered again.

Contributors