[Zope] Password Problem
Mark Gibson
mark@kaivo.com
Mon, 02 Sep 2002 11:10:42 -0600
There are a number of things to try:
1) Check your output file, do the passwords match what you expect them
to be?
2) Where's the acl_user folder, and where are your using trying to log
in? If the acl_users folder isn't at the root level, and users are
trying to log in at the root level, it's not going to work.
3) Reset a users password through the ZMI, and then try and log in. If
this works, it implies that the password is being set with special
characters, or a leading or trailing space chearcter.
Mark
Chetan Kumar wrote:
> 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)
> )
>
>
>
> _______________________________________________
> 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 )