Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6 (Latest Release) > Troubleshooting and Problems

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-04-2008, 05:56 PM
365giveaway 365giveaway is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Unhappy Cant Login??

Hi all It seems i thought i know what my login and password was but i can remember so i checked the phpadmin DB and found the login but password is all numbers ect about 20 and i copyed them to the admin login but still no joy and i keep getting emails to me saying login attempt failed??

any ideas??

Craig

Last edited by 365giveaway; 02-04-2008 at 06:16 PM.
Reply With Quote
  #2  
Old 02-04-2008, 06:40 PM
torusturtle torusturtle is offline
Junior Member
 
Join Date: Jan 2008
Location: Luzern (Switzerland)
Posts: 9
Default

The password is saved as a md5 hash. It is not possible the reconstruct the original password.

Instead go to your MySQL admin tool (eg. phpMyAdmin) and use this SQL Query:

Code:
update ost_staff set passwd = md5(yournewpassword) where username='admin';
Reply With Quote
  #3  
Old 02-04-2008, 06:42 PM
4ice 4ice is offline
Senior Member
 
Join Date: Jan 2008
Posts: 531
Default

Did you really expect to find your password plain text in the DB? Passwords should always be encrypted, just like they are in this case.

Anyway, what you can do is set the password in the db to: 04ca3c2a1ee24aa29541a0de2a822455 and then try to login with your username and adermin as a password.

Edit: torusturtle was a little faster and has a good solution as well.
Reply With Quote
  #4  
Old 02-04-2008, 06:53 PM
365giveaway 365giveaway is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Smile

Thanks for help and no i didnt intend on finding actual password but i guess at least i know where to check if the problem just was not too sure which section

Cheers for help though
Just a point to make it would be really Good if there was a "FORGOT password" in admin as in many other scripts. and also i was not sure it blocked me out for so long as in a few shopping cart scripts i use

thanks any way
Reply With Quote
  #5  
Old 02-04-2008, 07:38 PM
365giveaway 365giveaway is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default

HI I really appriciate your help and i tried all of them did the sql as said and got error:

Code:
#1054 - Unknown column 'yournewpassword' in 'field list'
obviously i used my own password but same thing

i used ecactly this

Code:
update ost_staff set passwd = md5(yournewpassword) where username='admin';
I can see the user name and password there when i browse the ost_staff but it still will not let me log in??

Last edited by 365giveaway; 02-04-2008 at 07:42 PM.
Reply With Quote
  #6  
Old 02-05-2008, 03:44 AM
Corey Corey is offline
Senior Member
 
Join Date: Jan 2008
Location: St.Louis, Missouri USA
Posts: 396
Send a message via AIM to Corey Send a message via MSN to Corey Send a message via Yahoo to Corey Send a message via Skype™ to Corey
Default

Use this:

Quote:
UPDATE `ost_staff` SET `passwd` = '21232f297a57a5a743894a0e4a801fc3' WHERE `ost_staff`.`staff_id` =1 LIMIT 1 ;
This sets the password to 'admin'.

So when you login, use the first account you made and login with the password admin.

If that doesn't work try this:
Quote:
UPDATE `ost_staff` SET `passwd` = '21232f297a57a5a743894a0e4a801fc3' WHERE `username` = 'admin' LIMIT 1 ;
Again, you would login with the following information:
Username: admin
Password: admin

Once you are able to login, I suggest to change your password to something else.

Last edited by Corey; 02-05-2008 at 03:55 AM.
Reply With Quote
  #7  
Old 05-22-2008, 08:57 PM
theMezz theMezz is offline
Junior Member
 
Join Date: Mar 2008
Posts: 20
Default

Quote:
Originally Posted by Corey View Post
Use this:



This sets the password to 'admin'.

So when you login, use the first account you made and login with the password admin.

If that doesn't work try this:


Again, you would login with the following information:
Username: admin
Password: admin

Once you are able to login, I suggest to change your password to something else.

where do we type that???
Reply With Quote
  #8  
Old 05-23-2008, 02:16 AM
4ice 4ice is offline
Senior Member
 
Join Date: Jan 2008
Posts: 531
Default

I assume you want to know where you can type the sql query? This can be entered in phpMyAdmin, or you can also create a little php script that executes this code.
__________________
Ask not what osTicket community can do for you - ask what you can do for osTicket community
Reply With Quote
  #9  
Old 05-25-2008, 04:48 PM
theMezz theMezz is offline
Junior Member
 
Join Date: Mar 2008
Posts: 20
Default

Quote:
Originally Posted by 4ice View Post
I assume you want to know where you can type the sql query? This can be entered in phpMyAdmin, or you can also create a little php script that executes this code.
thanks
I just did a reinstall
It was faster !!!

It was a clean install anyway

Thanks,
Joe
Reply With Quote
  #10  
Old 09-30-2008, 04:33 PM
omegafirebolt omegafirebolt is offline
Junior Member
 
Join Date: Sep 2008
Posts: 1
Default

Ok, first of all, get phpmyadmin or MySQL Administrator, you can do sql entries with either.

Secondly... the sql code torusturtle gave does work, you just have to change it slightly with MySQL Administrator, I don't know about phpmyadmin as I haven't tried it.

Code:
update dbname.ost_staff set passwd = md5("yournewpassword") where username='admin';
The dbname.ost_staff, I had more than one db meaning I had to supply a db name, so you may not have to do that and may be able to just use ost_staff instead. If you do need to supply one though, change dbname to the name of your database, such as helpdesk.ost_staff or whatever your db name is. The yournewpassword part MUST be in quotes or sql thinks it that yournewpassword is an sql command and starts scratching it's head. Basically, you get the same error that 365giveaway got if you don't have the quotes.

Thanks torusturtle, I should have known it was just an md5 hashing of the password but sometimes programmers throw in a few twists when it comes to encrypting passwords for php databases. You saved me a lot of time and saved me from a headache.
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:51 AM.