importing users from an external datasource

Author Message

Robin de Silva Jayasinghe

Friday 09 July 2004 5:43:21 am

hello!

i am planning to implement an large scale community site for an organisation with about 2000 members. every member shall have its own pre-installed user. i have all the userdata like email, name, surname, etc. in a separete excel-file.
my question is if there is an possibility to import this file as csv and generate ezPublish users with limited rights automatically?

thanks and best regards from germany!
robin

visit http://www.jayasinghe.de

Paul Borgermans

Friday 09 July 2004 6:03:15 am

Yes,

I did something similar when migrating users in pre 3.4 sites. I modified the text login handler a little bit: instead of creating a user upon firts attempt to login, I let the script "slurp" the entire file. After this I changed the login handler back to the default. Passwords were migrated too (ie the hashed values)

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Jonathan Dillon-Hayes

Sunday 19 September 2004 6:57:27 pm

Bump.

This actually is something we're interested in doing as well. We could import, but unfortunately everything else in our architecture is integrated with the parent DB and not eZ. So I suppose we'll have to get eZ to auth against our other MysqlDB and not export it.

I'm working on a 3.4 codebase, and I think I have it down. Quite a challenge though -- I wish there were a way to do this with a web service (SOAP) client.

Anyone have an idea of a good way to do it? I have a couple of thousand users in an external MysqlDB with SHA1 encryption. I can use php's native functions to auth against the raw output (I have php accessing a perl script to get raw output with a 4.3 php version so it's actually just a string comparison).

Anyone have any experience with this? I could use some pointers myself before I break my head for the next two days. ;-)

Jonathan

---------
FireBright provides advanced eZ deployment with root access
http://www.FireBright.com/

Marco Zinn

Tuesday 21 September 2004 1:20:17 pm

Hi,

well, we actually did both with extensions, that we bought from ezSystems for our ez 3.3 system.
First, we had a CSV import module, which imported users to pre-installed user groups, including the sending of generated first-time passwords by email to the individual user.

Now, we are having a User directory, which can be accessed via SOAP. ezSystems wrote an extension, which provided a new user handler, which connects to that User directory via SOAP and checks for the Password. If the login is okay, the SOAP server replies with the full user data, as well as some role identifiers. The user plugin maps those roles to ezPublish roles and creates or updates a "local user" (the one in the ezPublish DB).

The SOAP solution is quite special for our needs, but the CSV import should work fine for any ezPublish solution.

Marco
http://www.hyperroad-design.com

riccardo refolo

Thursday 24 February 2005 1:26:01 am

I have to import user by a csv file, have somebody got a module to do it?
Thank's.
Ps. He could send me the file by mail. I could tell him my mail.

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 31 2025 06:19:44
Script start
Timing: Jan 31 2025 06:19:44
Module start 'layout'
Timing: Jan 31 2025 06:19:44
Module start 'content'
Timing: Jan 31 2025 06:19:44
Module end 'content'
Timing: Jan 31 2025 06:19:44
Script end

Main resources:

Total runtime0.0136 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.2578151.2266
Module start 'layout' 0.00520.0021 739.484436.6797
Module start 'content' 0.00730.0048 776.164194.1563
Module end 'content' 0.01210.0015 870.320337.9922
Script end 0.0136  908.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.1544140.0002
Check MTime0.00117.7657140.0001
Mysql Total
Database connection0.00075.276110.0007
Mysqli_queries0.002215.870330.0007
Looping result0.00000.080410.0000
Template Total0.00118.110.0011
Template load0.00096.329610.0009
Template processing0.00021.729610.0002
Override
Cache load0.00064.572110.0006
General
dbfile0.00128.689980.0001
String conversion0.00000.050740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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