Yes I kinited
# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: user@REALM
Valid starting Expires Service principal
06/09/15 17:29:38 06/10/15 03:27:56 krbtgt/REALM@REALM
renew until 06/16/15 17:27:56
06/09/15 17:29:44 06/10/15 03:27:56 HTTP/es-lb@REALM
renew until 06/16/15 17:27:56
# curl --negotiate -u : -v -b ~/cookies.txt -c ~/cookies.txt
http://es-lb:9200* About to connect() to es-lb port 9200 (#0)
* Trying X.X.X.X... connected
* Connected to es-lb (X.X.X.X) port 9200 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/
3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: es-lb:9200
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Negotiate
< Content-Type: text/plain; charset=UTF-8
< Content-Length: 0
<
* Connection #0 to host es-lb left intact
* Issue another request to this URL: '
http://es-lb:9200'
* Re-using existing connection! (#0) with host es-lb
* Connected to es-lb (X.X.X.X) port 9200 (#0)
* Server auth using GSS-Negotiate with user ''
> GET / HTTP/1.1
> Authorization: Negotiate base64encodedstring
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/
3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: es-lb:9200
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
* Authentication problem. Ignoring this.
< WWW-Authenticate: Negotiate
< Content-Type: text/plain; charset=UTF-8
< Content-Length: 0
<
* Connection #0 to host es-lb left intact
* Closing connection #0
# cat ~/cookies.txt
cat: /root/cookies.txt: No such file or directory
On server side I have the error of my first post.
Alexandre