The ldap-server authentication-filter command configures filtering parameters for the LDAP authentication server.
The undo ldap-server authentication-filter command restores the filtering parameter to the default value, that is, all users are allowed to be authenticated.
By default, the filtering parameter is set to objectclass=*, which indicates that all users are allowed to be authenticated.
ldap-server authentication-filter authentication-filter-name
undo ldap-server authentication-filter
| Parameter | Description | Value |
|---|---|---|
| authentication-filter-name | Specifies the filtering parameter of the LDAP server. | The value is a string in the range from 1 to 256. When the string contains spaces, it must be quoted by double quotation marks (""). |
If authentication is performed only on users who match the filtering parameter, this parameter is required. After this parameter is specified, only the users who match the filtering parameter can be authenticated.
The value of the filtering parameter is specified based on the actual organizational structure on the server.
# The domain name of the AD LDAP server is test.com, and ou=users has two security groups: a and b. Allow all users in security group a to be authenticated.
<sysname> system-view [sysname] ldap-server template temp1 [sysname-ldap-temp1] ldap-server authentication-filter (memberof=cn=a,ou=users,dc=test,dc=com)