[Zope-PTK] Importing users from other databases

Norman Khine khine@bmpublications.co.uk
Wed, 21 Mar 2001 14:20:53 -0000


This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C0B212.23975690
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hello ALL,
This may be an abstract question but I think it may aid in the migration
path to CMF.

My question therefore is, if one has a database with users, and wants to
give them account on the CMF Portal, what would be the simplest route to
achieve this?

For example will it be possible to write a script to Register the User by
giving them an existing username that is currently held on MySQL and their
e-mail; then e-mailing them the Welcome to the Portal mail message with the
new registration details, thus creating the account under the CMF.

I know one can use MySQL for authentication as discussed in How-To: How To:
Use GenericUserFolder with an SQL database Version 1.1
http://www.zope.org/Members/hippy/GUF_SQL_crypt_1_2 , but I think what I am
trying to achieve here is to automate the creation of a large user account
for the CMF!?!? I think ;^)
One way I was thinking was to create a script to pull the data from one file
and then run the RegistrationTool.py to build the users -- I think that's
correct.

Norman



------=_NextPart_000_0017_01C0B212.23975690
Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="winmail.dat"

eJ8+IjYOAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANEHAwAVAA4AFAAAAAMAFQEB
A5AGAPwHAAAlAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADADYAAAAAAB4AcAAB
AAAAJQAAAEltcG9ydGluZyB1c2VycyBmcm9tIG90aGVyIGRhdGFiYXNlcwAAAAACAXEAAQAAABYA
AAABwLISFeen1AGUHeIR1ZoQAGCXFmhgAAACAR0MAQAAACAAAABTTVRQOktISU5FQEJNUFVCTElD
QVRJT05TLkNPLlVLAAsAAQ4AAAAAQAAGDgAoPwMSssABAgEKDgEAAAAYAAAAAAAAADSHBPUpPdQR
mQwAABzWBCPCgA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