Configuring Proxy with Apache Knox
Also available as:
PDF
loading table of contents...

Test an LDAP Provider

Using cURL, you can test your LDAP configuration.

  1. Open the command line on an external client.
    Note
    Note

    cURL is not a built-in command line utility in Windows.

  2. 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.