ldap groups <---> ez groups

Author Message

Artturi Markko

Wednesday 03 May 2006 1:11:00 pm

Hello,

I have setup Ez Publish with authentication against a ldap server.

I've read I can put a user from ldap in different groups by using a special attribute on the user ('memberof' for example).

That's fine but I think it would also be interesting to use the existing groups defined in ldap by searching in the groups for the use who logs in.
I've experienced a setup of Plone which permits that with the module LDAPUserFolder and it's quite impressive.

How it could work :

1) in the ldap setup :
-configuration of the ldap branch where groups are stored (ou=groups,dc=example,dc=com)
- configuration of some mappings
ldapGrpsToEzGrps["ldap_grp1"] = myEzGrpForLdapGrp1

2) When the user logs in, a search is performed on "ou=groups,dc=example,dc=com" for groups haing an attribute "member" or "uniquemember" equal to the dn of the authenticated user.

If that can be any source of inspiration, here's the python code of LDAPUserFolder.py

http://svn.dataflake.org/filedetails.php?repname=DataflakeSoftware&path=%2FLDAPUserFolder%2Ftrunk%2FLDAPUserFolder.py&rev=0&sc=0

Best regards,

Artturi

Artturi Markko

Saturday 02 December 2006 12:05:34 pm

A reply just for the sake of completeness as the url to this post is mentionned in the Ez 3.9 feature list.

If you're interested by this feature, you'll want to read these posts :

http://ez.no/community/forum/developer/contrib_ldap_group_mappings
http://ez.no/community/forum/developer/pb_with_ldapusermanage_php_on_ldap_contrib

Regards,

Artturi

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

Main resources:

Total runtime0.5738 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.0391152.6250
Module start 'layout' 0.00600.0030 741.664139.4453
Module start 'content' 0.00900.5635 781.1094428.3594
Module end 'content' 0.57250.0013 1,209.46888.1641
Script end 0.5738  1,217.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6062160.0002
Check MTime0.00140.2513160.0001
Mysql Total
Database connection0.00090.158110.0009
Mysqli_queries0.527091.8367520.0101
Looping result0.00050.0925500.0000
Template Total0.533893.020.2669
Template load0.00300.520920.0015
Template processing0.530892.505720.2654
Template load and register function0.00020.041510.0002
states
state_id_array0.00120.216610.0012
state_identifier_array0.00090.150420.0004
Override
Cache load0.00260.4462250.0001
Sytem overhead
Fetch class attribute can translate value0.00140.245210.0014
Fetch class attribute name0.00160.277820.0008
XML
Image XML parsing0.00030.053810.0003
class_abstraction
Instantiating content class attribute0.00000.001120.0000
General
dbfile0.00070.1208100.0001
String conversion0.00000.001240.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
2content/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
3content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs