LDAP - How to

Author Message

luis muñoz

Monday 11 July 2005 7:25:04 am

Hi,
i,m trying to setup ez to work with an ldap server but it seems to be not too easy. I have a few questions.

Is there any up to date tutorial or documentation on how to set up ez to work with ldap? I mean step by step, for people wich never used an LDAP server before.

Do i have to create any thing in the LDAP server? I mean classes, specific structure...

When a new user is created in ez, is it replicated in LDAP autoomatically, duplicated with a cron, or not duplicated?

How can i check if ez is comunicating with LDAP or i misconfigured ez or LDAP? Looks like no error/access log is created in ez, openldap or system log

Thank you for your help

Luis

luis muñoz

Wednesday 13 July 2005 6:15:29 am

In ldap.ini, what is the correct value for the lines:

LDAPSearchScope=sub
# Use the equla sign to replace "=" when specify LDAPBaseDn or LDAPSearchFilters
LDAPEqualSign=--
# Add extra search requirment. Uncomment it if you don't need it.
# Example LDAPSearchFilters[]=objectClass--inetOrgPerson
LDAPSearchFilters[]
# LDAP attribute for login. Normally, uid
LDAPLoginAttribute=uid
# Could be id or name
LDAPUserGroupType=id
# Default place to store LDAP users. Could be content object id or group name for LDAP user group,
# depends on LDAPUserGroupType.
LDAPUserGroup[]
# LDAP attribute type for user group. Could be name or id
LDAPUserGroupAttributeType=name
# LDAP attribute for user group. For example, employeetype. If specified, LDAP users
# will be saved under the same group as in LDAP server.
LDAPUserGroupAttribute=employeetype
# LDAP attribute for First name. Normally, givenname
LDAPFirstNameAttribute=givenname
# LDAP attribute for Last name. Normally, sn
LDAPLastNameAttribute=sn
# LDAP attribute for email. Normally, mail
LDAPEmailAttribute=mail
# LDAP encoding is utf-8 or not
Utf8Encoding=false

I cannot find documentation on this and need to make it work.

kracker (the)

Wednesday 13 July 2005 2:58:37 pm

I can't seem to find the post now but I know there have been a few really good contributions to the forums regarding this subject.

Specifically I remember a post that was basically a step by step explanation on how another developer accomplished this ...

So, I'd say use google to read every LDAP mention on ez.no, it might take a while but I know you'll learn a lot if you do the reading.
http://www.google.com/search?num=50&hl=en&lr=&safe=off&c2coff=1&q=site%3Aez.no+LDAP+HowTo&btnG=Search

Also this forum post wasn't the one I was looking for but was detailed...
http://ez.no/community/user_groups/ezug_edu/forum_of_ezug_edu/creating_av_secure_ldap_enabled_ez_site
http://home2.hit.no/~jonnybe/eZ/docs/creating_secure_authentication.pdf

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

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 15:18:59
Script start
Timing: Jan 18 2025 15:18:59
Module start 'layout'
Timing: Jan 18 2025 15:18:59
Module start 'content'
Timing: Jan 18 2025 15:19:00
Module end 'content'
Timing: Jan 18 2025 15:19:00
Script end

Main resources:

Total runtime0.7997 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7891152.6094
Module start 'layout' 0.00630.0072 740.398439.3984
Module start 'content' 0.01350.7849 779.7969540.2031
Module end 'content' 0.79840.0013 1,320.000012.2031
Script end 0.7997  1,332.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4717160.0002
Check MTime0.00150.1862160.0001
Mysql Total
Database connection0.00080.102810.0008
Mysqli_queries0.744793.1219570.0131
Looping result0.00060.0810550.0000
Template Total0.760295.120.3801
Template load0.00240.302320.0012
Template processing0.757794.752020.3789
Template load and register function0.00020.025010.0002
states
state_id_array0.00110.142610.0011
state_identifier_array0.00130.164920.0007
Override
Cache load0.00200.2534240.0001
Sytem overhead
Fetch class attribute can translate value0.00080.094220.0004
Fetch class attribute name0.00130.167240.0003
XML
Image XML parsing0.00090.114820.0005
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00090.1097180.0000
String conversion0.00000.002040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs