Forums / Install & configuration / LDAP / Active Directory authentication

LDAP / Active Directory authentication

Author Message

Juan Asensio Sánchez

Monday 18 August 2008 2:38:12 am

Hi

I am very new to eZ Publish. We are evaluating eZ Publish ti implement it in some of our clients. The main requirement is the authentication against an LDAP or Active Directory Server. There is not much information about this, but my question is more general. LDAP authentication is made "on the fly"? Why is needed a script to be ran periodically?

It would be great also if anyway had example configurations of LDAP file, for Active Directory (member attribute in group definition, with full dns) and OpenLDAP (memberUid attribute in group dfinition with just the userid).

Thanks in advance.

Ivo Lukac

Monday 18 August 2008 8:58:58 am

Hello Juan,

Authentication is done on the fly using PHP LDAP functions. Cronjob syncs all users which are authenticated with LDAP.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Juan Asensio Sánchez

Monday 18 August 2008 11:10:23 am

Hi again

Sorry, but i don't understand the process. If I configure LDAP authentication, and I run the cronjob, all users (matching filters) will be imported in the ez database and password will be checked directly against the ldap server when they login? Or the password is imported too? So, the users won't be able to login until the cronjob is first executed?

Or the user will be imported in his first login and his data (name, groups, etc) will be updated every cronjob?

Or all data is fetched directly from the ldap server when the user logins? Then, what is the cronjob function?

Excuse me my poor english, but hope you understand.

Thank you very much for your attention.

André R.

Monday 18 August 2008 1:16:43 pm

The users are imported the first time they successfully login, the password is not kept in the ez database(password are authenticated against ldap each time they login). The cronjob is to keep them in sync (first name / last name / user goups..).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Juan Asensio Sánchez

Tuesday 19 August 2008 4:09:12 am

Ok

Thank you very much for your answers.

Regards.

eZ debug

Timing: Jan 18 2025 16:29:04
Script start
Timing: Jan 18 2025 16:29:04
Module start 'content'
Timing: Jan 18 2025 16:29:05
Module end 'content'
Timing: Jan 18 2025 16:29:05
Script end

Main resources:

Total runtime0.7612 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.9688180.8203
Module start 'content' 0.00610.6397 769.7891605.0859
Module end 'content' 0.64580.1153 1,374.8750337.3750
Script end 0.7612  1,712.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5478210.0002
Check MTime0.00150.1998210.0001
Mysql Total
Database connection0.00080.100610.0008
Mysqli_queries0.693391.08072020.0034
Looping result0.00180.23842000.0000
Template Total0.734796.520.3674
Template load0.00220.288520.0011
Template processing0.732596.229020.3663
Template load and register function0.00010.014810.0001
states
state_id_array0.00130.164510.0013
state_identifier_array0.00060.081820.0003
Override
Cache load0.00180.2408250.0001
Sytem overhead
Fetch class attribute can translate value0.00100.136240.0003
Fetch class attribute name0.00110.146070.0002
XML
Image XML parsing0.00140.182040.0003
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00270.3524350.0001
String conversion0.00000.000730.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
5content/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
2content/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: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs