Forums / Install & configuration / I dont know how to integrate my eZ Publish with my LDAP Server

I dont know how to integrate my eZ Publish with my LDAP Server

Author Message

Leandro Alves

Tuesday 18 May 2004 9:12:25 am

Hi All!!!

I am trying to integrate my eZ Publish with my LDAP Server but it isn´t working.. :-(

My system:

Red Hat Linux 9
Apache/1.3.27
PHP/4.3.2
Mysql/4.0.13
eZ Publish/3.4.0beta1
LDAP Server: Active Directory on Windows 2003
Company Domain: ceb.unicamp.br
LDAP Server name: real.ceb.unicamp.br

LDAP support in PHP is enable, I compiled with "--with-ldap" configuration option...

I followed all steps on "Using LDAP server"
http://www.ez.no/ez_publish/documentation/configuration/configuration/login_handler/using_ldap_server document to configure my ldap.ini file, but I know that I did some mistake... :(

I created a <ez dir>/settings/override/site.ini.append.php with:

[UserSettings]
#LoginHandler[]=standard
<b>LoginHandler[]=LDAP</b>

And I created a <ez dir>/settings/override/ldap.ini.append.php file with following content..

<?php /* #?ini charset="iso-8859-1"?

[LDAPSettings]
# Set to true if use LDAP server
LDAPEnabled=true
# LDAP host
<b>LDAPServer=real.ceb.unicamp.br</b>
# Port nr for LDAP, default is 389
LDAPPort=389
# Specifies the base DN for the directory.
<b>LDAPBaseDn=ou--informatica,o--ceb,o--unicamp,o--br</b>
# Could be sub, one, base.
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.
<b>LDAPUserGroup=12</b>
# 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.
<b>LDAPUserGroupAttribute=employeetype</b>
# 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 don&acute;t know if my ldap.ini.append.php file is right!!! (Please help with it)

After I did these modifications I opened my site on web browser and tried to login in it with a username and password of my LDAP Server... But it didn&acute;t work, I couldn&acute;t to access my site and appeared the message:

Could not login
A valid username and password is required to login

<b>I did nothing after to modify the both ldap.ini.append.php and site.ini.append.php file...</b>

I need to modify anything in my eZ Publish?
I need to create anything???

PLEASE, What Can I do to my eZ Publish works with my LDAP Server????

I tried to use the eZ Publish 3.3-5, but it didn&acute;t work too.

I saw all message in http://ez.no/content/search?SearchText=LDAP but I didn&acute;t find the answer...

I have a squid proxy in my Linux authenticating in this LDAP Server and it is working fine!

Thanks a lot!
Leandro

eZ debug

Timing: Jan 18 2025 20:49:36
Script start
Timing: Jan 18 2025 20:49:36
Module start 'content'
Timing: Jan 18 2025 20:49:36
Module end 'content'
Timing: Jan 18 2025 20:49:36
Script end

Main resources:

Total runtime0.7575 sec
Peak memory usage4,096.0000 KB
Database Queries47

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.0859180.7891
Module start 'content' 0.00730.7411 768.8750426.4063
Module end 'content' 0.74840.0090 1,195.281342.0234
Script end 0.7574  1,237.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4078140.0002
Check MTime0.00140.1892140.0001
Mysql Total
Database connection0.00100.127510.0010
Mysqli_queries0.703392.8469470.0150
Looping result0.00040.0557450.0000
Template Total0.727596.020.3638
Template load0.00260.337020.0013
Template processing0.724995.708820.3625
Template load and register function0.00030.037910.0003
states
state_id_array0.00110.140710.0011
state_identifier_array0.00110.145120.0005
Override
Cache load0.00170.2273730.0000
Sytem overhead
Fetch class attribute can translate value0.00070.096210.0007
Fetch class attribute name0.00150.199510.0015
XML
Image XML parsing0.00010.015310.0001
class_abstraction
Instantiating content class attribute0.00000.001710.0000
General
dbfile0.00460.6138120.0004
String conversion0.00000.000830.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs