[Zope] Password Problem

Chetan Kumar chetan@cdacindia.com
Sat, 31 Aug 2002 12:06:13 +0530


Hi all
I used a script got from this list for adding a large number of users to my
CMF site. It works very well with the users appearing in the acl list.
However, the users cannot login. The password does not seem to be
set properly.
What am I missing ?
TIA
Chetan


PS:
The script is
-----------------------------------------------------
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)
)