ez publish authentication

Author Message

nicholas king

Tuesday 08 March 2011 6:30:40 am

Hello All,

we currently are having a issue with our install where users can goto the url {domain}/user/login

type in a valid username with no password and ez will log the person in as the user entered into the username box. So obviously our install is not checking passwords. Any ideas on how to force the install to check passwords on switching users?

Thanks

Nicholas

Greg McAvoy-Jensen

Tuesday 08 March 2011 8:18:20 am

In the admin interface, click on the setup tab, then upgrade > file consistency check. See if anyone has disabled password checking. This is occasionally useful during some custom development, but of course has to be reversed before the system is put into production.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

nicholas king

Wednesday 09 March 2011 1:53:39 am

Hello Greg,

That is exactly what had happened inside of /kernel/classes/datatypes/ezuser/ezuser.php

i had to search for the following line

return eZUser::createHash( $user, $password, $site, $type, $hash ) === (string) $hash;

Thanks

Nicholas

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 18 2025 02:56:37
Script start
Timing: Jan 18 2025 02:56:37
Module start 'layout'
Timing: Jan 18 2025 02:56:37
Module start 'content'
Timing: Jan 18 2025 02:56:37
Module end 'content'
Timing: Jan 18 2025 02:56:37
Script end

Main resources:

Total runtime0.9790 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.4453152.6250
Module start 'layout' 0.00730.0028 742.070339.4531
Module start 'content' 0.01010.9675 781.5234533.6641
Module end 'content' 0.97760.0014 1,315.187512.3203
Script end 0.9790  1,327.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3470160.0002
Check MTime0.00140.1386160.0001
Mysql Total
Database connection0.00100.104010.0010
Mysqli_queries0.930194.9991570.0163
Looping result0.00060.0583550.0000
Template Total0.949897.020.4749
Template load0.00200.203320.0010
Template processing0.947896.808920.4739
Template load and register function0.00080.084910.0008
states
state_id_array0.00080.080310.0008
state_identifier_array0.00190.194220.0010
Override
Cache load0.00160.1627180.0001
Sytem overhead
Fetch class attribute can translate value0.00150.152720.0007
Fetch class attribute name0.00120.125740.0003
XML
Image XML parsing0.00110.112520.0006
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00080.0806180.0000
String conversion0.00000.000840.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs