[Zope] How do I replace the top level acl_users folder.

Jay, Dylan djay@lucent.com
Thu, 6 May 1999 17:23:22 +1000


I tried doing this. I replaced the top level acl_users with a UserDB that
used cookie authentication. Now I can't get into the site at all. Everytime
I try to manage or just view the site I get a basic authentication dialog.
If I login using either a super-user password or a manager account, nothing
is accepted.

This is a serious problem. Can anyone help me reverse or fix the problem.

I am using zope through iis4.0 and it has worked fine up till now.

> -----Original Message-----
> From: Brian Lloyd [mailto:Brian@digicool.com]
> Sent: Friday, April 09, 1999 12:15 AM
> To: 'Service Informatique CHSR'; Jay, Dylan; zope@zope.org
> Subject: RE: [Zope] How do I replace the top level acl_users folder.
> 
> 
> > >I am trying to use the UserDB package for authroization via 
> > ODBC, however
> > >the management screen won't let me delete the top level 
> > acl_users folder.
> > You can't!
> > 
> > I had the same problem. What I had to do is:
> > - create the Roles in the toplevel folder,
> > - create the users database connection in the top level folder
> > - create a UserDB in *all* subfolders of the top level 
> > folder, that use
> > the toplevel database.
> > - and put only anonymous stuff in the top level folder.
> > 
> > If someone has a better approach, I am interested.
> 
> Ack. This is something we need to fix somehow. The problem is that 
> if you get rid of the top-level userfolder, there is nothing to
> perform authentication/authorization and the site is effectively
> inaccessible :(
> 
> I have come up with a fix for this that will appear in 1.11.0. 
> You will now be able to delete the top-level user folder in 
> order to replace it. Note, however, that during the time that
> you have no top-level userfolder, the mgmt interface for the
> top-level folder will be accessible *only* to the superuser.
> 
> The fix involves only two files in lib/python/OFS/: 
> Application.py and ObjectManager.py. I have attached
> new versions of these files that you can drop into your
> 1.10.2 installation if you like. After replacing the
> files, restart Zope and you should be able to replace
> your top-level userfolder with a userdb or other
> userfolder-like object.
> 
> Let me know if you have any problems!
> 
> 
> Brian Lloyd        brian@digicool.com
> Software Engineer  540.371.6909              
> Digital Creations  http://www.digicool.com 
> 
>