Testing an LDAP Provider
Using cURL, you can test your LDAP configuration as follows:
Open the command line on an external client.
Note cURL is not a built-in command line utility in Windows.
Enter the following command to list the contents of the directory
tmp/test
:curl -i -k -u ldap_user : password -X GET / 'https:// gateway_host :8443/ gateway_path / cluster_name /webhdfs/api/v1/tmp/test?op=LISTSTATUS'
If the directory exists, a content list displays; if the user cannot be authenticated, the request is rejected with an HTTP status of 401 unauthorized.