howto set up a large set of users in a school
Hi I would like to set up a zope site for my school with user profiles and authentication (1200 high school students in my London based school). At the moment I have a php/mysql solution. How do I set up 1300 users (100 teacher accounts)? I don't fancy adding manually into acl_users? Suneil
The acl_users folder object has a method: _addUser(self,name,password,confirm_pw,[roles],[domains],REQUEST=None) I'm pretty sure confirm_pw is the last required argument. Wherever your data comes from, iterate over it and call this method ~1300 times. Setting up 1300 user accounts is easy... it's the *administration* of that many accounts that'll get you. You may want to think about setting up tools to administer those accounts without having to open acl_users in the manage_edit interface. Getting anything done with that many objects in a folder can be a bit tedious. HTH, Dylan At 04:26 AM 10/19/2002 +0000, you wrote:
Hi I would like to set up a zope site for my school with user profiles and authentication (1200 high school students in my London based school). At the moment I have a php/mysql solution. How do I set up 1300 users (100 teacher accounts)? I don't fancy adding manually into acl_users?
Suneil
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
there is a better function to do that userFolderAddUser(self, name, password, roles, domains, **kw) robert ----- Original Message ----- From: "Dylan Reinhardt" <Dylan@DylanReinhardt.com> To: <zope@zope.org> Sent: Saturday, October 19, 2002 6:24 AM Subject: Re: [Zope] howto set up a large set of users in a school
The acl_users folder object has a method:
_addUser(self,name,password,confirm_pw,[roles],[domains],REQUEST=None)
I'm pretty sure confirm_pw is the last required argument.
Wherever your data comes from, iterate over it and call this method ~1300 times.
Setting up 1300 user accounts is easy... it's the *administration* of that many accounts that'll get you. You may want to think about setting up tools to administer those accounts without having to open acl_users in the manage_edit interface. Getting anything done with that many objects in a folder can be a bit tedious.
HTH,
Dylan
At 04:26 AM 10/19/2002 +0000, you wrote:
Hi I would like to set up a zope site for my school with user profiles and authentication (1200 high school students in my London based school). At the moment I have a php/mysql solution. How do I set up 1300 users (100 teacher accounts)? I don't fancy adding manually into acl_users?
Suneil
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I've used the following as an external method to import users into acl_users. Mark ----- import string def addAuthUsers(self, REQUEST, infile='/home1/sepg/auth.txt'): """ import users from infile, a space delimited file... """ #output - just used to let me know who got imported. output=open('/home1/sepg/userout.txt','w') infile=open( infile ,'r') output.write('opened %s\n'%infile) for line in infile.readlines(): line=string.strip(line) (name,password)=string.split(line,' ') try: self.acl_users.manage_users(submit='Add',REQUEST={'name':name,'password ':password,'confirm':password,'roles':['member',]}) output.write("added user name=%s, password=%s\n"%(name,password)) except: output.write("couldn't add user name=%s, password=%s\n"%(name,password) ) Suneil Basu wrote:
Hi I would like to set up a zope site for my school with user profiles and authentication (1200 high school students in my London based school). At the moment I have a php/mysql solution. How do I set up 1300 users (100 teacher accounts)? I don't fancy adding manually into acl_users?
Suneil
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
If the users already exist in MySQL, would it be possible to keep them there and use some sort of database authentication scheme? I am currently using the LDAPUserFolder to connect with my corporate LDAP directory... there are some kinks that I need to work out, but as far as enabling authentication of (potentially) 3000 folks, it was a 5 minute job. good luck, Tim On Fri, 2002-10-18 at 23:26, Suneil Basu wrote:
Hi I would like to set up a zope site for my school with user profiles and authentication (1200 high school students in my London based school). At the moment I have a php/mysql solution. How do I set up 1300 users (100 teacher accounts)? I don't fancy adding manually into acl_users?
Suneil
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Dylan Reinhardt -
Mark Gibson -
Robert Rottermann -
Suneil Basu -
Tim Freund