Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to revover or reset password #196

Closed
0xErnie opened this issue Feb 10, 2014 · 11 comments
Closed

How to revover or reset password #196

0xErnie opened this issue Feb 10, 2014 · 11 comments
Labels

Comments

@0xErnie
Copy link

0xErnie commented Feb 10, 2014

It seems like I lost my password, how can I either set a new one or recover the old one?

@ahaerpfer
Copy link

Danger: no guarantees ... this worked for me, it might not work for you!

I assume you are talking about the Baïkal admin password. The hash of the admin PW is stored at the end of Specific/config.php. What worked for me was to delete the config file and re-do the configuration step:

cd /your/install/location/Specific
mv config.php config.php.old
touch ENABLE_INSTALL

and then navigate to

http://yourbaikal.example.com/admin

This should bring up the installation/configuration dialog which also allows to set a new admin PW. When I tried this my SQLite DB file in Specific/db/db.sqlite was untouched, i.e. all the data was still there ...

... anyway, make a backup first!

Cheers
-Andi

@ftoledo
Copy link

ftoledo commented Nov 13, 2014

Another solution:
you can get the defined auth realm in Specific/config.system.php :
then

php -r 'echo md5("admin:the_auth_realm_string:your_new_password');'
and put the result at the end off Specific/config.php file. (in the BAIKAL_ADMIN_PASSWORDHASH define)

@netgusto
Copy link
Member

Thanks !

@cimm
Copy link
Contributor

cimm commented Sep 13, 2017

Maybe this could be added to the documentation?

@sicherist
Copy link

sicherist commented Aug 3, 2018

@ftoledo Thank you. However for it to work I had to change the single quotation mark after the new password to a double quotation mark. The default auth-realm-string was "BaikalDAV". So for future reference:
php -r 'echo md5("admin:BaikalDAV:your_new_password");'

@niouniou49
Copy link

HI here thanks for the advice
I have lost my baikal admin password
but I m unable to find the location of the file to be modified, I have a yunohost environnement
could you please help me here?

@ftoledo
Copy link

ftoledo commented Oct 1, 2020

@niouniou49 I'm sorry, I don't use baikal at this time.
this is a old issue, maybe this workaround can not be apply to newest source code.
Saludo!

@e-dschungel
Copy link

e-dschungel commented Nov 22, 2020

In Baikal 0.7.2 (don't know in which version the hash changed) the SHA256 Algorithm is used. The config file is located in config/baikal.yaml since 0.7.0.

So to regenerate a hash you need to do
php -r 'echo hash("sha256", "admin:the_auth_realm_string:your_new_password');'

and enter the hash in config/baikal.yaml

@saykosincap
Copy link

Hi guys, I have same problem. How can I connect to my baikal x-10 to change the password on config.php? I couldn't reach to config.php file to change the password. I am putting micro sd card to my computer but files cannot read by windows 10. I also try to connect to baikal x10 by usb cable but still couldn't reach the file. Thank you.

@ahaerpfer
Copy link

"Baikal X-10" ??? I guess you have taken a wrong turn somewhere 😉 This is about the calendar and contacts server software and not about the mining HW you seem to refer to.

@saykosincap
Copy link

Ahhhhhh :)) OK now eveyrhing is clear for me :)) Thank you for your kind help :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants