Not prompting for password?!

security

(James) #1

I have ES 2.0 and latest Shield that I downloaded today (12/01/15) - not sure how to tell which version I have.

My curl tool version is as follows:
curl 7.40.0 (x86_64-pc-win32) libcurl/7.40.0 OpenSSL/1.0.1g zlib/1.2.8 WinIDN libssh2/1.4.3_DEV
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz

I have just added es_admin admin user per instructions and I can run the basic commands against the ES engine using curl, but I have to specify the userid:password in the command, if I don't the command just hangs there waiting and no matter what I put in there it just sits there waiting.... what am I missing?!

jjdepaul@myhost /cygdrive/c/elasticsearch-2.0.0/bin/shield
$ curl -u es_admin -XGET localhost:9200/_shield

The cursor sits just below the cmd on an empty line and takes input characters that I type, but entering a pwd in there doesn't seem to make it work...

Only this version of the cmd will work for me:

jjdepaul@myhost /cygdrive/c/elasticsearch-2.0.0/bin/shield
$ curl -u es_admin:pa$$word -XGET localhost:9200/_shield


(Jay Modi) #2

Can you try using curl -v to output additional information to see what is happening? Also, do you have the same issue in a different client such as a web browser?


(James) #3

I tried -v in curl command and it made no difference.... and it works in DOS shell using curl command and it works in the browswer using RESTclient Add on for FF - just like it should.

I'm thinking that maybe it's the cygwin issue!?


(Jay Modi) #4

That is what I am thinking as well


(James) #5

I have a work-around, so no biggie. If you need to close this, go ahead. Thx -


(system) #6