Forums / Developer / LDAP cronjob trouble with SimpleMapping

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

eZ debug

Timing: Jan 20 2025 14:34:53
Script start
Timing: Jan 20 2025 14:34:53
Module start 'content'
Timing: Jan 20 2025 14:34:53
Module end 'content'
Timing: Jan 20 2025 14:34:53
Script end

Main resources:

Total runtime0.0146 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 590.3438180.8281
Module start 'content' 0.00580.0046 771.171989.8984
Module end 'content' 0.01040.0042 861.070366.7031
Script end 0.0146  927.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001913.1844120.0002
Check MTime0.00106.6240120.0001
Mysql Total
Database connection0.00064.198410.0006
Mysqli_queries0.002919.916140.0007
Looping result0.00000.096320.0000
Template Total0.003926.810.0039
Template load0.00074.970510.0007
Template processing0.003221.806310.0032
Override
Cache load0.00053.587910.0005
General
dbfile0.00053.1357100.0000
String conversion0.00000.040830.0000
Note: percentages do not add up to 100% because some accumulators overlap

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.0001 secs