Forums / Developer / Get clear password in custom edit handler

Get clear password in custom edit handler

Author Message

Guillaume Kulakowski

Sunday 26 July 2009 10:13:08 am

Hi,

I would like sync the eZ Publish password with an another script.
The problem is that the two scipts have a different crypto method...

I would like get the password not crypted in a "custom edit handler" for set my other application with it.

The problème is that I haven't clear pasword in the eZContentObjectEditHandler methods...

An idea ?

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

André R.

Sunday 26 July 2009 12:39:43 pm

post params maybe?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Steven E. Bailey

Sunday 26 July 2009 1:33:11 pm

The only way(s) I can think of that you can do this is brute force it - which depending on the number of users and their level of sophistication may not be worth it (I have found that using dictionaries and some minor processing on a non-sophisticated user base that about 40% are crackable without breaking a sweat). The only other way is to capture the password when a user logs in and do whatever processing needs to be done at that point in time which is what I guess André was alluding to.

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

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

André R.

Sunday 26 July 2009 2:06:18 pm

> at that point in time which is what I guess André was alluding to.

Yes, but as he mentioned edit handler I suggested looping the $_POST variable and find the password value when the user edits his profile. Just make sure you don't do anything when it is the default star values :)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Guillaume Kulakowski

Monday 27 July 2009 12:14:53 am

Thx André. In fact, I have do that, but I was find a better way... But if noo better way exist, my function works

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

eZ debug

Timing: Jan 19 2025 19:56:33
Script start
Timing: Jan 19 2025 19:56:33
Module start 'content'
Timing: Jan 19 2025 19:56:33
Module end 'content'
Timing: Jan 19 2025 19:56:33
Script end

Main resources:

Total runtime0.1346 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.0859180.8125
Module start 'content' 0.00620.0072 769.898497.9297
Module end 'content' 0.01340.1211 867.8281530.2500
Script end 0.1345  1,398.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00372.7658200.0002
Check MTime0.00141.0050200.0001
Mysql Total
Database connection0.00080.625610.0008
Mysqli_queries0.091067.60691410.0006
Looping result0.00110.78121390.0000
Template Total0.120489.510.1204
Template load0.00090.642810.0009
Template processing0.119588.805510.1195
Override
Cache load0.00060.422810.0006
Sytem overhead
Fetch class attribute can translate value0.00060.481610.0006
XML
Image XML parsing0.00020.181310.0002
General
dbfile0.00664.9333200.0003
String conversion0.00000.003730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs