Forums / Developer / Importing LDAP Users

Importing LDAP Users

Author Message

Pål Messenlien

Thursday 23 June 2005 3:49:25 am

Is there a way to auto import users from a LDAP catalog?. I only need to import the users so i can list/search tru them on the page. The best would be if i can keep the updated with a cronjob.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Pål Messenlien

Thursday 23 June 2005 4:41:59 am

Another problem ive runned into with the LDAP login. When a user is imported/logged in im getting trouble with norwegian letters ÆØÅ. Example my name turns out PÃ¥l Messenlien after the user is imported from the LDAP catalog. Is this something that can be fixed?

The next thing is that i cant edit the user settings. Cant add signature or other information. When i try to save the user settings inside eZ i get a error that the user already exists.

Note: Im using Lotus Domino 6.5 as a LDAP source, and eZ 3.6

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Pål Messenlien

Friday 01 July 2005 1:34:42 am

Anyone done a LDAP search for eZ then? What im looking for here is a way to give our site a Search for employes and students on our website. We got LDAP catalogs for both in two different servers.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

K259

Thursday 27 October 2005 3:07:51 pm

Hi!

Did you get a solution on this?

Pål Messenlien

Sunday 30 October 2005 12:25:17 pm

Nothing yet. I'll dig around for a php LDAP search engine wich i might be able to use inside eZ.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

j jevack

Thursday 02 February 2006 5:08:55 am

Greetings! Did you ever resolve this issue? If so, would you mind sharing your experience?

Thanks,

Jason

Frode Sørhaug

Monday 27 February 2006 7:05:21 am

Looks like you got the same enviroment AS Høgskolen i Nord-Trøndelag. We use now eZ-publish 3.6.5 on Apache 2.0.54 on a Trustix.

Employees login with their ordinary username and password, the same they use on the network.

I've configured it a way so their account in eZ is created first time they login.
Done the way by configure the ldap.ini for the actual site. I also had to do some hacks in the kernel/classes/datatypes/ezuser/ezldapuser.php so that eZ could authenticate corectly to our ldap-catalog.

By this method I don not have to create all accounts, and the employees are getting a set of standard roles in eZ.

This works fine, except one thing. First time they are thrown out and have to login once more time. (got a soution??)
Also when employees quit their account still remain in eZ.

I have seen the file ldapmanage.php in the cronjob directory but have not found out its function. Maybe its an answer in that file??

Fr®dis

Samuel Sauder

Monday 27 February 2006 7:50:27 am

Just wanted to let you know that LDAP import and syncronization is working great for me.

Pal,
I don't use alternate character sets so I'm not sure about that part. And I also don't try to edit the user after it is created (to add the signature). But I'm sure there is a way around this.

Frode,
I also had to make some slight logic changes in the kernel and the cronjob because of the way our NDS Novell LDAP is configured.

For the cron job help, see the old documentation here (I couldn't much in the new)

https://ez.no/products/ez_publish/documentation/installation/the_cronjob_script
http://ez.no/doc_hidden/ez_publish/technical_manual/3_6/reference/configuration_files/cronjob_ini

Ezp Version 3.7.2

kalala ??

Wednesday 09 August 2006 2:27:12 am

Hi!

I've installed ez 3.8.3. Then I've changed the user handler in order to use LDAP. I can connect using a LDAP user without problem.
But I've the following problems:

1 - How can match user group from LDAP with those in ezpublish?

For example, I have a user called ezadmin in LDAP under a group called Admin. When I connect into ezpublish admin interface using LDAP handler, I'd like my ezadmin user from LDAP to be automatically register as administrator in ez. He is currently registered as anonymous.

2 - How can I match ezuser class attributes with LDAP attributes?
For example, how can I match the email attribute of an ez user with the email attribute of a user in LDAP?

3 - Is there anyway to transfert ezpublish users into LDAP? LDAP users into ezplublish?

PS: I hope my english is quite comprehensible.

Thanks

Juliusz Calyniuk

Tuesday 19 September 2006 2:52:43 am

Hi,

I am just looking for posts about LDAP.
Perhaps this post can be interesting for you ...and me in the future :)
http://ez.no/community/forum/install_configuration/win2k_ldap_server_authentication

WebStyle Systems | http://www.ws-webstyle.com

Artturi Markko

Friday 06 October 2006 1:10:08 am

quote :

1 - How can match user group from LDAP with those in ezpublish?

For example, I have a user called ezadmin in LDAP under a group called Admin. When I connect into ezpublish admin interface using LDAP handler, I'd like my ezadmin user from LDAP to be automatically register as administrator in ez. He is currently registered as anonymous.

This is possible provided you modify a bit some php files.
Right now, I can't use the search function on ez.no so you'll have to dig in the forum but I've posted some messages on this forum about this issue. You'll find all details in those posts.

Regards,
Artturi

eZ debug

Timing: Jan 30 2025 19:44:17
Script start
Timing: Jan 30 2025 19:44:17
Module start 'content'
Timing: Jan 30 2025 19:44:17
Module end 'content'
Timing: Jan 30 2025 19:44:17
Script end

Main resources:

Total runtime0.3928 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.8281370.3047
Module start 'content' 0.00790.0137 958.13281,013.6094
Module end 'content' 0.02160.3711 1,971.74223,901.3984
Script end 0.3927  5,873.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00461.1810200.0002
Check MTime0.00140.3475200.0001
Mysql Total
Database connection0.00080.196310.0008
Mysqli_queries0.289973.81871410.0021
Looping result0.00170.42191390.0000
Template Total0.370694.410.3706
Template load0.00070.182810.0007
Template processing0.369994.172110.3699
Override
Cache load0.00050.125310.0005
Sytem overhead
Fetch class attribute can translate value0.00190.476610.0019
XML
Image XML parsing0.00030.072510.0003
General
dbfile0.00852.1707200.0004
String conversion0.00000.001730.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs