rcrowley / opendns-fetchstats

Automatically fetch your OpenDNS Top Domains data
18 stars 34 forks source link

Login failed. Check username and password. Update to 2019? #6

Open kiraitachi opened 5 years ago

kiraitachi commented 5 years ago

Hello,

I've tried looking around in OpenDNS and tweak the code here and there...but after a while I guessed it was better to ask here since someone else might have the same problem.

Im having the following problem with the Bash Script in Ubuntu 19.04

./fetchstats xxxxxxx@gmail.com CODEID 2019-06-01 2019-06-02

I get the following output:

Login failed. Check username and password.

Anything I should check or tweak in the code to make it work?

I forked your code to make the tweaks myself...checked website URL and else and still the same.

Any ideas?

Thanks!

jjstickel commented 4 years ago

Same issue for me.

jjstickel commented 4 years ago

As hinted at here:

https://support.opendns.com/hc/en-us/community/posts/220044707/comments/360004321232

I commented out the lines in the bash script fetchstats:

if [ "$SIGNIN" != "" ]; then
    echo "Login failed.  Check username and password." >&2
    exit 2
fi

And it works on my Mac. Without these lines, an incorrect login set gives: You can not access <network_id>. So, even without the login check, it is still mostly clear that incorrect credentials were provided.

jjstickel commented 4 years ago

Huh, so there is a fork that is associated with opendns:

https://support.opendns.com/hc/en-us/articles/115003528803-Using-fetchstats-to-download-top-domain-data https://github.com/opendns/opendns-fetchstats

Although it is a couple commits ahead of this repo, it still has the login problem described above. However, that repo does not have the issue tracker enabled, and so no issue can be created there.

I notice there are 30 forks in total! I wonder if any of those have this fixed. It would be nice for someone to merge a properly working version.

kiraitachi commented 4 years ago

Hi! @jjstickel

Already check most of the 30 forks...none got it working. One was close, but issues still remaining. So sad....it would be a great source of intel to plug into my Splunk.

tmanka commented 1 year ago

As hinted at here:

https://support.opendns.com/hc/en-us/community/posts/220044707/comments/360004321232

I commented out the lines in the bash script fetchstats:

if [ "$SIGNIN" != "" ]; then
  echo "Login failed.  Check username and password." >&2
  exit 2
fi

And it works on my Mac. Without these lines, an incorrect login set gives: You can not access <network_id>. So, even without the login check, it is still mostly clear that incorrect credentials were provided.

Can confirm this worked for me