Small Python script to perform HTTP SPNEGO authentication in command line
OpenStack Command-line Interface
This script is particularly useful when attempting to use Moonshot authentication when communicating to a REST-API server (such as current OpenStack).
This Python 2 script (https://bitbucket.org/umujisc/pynegotiate_client/) performs the client-side of an HTTP Negotiate (aka. GSS-API for HTTP) authentication. Its purpose is similar to curl, in the sense that it everything goes well (the user is authenticated and the resource exists, it dumps the targeted resource data (e.g. HTML web page, JSON document, etc).
How to use it
usage: pynegotiate_client.py [-h] [-i ITERATIONS] [-d DELAY] [-w WAIT] [-v] url positional arguments: url The url of the protected resource (including the http:// or https://). optional arguments: -h, --help show this help message and exit -i ITERATIONS, --iterations ITERATIONS The number of times the script will request the resource. For stress tests. -d DELAY, --delay DELAY The delay between different requests within the same iteration. -w WAIT, --wait WAIT The delay between different iterations. -v, --verbose Show sent/received GSS API tokens.