Objective
This article describes how to use the command line interface to test LDAP authentication settings instead of the Graphical User Interface (GUI) on a Access Gateway Enterprise Edition appliance.
In some scenarios, the following error appears when you click the Retrieve Attributes link:
“Connection to LDAP server could not be established. There may be some network problem or incorrect connection parameters.” All the network settings such as SNIP and routes are configured, and the port on the backend server which can be reached from the appliance, is open.
This error occurs because the computer client accessing the GUI failed to reach the backend server directly instead of the appliance.
Background
You can configure the Authentication Server on the appliance by specifying the backend server, port, and connection settings.In some scenarios, the following error appears when you click the Retrieve Attributes link:
“Connection to LDAP server could not be established. There may be some network problem or incorrect connection parameters.” All the network settings such as SNIP and routes are configured, and the port on the backend server which can be reached from the appliance, is open.
This error occurs because the computer client accessing the GUI failed to reach the backend server directly instead of the appliance.
Instructions
To test LDAP authentication settings by using the command line interface, run the following command:
> shell
root@test# ldapsearch -b "DC=sli,DC=bz" -D "administrator@agee.lab" -h 192.168.0.1 -p 389 -w "password"
Where
-b: base DN (Distinguished Name)
-D: Administrator Bind DN
-h: IP address of Server
-p: Port on Server
-w: Administrator Password
This command retrieves LDAP information from the backend server.