Forums / Setup & design / LDAP questions

LDAP questions

Author Message

francis Nart

Monday 20 June 2005 6:46:42 am

Hi,

we need a LDAP config but I don't quite get it.

We have one eZ install, we configure eZ so that it gets its login info from an LDAP server.
Problem is, where are the rights/rules infos ? In eZ ? If so, what's the point of using LDAP if we have to duplicate the user in eZ with all the info ?

Am I missing something here ?

thanks for your help.

Arran Price

Monday 20 June 2005 7:04:43 pm

Hi Francis,
Im not using LDAP with ezpublish but my understanding (and Im sure and hope someone will point out if Im wrong), is that yes you do store the roles/permissions inside ezpublish.
The poing in using ldap with ezpublish is simply to allow the same username/password to be managed across multiple applications from a single point. This is in most cases a big benefit.

Arran

Romain Chartier

Tuesday 21 June 2005 12:24:26 am

Hi,

If you set your site.ini as:

#LoginHandler[]=Standard
LoginHandler[]=LDAP

Then, LDAP is only used by ez the first time the user connects on the site. This creates a new user in DB. Then, when you want to modify user's password, it only modifies the DB and not LDAP.

When you want to log in with the new password, it doesn't work but with the old one (recorded into LDAP), it works.

It depends from your configuration, but when I use both login handlers, both passwords works to log in.

LoginHandler[]=Standard
LoginHandler[]=LDAP

Does anybody know if a modification of ez has been built to make user password updates changes into LDAP from ez?

Jonny Bergkvist

Tuesday 21 June 2005 1:35:30 am

Hi!

Changing LDAP-passwords from eZ is not supported in the LDAPHandler (but it is of course possible to make support for it).

I made a general howto on LDAP-setup, read it if you need some guidelines:
http://ez.no/community/user_groups/ezug_edu/forum_of_ezug_edu/creating_av_secure_ldap_enabled_ez_site

francis Nart

Wednesday 22 June 2005 5:40:26 am

Hello Jonny,

First of all, thanks for your reply and the link to your pdf doc.
But my question is still the same. Apparently, the rules/permissions still are in eZ and there is no sync between the LDAP and eZ (am I right ?). If that's so...why using it for you need to create your users in eZ AND in LDAP ?

Or I am missing something here !
Or is it possible to set permissions only using groups in LDAP so :

1 - create groups of users in eZ with permissions on content

2 - use LDAP to connect and use the groups in LDAP ?

Is it possible ? Is it a solution ?

Again : if users have to be duplicated manually , I only see drawbacks...

Thanks

Francis.

Mikael Johansson

Tuesday 28 June 2005 2:54:25 am

I'm just getting started with eZpublish, but here is an idea (that I'm partly using already):

What we are doing is that that when people login for the first time, a ldap query is done for the user's name, e-mail and group. The user is then added to the eZpublish database with correct group and other details.

At subsequent logins, only the information in the eZpublish database is used (no ldap query is made)

This works well if your ldap directory is fairly static, but I don't think it would be hard to do the query every time the user logs in and update the database accordingly.

I have based the code that adds users at login time on http://www.ez.no/community/forum/developer/adding_multiple_users

The code is called from within myLoginHandler (see http://ez.no/ez_publish/documentation/configuration/configuration/login_handler)

Mikael Johansson, Sweden

francis Nart

Tuesday 28 June 2005 3:01:52 am

thanks Mikael.

eZ debug

Timing: Jan 18 2025 11:41:12
Script start
Timing: Jan 18 2025 11:41:12
Module start 'content'
Timing: Jan 18 2025 11:41:13
Module end 'content'
Timing: Jan 18 2025 11:41:13
Script end

Main resources:

Total runtime0.8217 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.6016180.8516
Module start 'content' 0.00670.6740 768.4531686.2578
Module end 'content' 0.68070.1409 1,454.7109336.4688
Script end 0.8216  1,791.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5743210.0002
Check MTime0.00170.2019210.0001
Mysql Total
Database connection0.00070.084210.0007
Mysqli_queries0.740690.12622120.0035
Looping result0.00230.27692100.0000
Template Total0.790496.220.3952
Template load0.00220.262120.0011
Template processing0.788295.921120.3941
Template load and register function0.00020.030110.0002
states
state_id_array0.00120.146010.0012
state_identifier_array0.00170.204020.0008
Override
Cache load0.00190.2333520.0000
Sytem overhead
Fetch class attribute can translate value0.00190.235160.0003
Fetch class attribute name0.00110.137780.0001
XML
Image XML parsing0.00120.143560.0002
class_abstraction
Instantiating content class attribute0.00000.002280.0000
General
dbfile0.00230.2776270.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs