Lost my admin access to a site, need help

Author Message

Jorge estévez

Wednesday 18 May 2011 7:15:46 pm

My site (developed with version 4.3 of eZ Publish) has suddenly stopped accepting my login/password as the administrator of the site, neither frontend or backend site will let me go beyond the login page.

The frontend and backend logged out, I could noticed it because of a page refresh. I was working without problems a few hours earlier.

Really strange, I have been developing this site for a few months with thousands of information and I was very happy because the 4.3 version works like a charm.

I have not done any changes at all in users/roles or apache/mysql configuration, in fact I was working with CSS definitions for the past four days.

If someone knows how to hack the database so I can login again…

Thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Marko Žmak

Wednesday 18 May 2011 11:30:04 pm

Are there any ohter accounts that can log in? Is this problem only with the admin user or with all the users?

Turn on debug output and see if you get some usefull info there.

As for chaning the forgotten password you can use the forgottpassword feature (usually located at yoursite.com/user/forgotpassword), or you can see here:

  • http://ezpedia.org/fr/solution/reseting_the_admin_password_in_ez_publish

(it's the 5th result when googling "ez publish retrieve password")

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Steven E. Bailey

Thursday 19 May 2011 1:25:32 am

Did your site.ini change?  If someone changed the [UserSettings] HashType you wouldn't be able to log in anymore.  Or, if your HashType is not the default md5_user but md5_site and someone changed the SiteName, you also wouldn't be able to log in.

If the forgotpassword doesn't work for you and you have access to the database then go to the ezuser table and you can change your password hash which will change the password.  If the password_hash_type is 2, that's the default.  then you can generate a new hash by doing this:

<?php echo md5(<name>."\n".<password>); ?>

If it's not the default then the string to generate the password will be different but easy to find out by looking at the code.

Edit: putting the code in a literal tag to turn off the emoticon.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 17 2025 23:40:42
Script start
Timing: Jan 17 2025 23:40:42
Module start 'layout'
Timing: Jan 17 2025 23:40:42
Module start 'content'
Timing: Jan 17 2025 23:40:43
Module end 'content'
Timing: Jan 17 2025 23:40:43
Script end

Main resources:

Total runtime0.8211 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0391152.6406
Module start 'layout' 0.00580.0034 740.679739.4688
Module start 'content' 0.00920.8106 780.1484591.7813
Module end 'content' 0.81980.0012 1,371.929712.1406
Script end 0.8210  1,384.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5386160.0003
Check MTime0.00210.2554160.0001
Mysql Total
Database connection0.00070.084910.0007
Mysqli_queries0.768893.6394590.0130
Looping result0.00050.0656570.0000
Template Total0.787795.920.3939
Template load0.00320.388820.0016
Template processing0.784595.548020.3923
Template load and register function0.00010.015610.0001
states
state_id_array0.00140.176210.0014
state_identifier_array0.00080.092420.0004
Override
Cache load0.00280.3442250.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072230.0002
Fetch class attribute name0.00090.111850.0002
XML
Image XML parsing0.00130.152630.0004
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00090.1079250.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs