Page 1 of 1

More Password Miseries

Posted: Thu Oct 02, 2008 11:54 pm
by metajon
Hello garvinhicking,

I was wondering if it is possible to hardcode a new user ID and password into the installed database?

I am having similiar issues to this thread

http://board.s9y.org/viewtopic.php?t=7 ... ogin+admin

Full fresh install. Install is fine. Here's my working admin page:
http://www.parkview-baptist-church.org/ ... _admin.php
Everything works but I cannot log in. Obviously, without being able to log into the administration area interface I cannot change or alter my login names and passwords, add users etc. However, I do have access directly to the SQL database.

Is it possible/advisable to directly alter the main/primary user id and password there? Will that break the app?

What is really odd is that I can log into MyPHPAdmin just fine using the original login id and pw but I can't use the same thing to get past serendipity_admin.php.

Any help would be appreciated.

-Metajon

Re: More Password Miseries

Posted: Fri Oct 03, 2008 12:45 pm
by garvinhicking
Hi!

You can access the DB directly. Check out the serendipity_authors DB table. It holds your login name and an MD5-encrypted Password. You can overwrite those with your custom/wantedvalues.


s9y and PMA use different login routines. It could also be that your PHP session management does not work, and doesnotallow s9y to authenticate you properly,while PMA might use a cookie login or a HTTP Auth login.

Also, does your username or password maybe contain special characters like umlauts or high ascii bytes? Those can make trouble in charset transcoding.

Regards,
Garvin