LDAP cronjob trouble with SimpleMapping

Author Message

Nicklas Lundgren

Sunday 15 June 2008 1:07:47 pm

Hi folks,
I have been struggling with the LDAP login handler, and finally got it to work, fetching users from an Active Directory and placing them in the right eZ user groups with SimpleMapping.

However, when trying to keep these users updated by running the cronjob script ldapusermanage.php, I got really disappointed.

It´s obvious that this script has not been updated to work with SimpleMapping. So my question is - how do you guys handle this in your implementations? Have you written your own scripts, or are you sticking to the old mappingtype "UseGroupAttribute"?

My problem is that I cant use this one, as the Active Directory doesnt seem to have a GroupAttribute in the users data...

All suggestions are very welcome!

(I am running eZ 3.9.4)

Best regards,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

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 20 2025 17:37:47
Script start
Timing: Jan 20 2025 17:37:47
Module start 'layout'
Timing: Jan 20 2025 17:37:47
Module start 'content'
Timing: Jan 20 2025 17:37:48
Module end 'content'
Timing: Jan 20 2025 17:37:48
Script end

Main resources:

Total runtime0.8167 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.0234151.2266
Module start 'layout' 0.00540.0032 740.250036.6797
Module start 'content' 0.00860.8072 776.9297492.9219
Module end 'content' 0.81580.0009 1,269.85167.8281
Script end 0.8166  1,277.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4142160.0002
Check MTime0.00140.1678160.0001
Mysql Total
Database connection0.00080.092610.0008
Mysqli_queries0.781195.6428460.0170
Looping result0.00040.0482440.0000
Template Total0.786496.320.3932
Template load0.00220.265020.0011
Template processing0.784296.024320.3921
Template load and register function0.00010.011910.0001
states
state_id_array0.00180.214610.0018
state_identifier_array0.00200.239720.0010
Override
Cache load0.00180.2160130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.071910.0006
Fetch class attribute name0.00050.066020.0003
XML
Image XML parsing0.00060.068810.0006
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00170.2027170.0001
String conversion0.00000.001140.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs