zowe / zebra

ZEBRA is an open-source incubator project for Zowe. It is a data parsing framework that allows quick and easy access to z/OS performance metrics.
https://zebra.talktothemainframe.com
Eclipse Public License 2.0
22 stars 13 forks source link

ZEBRA user admin - initial user/password #66

Closed fernandozangari closed 2 years ago

fernandozangari commented 2 years ago

I downloaded the new dev version but when I try the user Admin/Admin it fails, which is the default user/pswd, because I don´t find in the documentation how to solve it. Thanks

behives commented 2 years ago

Hi @fernandozangari - thanks for opening this issue, we also find it yesterday and @salisbuk7897 will take a look at this.

thanks,

Alex

salisbuk7897 commented 2 years ago

Hi @fernandozangari , do you have/create .env file in zebra src directory when you clone from zebra_dev? This file is needed to run the zebra authentication system. it should have this two variables with any value of your choice ACCESS_TOKEN =

REFRESH_TOKEN =

e.g ACCESS_TOKEN = fa2231487d37f2b0c820c07b3c961ee5b71596a3dc8e46273b74baed3508812fb81156605a6a15142616d3b64526cb8b90de4a347d403303b81803633ec7a33c

REFRESH_TOKEN = e98f94479a3745cd96f271c929e5eea3380591ba074011c4811755e2e9504c097cd8dbfb4c46ab21f29a6e0059490c44274c947f9ecac77a7199463d91dd5922

fernandozangari commented 2 years ago

I create a file create.env (adjunct create_env.txt renamed beause git doesn´t accept extention env create_env.txt ) but the situation is the same, which is the default user/pswd or a way to reset it? Thanks

salisbuk7897 commented 2 years ago

The default user is Admin/Admin

Thanks

fernandozangari commented 2 years ago

It continues with Login Failed, it seems like in some place, even if I install new versions of Zebra, allways validates to the same usr/pswd. Is there a way to reset the password?

salisbuk7897 commented 2 years ago

Yes. The default user/pwd is automatically built into zebra, it's created and saved in my.db in the src folder. For now, there is no way to reset user/pwd. You can only delete my.db and when you restart zebra, a new account with user/pwd as Admin/Admin will be created.

When I tried zebra_dev today, I realized it will allow Admin/Admin to work, it will redirect to change password page. After changing the password, zebra will crash.. that's because of the missing .env file. But the new password will be saved into my.db. so after creating .env and restarting zebra, I was able to login with my new password.

fernandozangari commented 2 years ago

I have the file create.env created, delete my.db but when I try to change the Admin password Zebra crash.

salisbuk7897 commented 2 years ago

Okay. Try deleting create from create.env , just leave the filename as .env hopefully that will solve the problem

fernandozangari commented 2 years ago

OK, now is running!! Thanks a lot!

salisbuk7897 commented 2 years ago

You are welcome @fernandozangari

behives commented 2 years ago

Re-opening this to address this issue from code level but not by work-around.

salisbuk7897 commented 2 years ago

solved with issue #54