< Home

ldap-server response-timeout

Function

The ldap-server response-timeout command sets the response timeout interval of an LDAP server.

The undo ldap-server response-timeout command restores the response timeout interval of an LDAP server to the default value.

By default, the response timeout interval of an LDAP server is 10 seconds.

Format

ldap-server response-timeout interval

undo ldap-server response-timeout

Parameters

Parameter Description Value

interval

Sets the response timeout interval of an LDAP server.

The value is an integer that ranges from 5 to 60, in seconds. The default value is 10.

Views

LDAP server template view

Default Level

3: Management level

Usage Guidelines

These commands are supported by V600R007C20SPC500 and later versions.

  1. After a device sends a request packet to an LDAP server and the device does not receive a response packet from the LDAP server within the response timeout interval:
    • If only one LDAP server is configured, the device does not retransmit the request packet to this server.
    • If primary and secondary LDAP servers are configured and the device connects to the primary LDAP server through TCP, which does not send an LDAP response packet, the device sends a request packet to the secondary LDAP server after the timeout interval. If the device fails to connect to the primary LDAP server through TCP, the device immediately sends a request packet to the secondary LDAP server.
  2. The device uses a 5-second timer to calculate the timeout interval for waiting for a response from the LDAP server. Therefore, there may be a 5-second difference between the actual timeout interval and the configured one.

Set the switchover time of the primary and secondary LDAP servers based on the timeout interval of the LDAP client to prevent the client from waiting for the response timeout during the switchover to the secondary LDAP server. The default configuration is recommended.

Example

# Set the response timeout interval of an LDAP server to 15 seconds.

<sysname> system-view
[sysname] ldap-server template test1
[sysname-ldap-test1] ldap-server response-timeout 15
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >