Login Handler

Author Message

Edward Eliot

Thursday 02 September 2004 6:41:28 am

I have been reading the eZpublish book which talks about custom login handlers. It mentions that the user needs to exist in eZpublish. Is there a way to remove this depedancy or have the user created automatically if they don't already exist. Also what is the implication on permissions when using an external authentication source. Can permissions be set externally?

Tony Wood

Thursday 02 September 2004 7:25:06 am

Hi,

You could right a script to interrogate the LDAP server and then create the user based on the information in the LDAP server.
You could then assign it role rights based on an LDAP setting.

Someone may have already written this.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Paul Borgermans

Thursday 02 September 2004 9:14:35 am

Hi

The ldap handler will create non-existing users, the same is true with the texthandler. I've used both (the texthandler can be used to transfer users easily from another system, sometimes with passwords)

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Edward Eliot

Friday 03 September 2004 6:29:00 am

Thanks Paul,

Can one assign permissions the users will be created with?

Ed.

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 31 2025 06:19:52
Script start
Timing: Jan 31 2025 06:19:52
Module start 'layout'
Timing: Jan 31 2025 06:19:52
Module start 'content'
Timing: Jan 31 2025 06:19:54
Module end 'content'
Timing: Jan 31 2025 06:19:54
Script end

Main resources:

Total runtime1.4905 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.0156151.1953
Module start 'layout' 0.00610.0037 739.210936.6016
Module start 'content' 0.00981.4798 775.8125981.8359
Module end 'content' 1.48960.0009 1,757.648411.8906
Script end 1.4905  1,769.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2263160.0002
Check MTime0.00130.0841160.0001
Mysql Total
Database connection0.00110.071610.0011
Mysqli_queries1.431496.0333620.0231
Looping result0.00060.0433600.0000
Template Total1.441396.720.7207
Template load0.00270.183120.0014
Template processing1.438696.514620.7193
Template load and register function0.00170.114610.0017
states
state_id_array0.00200.137110.0020
state_identifier_array0.00280.189320.0014
Override
Cache load0.00210.1424190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.055730.0003
Fetch class attribute name0.00200.133560.0003
XML
Image XML parsing0.00140.095530.0005
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00090.0617230.0000
String conversion0.00000.000540.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
4content/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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs