[Zope] GUF incompatible with 2.2.4?

2000-12-16 Thread Steve Drees

Has anybody gotten GUF working on 2.2.4?


--
Steve Drees 
SysAdmin/Software Developer/Web Geek/Chief Bottle Washer
"A problem well-stated is a problem half-solved."
http://www.christianmp3zone.com/savanna


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] GUF, ZODB, and 2.2.2

2000-11-01 Thread Andrews, Martin

I am not using the ZODB as the backend, but I did have to patch GUF to get
it to work with zope 2.2.2. Caveat emptor: I have no idea if this patch is
really correct, I pretty much stole the little piece of code from
LoginManage (which has a similar disclaimer).

Martin Andrews

> -Original Message-
> From: Jason Byron [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 18, 2000 11:58 AM
> To: [EMAIL PROTECTED]
> Subject: [Zope] GUF, ZODB, and 2.2.2
> 
> 
> Has anyone had luck getting GUF to work using ZODB to
> store the user info, and Zope version 2.2.2 (no hot
> fixes)?
> 


 guf-getuserbyid.patch


Re: [Zope] GUF error: Unauthorized...

2000-10-27 Thread Zen

On Fri, 20 Oct 2000, Cesar A. K. Grossmann wrote:

> raised an exception (('Unauthorized', 'crypt',  The userAuthenticate, userDomains, userList, adn userRoles DTML Methods
> are configurated to proxy the Manager role.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF error: Unauthorized...

2000-10-20 Thread Cesar A. K. Grossmann

Hi!

I have created a GUFTest folder. It runs perfectly with the user
'jorge', provided with the GUF. After I have changed the acl to use a
SQL connection, I'm getting the error bellow (in the log of the system):

GUF[7909]:
http://localhost.localdomain:8080/GUFTest/acl_users/userAuthenticate
raised an exception (('Unauthorized', 'crypt', ))

The source of the HTML page contains (I don't know if it's correct,
because I suspect that Netscape reloads the page when you ask it to show
the source of the page):



What is wrong?

I have created a local role called 'Usuario'. This role have the rights
to:

/GUFTest:
Access contents information
Can Login an Logout
Use database methods
View

/GUFTest/acl_users:
Access contents information
Can Login an Logout
Use database methods
View

The Anonymous role have the rights:
/GUFTest:
_no_roles_

/GUFTest/acl_users:
Access contents information
Can Login and Logout

The userAuthenticate, userDomains, userList, adn userRoles DTML Methods
are configurated to proxy the Manager role.

I'm using Zope 2.2.1, on a Conectiva Linux 5.0 (Linux i386 2.2.14,
python 1.5.2, glibc 2.1.3).

TIA
-- 
 +-+-+
 | César A. K. Grossmann   | Capacitação Solidária   |
 | [EMAIL PROTECTED]| http://www.uol.com.br/umminuto/ |
 | http://members.xoom.com/ckant/  | Clique e doe - é de graça   |
 +-+-+
   http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html
The ideas of economists and political philosophers, both when they
are right and when they are wrong, are more powerful than is generally
understood.  Indeed, the world is ruled by little else.
-- John Maynard Keyes

___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF, ZODB, and 2.2.2

2000-10-18 Thread Jason Byron

Has anyone had luck getting GUF to work using ZODB to
store the user info, and Zope version 2.2.2 (no hot
fixes)?

I had some code working fine in 2.2.1, but in 2.2.2 I
am having lots of trouble getting GUF to work.

The current implementation I have places a folder in
the acl_users (GUF) folder and that is where I've put
my own ZClass (representing each user) inside that
folder.

In a vain attempt to get it working I have made sure
that there are no aquired rights in acl_users, and
that anonymous has the Can Login, and Access contents
rights. I've also changed all of the hooks I have and
made them proxy as root.

I've had trouble in the past with GUF but I've always
gotten it working.  Not so here.

Has anyone tried this type of setup and gotten it
working?




__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF and IE friendly error messages

2000-10-17 Thread Paulo Eduardo Neves

Hi,
I'm using General User Folder (GUF) in cookie mode for the login in my
site. When someone doesn't have the appropriate permission to access a
resource, GUF should show the Login screen. It works fine, except for
some people (not all) that uses Internet Explorer 5. They see IE http
user friendly error page. If the user is told to change the IE
configuration for not showing friendly errors, the login screen appears.
It is not easy to setup for unexperienced users. 

When the http status is 400 (not found) IE shows the friendly error just
for pages smaller than 512 bytes. Unfortunately, it doesn't work when
the error status is 500 (server error).

I've tried to change http status with RESPONSE.setStatus(200) in the
standard_html_error, but it doesn't work. Is it possible to change the
http status after an exception is raised? 

Can someone suggest a solution or workaround for this problem?

Thanks in advance for any help,
-- 
Paulo Eduardo Neves
http://www.samba-choro.com.br

___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF strange behavior

2000-09-21 Thread Cesar A. K. Grossmann

Hi!

I have discovered that I was fighting the wrong fight, against GUF.
After making a login, I get the old, good, login page again. If I reload
the page, then I get the correct index_html page, instead of the login
page.

What is wrong with this? I put the "pragma" "no-cache" in a META tag in
the header of the docLogin method, but I still needs a reload to get the
right page, instead of the login page. Is it a Netscape bug? Is it a GUF
bug? Is it my mistake?

I'm using Zope 2.1.6, GUF 1-2-4 in a Linux 2.2.x box.

TIA
-- 
César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/
http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] GUF Idle Timeout?

2000-08-31 Thread Mabe, Brad

The first word that came to my mind after reading your response was "Duh!".

This was something I should have figured out on my own.  Thanks for the
help!

  -=Brad=-

-Original Message-
From: Stuart Bishop
To: Mabe, Brad
Cc: '[EMAIL PROTECTED] '
Sent: 8/31/00 3:42 AM
Subject: Re: [Zope] GUF Idle Timeout?

On Wed, 30 Aug 2000, Mabe, Brad wrote:

> Hello all,
> Does GUF have an idle timeout setting?  I'm seeing the behavior where
if my
> GUF authenticated user is idle for more than 10-15 minutes they lose
their
> authentication and are asked to log in again.
> 
> If there is such a setting, how can I increase the amount of idle
time?  

Go to the properties page of your GUF instance and change the
'Inactive Cookie Expires' property.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play:
[EMAIL PROTECTED]
Computer Science, RMIT University


___
Zope maillist  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF and manage_addGenericUserFolder not working

2000-08-31 Thread Stuart Bishop

On Wed, 30 Aug 2000, Jason Byron wrote:

> Now, *why* does that work?  The function
> manage_addProduct looks like its for adding new
> products under the Control_Panel.  That isn't what
> it's for?
> 
> I don't have to do 
>  
> to use manage_addUserFolder ?

[...]

> legacy=(AccessControl.User.manage_addUserFolder,),

I think the key word here is 'legacy'. I think this was the original
method of adding object instances for all products, but some bright
spark realized that as more products are added this flat name space
gets more and more bloated and name collisions become much more likely.

> Could adding something like this to the GUF fix the
> problem I had and let manage_addGenericUserFolder work
> by itself?

It should work if you really like it that way.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Idle Timeout?

2000-08-31 Thread Stuart Bishop

On Wed, 30 Aug 2000, Mabe, Brad wrote:

> Hello all,
> Does GUF have an idle timeout setting?  I'm seeing the behavior where if my
> GUF authenticated user is idle for more than 10-15 minutes they lose their
> authentication and are asked to log in again.
> 
> If there is such a setting, how can I increase the amount of idle time?  

Go to the properties page of your GUF instance and change the
'Inactive Cookie Expires' property.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF and manage_addGenericUserFolder not working

2000-08-30 Thread Jason Byron

--- Chris Withers <[EMAIL PROTECTED]> wrote:
> Jason Byron wrote:
> > I try to call the function
> manage_addGenericUserFolder
> > in a DTML Method but I keep getting a NameError
> for
> > it. It's as if Zope can't find the definition.
> 
> Try somethign like the following:
> 
> 
>   params, here)">
> 
> 
> cheers,
> 
> Chris


Hey, that worked! Thanks Chris

Now, *why* does that work?  The function
manage_addProduct looks like its for adding new
products under the Control_Panel.  That isn't what
it's for?

I don't have to do 
 
to use manage_addUserFolder ?


I noticed this in the OFSP stuff.  


from :lib/python/Products/OFSP/__init__.py
line :153

context.registerClass(
AccessControl.User.UserFolder,
   
constructors=(AccessControl.User.manage_addUserFolder,),
icon='images/UserFolder_icon.gif',
   
legacy=(AccessControl.User.manage_addUserFolder,),
)

   
context.registerBaseClass(AccessControl.User.UserFolder,
'User Folder')
context.registerBaseClass(AccessControl.User.User)



Could adding something like this to the GUF fix the
problem I had and let manage_addGenericUserFolder work
by itself?


Jason




__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF Idle Timeout?

2000-08-30 Thread Mabe, Brad

Hello all,
Does GUF have an idle timeout setting?  I'm seeing the behavior where if my
GUF authenticated user is idle for more than 10-15 minutes they lose their
authentication and are asked to log in again.

If there is such a setting, how can I increase the amount of idle time?  

Thanks

-=Brad=-


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF and manage_addGenericUserFolder not working

2000-08-30 Thread Chris Withers

Jason Byron wrote:
> I try to call the function manage_addGenericUserFolder
> in a DTML Method but I keep getting a NameError for
> it. It's as if Zope can't find the definition.

Try somethign like the following:


 


cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF and manage_addGenericUserFolder not working

2000-08-30 Thread Jason Byron

I try to call the function manage_addGenericUserFolder
in a DTML Method but I keep getting a NameError for
it. It's as if Zope can't find the definition.

I'm stumped as to why it won't work in DTML.
- The product is installed and not broken.
- I can add GUF's under the management screen with
'Add' and everything works fine.
- I've tried to make the call with all of the possible
parameters but nothing helps.
- manage_addUserFolder works fine.

Has anyone else had this problem?

I just upgraded to Zope 2.2.1 and I haven't tried an
older release.  Do you think this might have to do
with the changes to the security model in 2.2.1? 
Should I use manage_clone instead?

Thanks for any help, 
Jason


__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] GUF and crypt

2000-08-22 Thread Brad Mabe

Thanks,
I did follow the instructions for patching ZOPE (added import crypt to
DT_Util.py).  Any other ideas on what I should look for in my ZOPE
installation?  Is there a specific crypt (crypt.py?) file that I might be
missing?

 -=Brad=-

-Original Message-
From: Stuart Bishop [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 3:04 AM
To: Brad Mabe
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] GUF and crypt


On Mon, 21 Aug 2000, Brad Mabe wrote:

> Greetings,
> I am following the directions in hippy's GenericUserFolder with an SQL
> database how to, and ran into a snag.  When I call crypt, zope returns the
> following:
>
> Error Type: AttributeError
> Error Value: crypt

I think you need to hack your Zope installation to allow access to the
crypt function directly from DTML (it should be in the earlier part of
the doc). This, and a great many other functions, probably should be
available from DTML without hacking but no one has pushed hard enough
to get them added to the Zope distribution yet.

--
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF and crypt

2000-08-22 Thread Aleksander Salwa


On Mon, 21 Aug 2000, Brad Mabe wrote:

> Greetings,
> I am following the directions in hippy's GenericUserFolder with an SQL
> database how to, and ran into a snag.  When I call crypt, zope returns the
> following:
> 
> Error Type: AttributeError
> Error Value: crypt

Maybe you don't have this module ('crypt') in your python instalation.
It's not present in 2.2.0 binary distribution for Linux-x86. Check if you
have file lib/python1.5/lib-dynload/cryptmodule.so.
If not, then you can copy it from RPM package 'python'
(/usr/lib/python1.5/lib-dynload/cryptmodule.so).
(If you work on Linux, of course).


[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF and crypt

2000-08-22 Thread Stuart Bishop

On Mon, 21 Aug 2000, Brad Mabe wrote:

> Greetings,
> I am following the directions in hippy's GenericUserFolder with an SQL
> database how to, and ran into a snag.  When I call crypt, zope returns the
> following:
> 
> Error Type: AttributeError
> Error Value: crypt

I think you need to hack your Zope installation to allow access to the
crypt function directly from DTML (it should be in the earlier part of
the doc). This, and a great many other functions, probably should be
available from DTML without hacking but no one has pushed hard enough
to get them added to the Zope distribution yet.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF and crypt

2000-08-21 Thread Brad Mabe

Greetings,
I am following the directions in hippy's GenericUserFolder with an SQL
database how to, and ran into a snag.  When I call crypt, zope returns the
following:

Error Type: AttributeError
Error Value: crypt

Traceback (innermost last):
  File /home/segments/ZOPE/zope/lib/python/ZPublisher/Publish.py, line 214,
in publish_module
  File /home/segments/ZOPE/zope/lib/python/ZPublisher/Publish.py, line 179,
in publish
  File /home/segments/ZOPE/zope/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/segments/ZOPE/zope/lib/python/ZPublisher/Publish.py, line 165,
in publish
  File /home/segments/ZOPE/zope/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: adduser_action.dtml)
  File /home/segments/ZOPE/zope/lib/python/ZPublisher/Publish.py, line 102,
in call_object
(Object: adduser_action.dtml)
  File /home/segments/ZOPE/zope/lib/python/OFS/DTMLDocument.py, line 166, in
__call__
(Object: adduser_action.dtml)
  File /home/segments/ZOPE/zope/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: adduser_action.dtml)
  File /home/segments/ZOPE/zope/lib/python/DocumentTemplate/DT_Util.py, line
338, in eval
(Object: REQUEST.set('password',_.crypt.crypt(fpassword,'ab')))
(Info: REQUEST)
  File , line 0, in ?
  File /home/segments/ZOPE/zope/lib/python/DocumentTemplate/DT_Util.py, line
127, in careful_getattr
AttributeError: (see above)

I'm running Zope 2.1.6 on HPUX 10.2

Any help will be greatly appreciated.

   -=Brad=-


___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF

2000-08-14 Thread Mathias Bengtsson

I'm afraid that this will be a little newie question.

How is the call to user_Authenticate used.
Is it throgh a dtml-call or a dtml-var or dtml-in ?
How am I supposed to pass the variables through to the function. How do
I "collect" the return value?

/Mathias




___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF

2000-08-13 Thread Dieter Maurer

Mathias Bengtsson writes:
 > Does anybody know how the login is handled by GUF. I use cookie
 > authentication and I get the loginptomt when I try to access a page that
 > has authenticate permissions. But when I try to login I don't know how
 > to get the user logged i.e I don't know how to set the cookie. Can
 > anybody help me ?
Setting the cookie is done automatically by GUF.



Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF

2000-08-13 Thread Aleksander Salwa


On Fri, 11 Aug 2000, Mathias Bengtsson wrote:

> Does anybody know how the login is handled by GUF. I use cookie
> authentication and I get the loginptomt when I try to access a page that
> has authenticate permissions. But when I try to login I don't know how
> to get the user logged i.e I don't know how to set the cookie. Can
> anybody help me ?

Why do you need to set cookie on your own ? In typical case GUF sets it
for you if it had succesfully authenticated new user (your method
userAuthenticate has returned '1').
Anyway, probably it will work if you set this manually. The cookie is
named (AFAIR) '_guf', and has some random-looking content - a key
identifying user. You can look in source to see, how this content is
computed.


[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/


___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF

2000-08-11 Thread Mathias Bengtsson

Does anybody know how the login is handled by GUF. I use cookie
authentication and I get the loginptomt when I try to access a page that
has authenticate permissions. But when I try to login I don't know how
to get the user logged i.e I don't know how to set the cookie. Can
anybody help me ?

/Mathias Bengtsson


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF

2000-08-08 Thread Stuart Bishop

On Tue, 8 Aug 2000, Mathias Bengtsson wrote:

> I have GUF installed and I have succeded in coding som managing tools
> for this. From what i see i have also found a loginpromt (for cookies).
> My problem lies in that i don't know how to get the user logged in. I
> try to use userAuthenticate but when i look in the code i see nothing
> that have anything to do with how to get the user logged in. If i try to
> use post and sending the login information lika [EMAIL PROTECTED] I have
> the problem that thoose user only exist for the "usual" acl_users. Can
> anybody help me

Create a document that can only be viewed by an authenticated user
(eg. all my users get the role 'Authenticated' as well as their
other roles). This document is your 'login succeeded' screen.
When a user tries to access it, they don't have rights as an anonymous
user so Zope's authentication machinery kicks in and your login
screen is rendered. After successful authentication, the 'login succeeded'
screen is displayed.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF

2000-08-08 Thread Aleksander Salwa


You mean, you don't know, how to force users to authenticate ?
Everytime user tries to access resources that needs higher privileges, GUF
starts working, presenting mentioned form, and then it calls
'userAuthenticate' - this method (probably written by you) have to check
if login:password pair is valid.

(I used GUF with cookies. If your problems are related to HTTP auth, then,
probably, I won't help.)

 On Tue, 8 Aug 2000, Mathias Bengtsson wrote:

> I have GUF installed and I have succeded in coding som managing tools
> for this. From what i see i have also found a loginpromt (for cookies).
> My problem lies in that i don't know how to get the user logged in. I
> try to use userAuthenticate but when i look in the code i see nothing
> that have anything to do with how to get the user logged in. If i try to
> use post and sending the login information lika [EMAIL PROTECTED] I have
> the problem that thoose user only exist for the "usual" acl_users. Can
> anybody help me
> 


[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/



___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF

2000-08-08 Thread Mathias Bengtsson

I have GUF installed and I have succeded in coding som managing tools
for this. From what i see i have also found a loginpromt (for cookies).
My problem lies in that i don't know how to get the user logged in. I
try to use userAuthenticate but when i look in the code i see nothing
that have anything to do with how to get the user logged in. If i try to
use post and sending the login information lika [EMAIL PROTECTED] I have
the problem that thoose user only exist for the "usual" acl_users. Can
anybody help me

/Mathias


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Authentication Problems

2000-07-21 Thread Andy McKay

Nope that was a lie. I still have the same problem. Damn.

- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: "Mario Premke" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 4:39 PM
Subject: Re: [Zope] GUF Authentication Problems


> Thanks to you, and thanks to Brad.
>
> That works... now there are a whole bunch of other security issues of
course
> :)
>
> - Original Message -
> From: "Mario Premke" <[EMAIL PROTECTED]>
> To: "Andy McKay" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 19, 2000 3:41 PM
> Subject: Re: [Zope] GUF Authentication Problems
>
>
> > Yes - thanks to Brad.
> > Give the proxy role (Authorizer) the permission
> > "Access contents informations" in the folder you
> > want to protect (i.e. the folder above GUF).
> > Cheers
> > Mario
> >
> > >
> > > Did anyone find a solution to this problem?
> > >
> > > I have the exact same problem when try to access that object:
> > >
> > > 2000-07-19T22:09:27 ERROR(200) GUF
> > > http://127.0.0.1:8080/acl_users/userAuthenticate raised an exception
> > > (('Unauthorized', 0, ))
> > >
> > > Thanks
> > >
> > > - Original Message -
> > > From: "Mario Premke" <[EMAIL PROTECTED]>
> > > To: "Dieter Maurer" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Monday, July 17, 2000 9:25 AM
> > > Subject: Re: [Zope] GUF Authentication Problems
> > >
> > >
> > > > Yes, I made the proxy roles ...
> > > > Before that Zope said:
> > > >  you are not authorized to access UserAuthentication
> > > >
> > > > But meaanwhile I turned to Zope-2.2.0 and I recognized "Login
Manager"
> > > > in the Available Objects. Is that the Login MAnager which was
formerly
> > > distributed
> > > > as a Product and hence makes GUF obsolete ??
> > > > Thanks
> > > > MArio
> > > >
> > > > >
> > > > > Mario Premke writes:
> > > > >  > Maybe, your password is encrypted?
> > > > >  > NO, it isn't.
> > > > >  >
> > > > >  > The problem is, that I cannot access "real_password", because
> Zope
> > > says:
> > > > >  >
> > > > >  > 2000-07-12T15:54:46 ERROR(200) GUF
> > > > >  >
> http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
> > > > >  > raised an exception (('Unauthorized', 'You are not authorized
to
> > > access
> > > > >  > real_password.', ))
> > > > > I know.
> > > > >
> > > > > Because I read the Zope digests, I am always about 1 day behind.
> > > > > I, therefore, may respond to questions already answered by
> > > > > the poster or others.
> > > > >
> > > > > You tried a proxy role as suggested by someone else?
> > > > >
> > > > >
> > > > >
> > > > > Dieter
> > > > >
> > > >
> > > >
> > > > ___
> > > > Zope maillist  -  [EMAIL PROTECTED]
> > > > 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Authentication Problems

2000-07-21 Thread Andy McKay

Thanks to you, and thanks to Brad.

That works... now there are a whole bunch of other security issues of course
:)

- Original Message -
From: "Mario Premke" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 3:41 PM
Subject: Re: [Zope] GUF Authentication Problems


> Yes - thanks to Brad.
> Give the proxy role (Authorizer) the permission
> "Access contents informations" in the folder you
> want to protect (i.e. the folder above GUF).
> Cheers
> Mario
>
> >
> > Did anyone find a solution to this problem?
> >
> > I have the exact same problem when try to access that object:
> >
> > 2000-07-19T22:09:27 ERROR(200) GUF
> > http://127.0.0.1:8080/acl_users/userAuthenticate raised an exception
> > (('Unauthorized', 0, ))
> >
> > Thanks
> >
> > - Original Message -
> > From: "Mario Premke" <[EMAIL PROTECTED]>
> > To: "Dieter Maurer" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Monday, July 17, 2000 9:25 AM
> > Subject: Re: [Zope] GUF Authentication Problems
> >
> >
> > > Yes, I made the proxy roles ...
> > > Before that Zope said:
> > >  you are not authorized to access UserAuthentication
> > >
> > > But meaanwhile I turned to Zope-2.2.0 and I recognized "Login Manager"
> > > in the Available Objects. Is that the Login MAnager which was formerly
> > distributed
> > > as a Product and hence makes GUF obsolete ??
> > > Thanks
> > > MArio
> > >
> > > >
> > > > Mario Premke writes:
> > > >  > Maybe, your password is encrypted?
> > > >  > NO, it isn't.
> > > >  >
> > > >  > The problem is, that I cannot access "real_password", because
Zope
> > says:
> > > >  >
> > > >  > 2000-07-12T15:54:46 ERROR(200) GUF
> > > >  >
http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
> > > >  > raised an exception (('Unauthorized', 'You are not authorized to
> > access
> > > >  > real_password.', ))
> > > > I know.
> > > >
> > > > Because I read the Zope digests, I am always about 1 day behind.
> > > > I, therefore, may respond to questions already answered by
> > > > the poster or others.
> > > >
> > > > You tried a proxy role as suggested by someone else?
> > > >
> > > >
> > > >
> > > > Dieter
> > > >
> > >
> > >
> > > ___
> > > Zope maillist  -  [EMAIL PROTECTED]
> > > 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Authentication Problems

2000-07-21 Thread Andy McKay

Did anyone find a solution to this problem?

I have the exact same problem when try to access that object:

2000-07-19T22:09:27 ERROR(200) GUF
http://127.0.0.1:8080/acl_users/userAuthenticate raised an exception
(('Unauthorized', 0, ))

Thanks

- Original Message -
From: "Mario Premke" <[EMAIL PROTECTED]>
To: "Dieter Maurer" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, July 17, 2000 9:25 AM
Subject: Re: [Zope] GUF Authentication Problems


> Yes, I made the proxy roles ...
> Before that Zope said:
>  you are not authorized to access UserAuthentication
>
> But meaanwhile I turned to Zope-2.2.0 and I recognized "Login Manager"
> in the Available Objects. Is that the Login MAnager which was formerly
distributed
> as a Product and hence makes GUF obsolete ??
> Thanks
> MArio
>
> >
> > Mario Premke writes:
> >  > Maybe, your password is encrypted?
> >  > NO, it isn't.
> >  >
> >  > The problem is, that I cannot access "real_password", because Zope
says:
> >  >
> >  > 2000-07-12T15:54:46 ERROR(200) GUF
> >  > http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
> >  > raised an exception (('Unauthorized', 'You are not authorized to
access
> >  > real_password.', ))
> > I know.
> >
> > Because I read the Zope digests, I am always about 1 day behind.
> > I, therefore, may respond to questions already answered by
> > the poster or others.
> >
> > You tried a proxy role as suggested by someone else?
> >
> >
> >
> > Dieter
> >
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Fw: [Zope] GUF, 2.2 and SQL

2000-07-20 Thread Andy McKay

Ah ah success while searching the mail archives I found this.
I wasnt imagining it, there is an ODBC problem in 2.2.

This patch solves it:

> Hi guys -
>
> For those of you (I've mostly heard ODBC adapter users)
> having authorization problems with your SQL methods, heres
> the scoop:
>
> Database connections use one of two classes in the
> framework for wrapping up result data returned from
> queries. One of those classes (that understands results
> in RDB format) was missing a required security assertion.
>
> The results returned by the ODBC adapter were bitten by
> this - probably there are other adapters that could
> be affected.
>
> I've attached a patch file for the file:
> lib/python/Shared/DC/ZRDB/RDB.py
>
> ...as well as an updated version of the whole file (since
> I know a lot of you will be on Windows w/o patch :) Either
> patch or replace the file and restart Zope to fix the
> problem.
>
> This is also checked in for a 2.2.1 release that will
> probably happen after a few weeks when enough people
> have upgraded to shake out any other problems.
>

- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 20, 2000 2:59 PM
Subject: [Zope] Fw: [Zope] GUF, 2.2 and SQL


> Ok heres more if I look up a bogus username it works fine. If I look
up
> a valid username it bombs. Its not running the method that is the problem,
> its accessing the recordset returned. Has something else changed here?
>
> 
>
> 
> 
> 
>
> 
>
> ----- Original Message -
> From: "Andy McKay" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 20, 2000 2:41 PM
> Subject: [Zope] GUF, 2.2 and SQL
>
>
> > Hi.
> >
> > Well Ive done a clean install of GUF and 2.2. Ive followed the
> instructions
> > to the letter in installing SQL for GUF and no matter what I do I cannot
> get
> > the damn thing to work.
> >
> > I have even set all users to have access to all things. And that doesnt
> > work. Has anyone else had this total failure at getting anywhere, or is
it
> > just me?
> >
> > Thanks.
> >
> > Andy McKay
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > 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  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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] Fw: [Zope] GUF, 2.2 and SQL

2000-07-20 Thread Andy McKay

Ok heres more if I look up a bogus username it works fine. If I look up
a valid username it bombs. Its not running the method that is the problem,
its accessing the recordset returned. Has something else changed here?









- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 20, 2000 2:41 PM
Subject: [Zope] GUF, 2.2 and SQL


> Hi.
>
> Well Ive done a clean install of GUF and 2.2. Ive followed the
instructions
> to the letter in installing SQL for GUF and no matter what I do I cannot
get
> the damn thing to work.
>
> I have even set all users to have access to all things. And that doesnt
> work. Has anyone else had this total failure at getting anywhere, or is it
> just me?
>
> Thanks.
>
> Andy McKay
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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] GUF, 2.2 and SQL

2000-07-20 Thread Andy McKay

Hi.

Well Ive done a clean install of GUF and 2.2. Ive followed the instructions
to the letter in installing SQL for GUF and no matter what I do I cannot get
the damn thing to work.

I have even set all users to have access to all things. And that doesnt
work. Has anyone else had this total failure at getting anywhere, or is it
just me?

Thanks.

Andy McKay


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Authentication Problems

2000-07-19 Thread Mario Premke

Yes - thanks to Brad.
Give the proxy role (Authorizer) the permission
"Access contents informations" in the folder you 
want to protect (i.e. the folder above GUF).
Cheers
Mario

> 
> Did anyone find a solution to this problem?
> 
> I have the exact same problem when try to access that object:
> 
> 2000-07-19T22:09:27 ERROR(200) GUF
> http://127.0.0.1:8080/acl_users/userAuthenticate raised an exception
> (('Unauthorized', 0, ))
> 
> Thanks
> 
> - Original Message -
> From: "Mario Premke" <[EMAIL PROTECTED]>
> To: "Dieter Maurer" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, July 17, 2000 9:25 AM
> Subject: Re: [Zope] GUF Authentication Problems
> 
> 
> > Yes, I made the proxy roles ...
> > Before that Zope said:
> >  you are not authorized to access UserAuthentication
> >
> > But meaanwhile I turned to Zope-2.2.0 and I recognized "Login Manager"
> > in the Available Objects. Is that the Login MAnager which was formerly
> distributed
> > as a Product and hence makes GUF obsolete ??
> > Thanks
> > MArio
> >
> > >
> > > Mario Premke writes:
> > >  > Maybe, your password is encrypted?
> > >  > NO, it isn't.
> > >  >
> > >  > The problem is, that I cannot access "real_password", because Zope
> says:
> > >  >
> > >  > 2000-07-12T15:54:46 ERROR(200) GUF
> > >  > http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
> > >  > raised an exception (('Unauthorized', 'You are not authorized to
> access
> > >  > real_password.', ))
> > > I know.
> > >
> > > Because I read the Zope digests, I am always about 1 day behind.
> > > I, therefore, may respond to questions already answered by
> > > the poster or others.
> > >
> > > You tried a proxy role as suggested by someone else?
> > >
> > >
> > >
> > > Dieter
> > >
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Authentication Problems

2000-07-17 Thread Mario Premke

Yes, I made the proxy roles ...
Before that Zope said:
 you are not authorized to access UserAuthentication

But meaanwhile I turned to Zope-2.2.0 and I recognized "Login Manager"
in the Available Objects. Is that the Login MAnager which was formerly distributed
as a Product and hence makes GUF obsolete ??
Thanks
MArio

> 
> Mario Premke writes:
>  > Maybe, your password is encrypted? 
>  >NO, it isn't.
>  > 
>  > The problem is, that I cannot access "real_password", because Zope says:
>  > 
>  > 2000-07-12T15:54:46 ERROR(200) GUF
>  > http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
>  > raised an exception (('Unauthorized', 'You are not authorized to access
>  > real_password.', ))
> I know.
> 
> Because I read the Zope digests, I am always about 1 day behind.
> I, therefore, may respond to questions already answered by
> the poster or others.
> 
> You tried a proxy role as suggested by someone else?
> 
> 
> 
> Dieter
> 


___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF KeyError problem

2000-07-14 Thread Mabe, Brad

I am attempting to get GUF (using sql methods for authentication) working on
an HPUX box and am running into a bit of a snag.  Running ZOPE in debug mode
yields the following:

ERROR(200) GUF http://sidr:8080/test/acl_users/userRoles raised an exception
(( , ))

INFO(0) GUF Successful authentication for user test
(http://sidr:8080/test/acl_users)

ERROR(200) GUF http://sidr:8080/test/acl_users/userRoles raised an exception
(( , ))

INFO(0) GUF Failed authorization for user test
(http://sidr:8080/test/acl_users)

As usual I'm at a loss to what the problem is.  I have been successful in
getting GUF & sql methods  working on an NT box running zope, but never ran
into this problem.  Any help will be greatly appreciated.

-=Brad=-


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Problem

2000-07-12 Thread Richard Moon

I don't think GUF works in its current release, or maybe the set-up 
instructions are incomplete. I used it before and it was ok but I tried the 
latest release and had the same problem as you. I reported it to GUF's 
author but didn't get a reply.

I've reverted back to standard ACL folders for the moment.


Richard

At 12:04 08/07/00 -0300, you wrote:
>Hi!
>
>I'm trying the "HOWTO: GenericUserFolder Walkthrough" and, in the very
>last step (trying to login as 'jorge'), every time I press the 'Ok'
>button, I get the same login screen. Looking at the source of it, I see
>the message:
>
>
>
>What is wrong? I'm using Zope 2.1.6 (patched to that security problem),
>on a Conectiva Linux box.
>
>TIA
>--
>César A. K. Grossmann
>[EMAIL PROTECTED]
>http://members.xoom.com/ckant/
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>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 )


Richard Moon
[EMAIL PROTECTED]




___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Authentication Problems

2000-07-12 Thread Mario Premke


Maybe, your password is encrypted? 
NO, it isn't.

The problem is, that I cannot access "real_password", because Zope says:

2000-07-12T15:54:46 ERROR(200) GUF
http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
raised an exception (('Unauthorized', 'You are not authorized to access
real_password.', ))
--
2000-07-12T15:54:46 INFO(0) GUF Failed authentication for napr003 

Any idea ??

Mario

>  > I cannot authenticate users with the following method:
>  > 
>  >  
>  >
>  >
>  >
>  > 
>  > 
>  > 
> Maybe, your password is encrypted?
> 
> 
> 
> Dieter
> 


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF + SQL connection problem

2000-07-11 Thread Mario Premke

I have similar problems with GUF and mySQL.
I gave userAuthenticate and userList the proxy role "Authoriser"
and allowed "Authoriser" to use SQL-Method in my SQL-Method.
What happened is that I cannot access "real_password" in
userAuthenticate :
 
2000-07-11T17:45:33 ERROR(200) GUF
http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
raised an exception (('Unauthorized', 'You are not authorized to access
real_password.', ))  

In addition, userList is defined as :


"sql_get_user_list()" is simply: "select user_login from users"

The result is: "userList method returned an unsupported type"
 
2000-07-11T17:40:39 ERROR(200) GUF An exception was raised by
http://134.96.119.88:8080/portal_folder/acl_users/userList
(('Unsupported Type', 'userList method returned an unsupported type',
)) 

Any ideas ... ???

Mario


> I'm trying to add a SQL connection to GUF, and getting an error when
> trying step 8 of the How To ("HOWTO Use GenericUserFolder with an SQL
> Database"):
> 
> "You are not authorized to change change_password_report because you do
> not have proxy roles. "
> 
> The step 8 says (http://www.zope.org/Members/hippy/GUF_SQL_crypt_1_2):
> 
> [snip]
> 8. Set permissions to protect the use database.
> 
> It is now time to setup the permissions on the GUF objects to ensure
> that the SQL methods can only be called the code that we have created.
> 
> Create a user defined role called Authoriser in the acl_users folder do
> not give it any permissions.[ok: created at the folder that contains the
> GUF]
> 
> set the 'Use Database Methods' permission for 'Authoriser' on all the
> SQLMethods created above.[ok]
> 
> set the Proxy role "Authoriser" on:
> 
>   change_password_report [oh-oh]
>   userAuthenticate 
>   userList 
>   userRoles 
> 
> [snip]
> 
> I'm doing it as a user that have the 'Manager' role at the root of the
> Zope site. The same username exists in the GUF, but I cannot change its
> roles (trying this trashes the connection).
> 
> I'm using GUF 1-2-4. Zope is the 2.1.6, and connected to a PostgreSQL
> 7.0.1 (it works).
> 
> TIA
> -- 
> César A. K. Grossmann
> [EMAIL PROTECTED]
> http://members.xoom.com/ckant/
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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] GUF + SQL connection problem

2000-07-11 Thread Cesar A. K. Grossmann

I'm trying to add a SQL connection to GUF, and getting an error when
trying step 8 of the How To ("HOWTO Use GenericUserFolder with an SQL
Database"):

"You are not authorized to change change_password_report because you do
not have proxy roles. "

The step 8 says (http://www.zope.org/Members/hippy/GUF_SQL_crypt_1_2):

[snip]
8. Set permissions to protect the use database.

It is now time to setup the permissions on the GUF objects to ensure
that the SQL methods can only be called the code that we have created.

Create a user defined role called Authoriser in the acl_users folder do
not give it any permissions.[ok: created at the folder that contains the
GUF]

set the 'Use Database Methods' permission for 'Authoriser' on all the
SQLMethods created above.[ok]

set the Proxy role "Authoriser" on:

change_password_report [oh-oh]
userAuthenticate 
userList 
userRoles 

[snip]

I'm doing it as a user that have the 'Manager' role at the root of the
Zope site. The same username exists in the GUF, but I cannot change its
roles (trying this trashes the connection).

I'm using GUF 1-2-4. Zope is the 2.1.6, and connected to a PostgreSQL
7.0.1 (it works).

TIA
-- 
César A. K. Grossmann
[EMAIL PROTECTED]
http://members.xoom.com/ckant/

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Problem

2000-07-10 Thread Richard Moon

At 17:15 10/07/00 +0200, you wrote:
>Is it possible (and how) to use the standard ACL
>with a user-database behind it ???
>
>Thanks
>Mario
Well kind of, in the sense that you can check the user login using ACL in 
the normal way and then you can match AUTHENTICATED_USER against your user 
database so your database knows who it is.

It means maintaining your users in two places (in the ACL folder and in the 
database), but it's a workaround until the GUF problems are ironed out or 
login manager is up and running (with docs on how to use it).

I need this because I've got users inputting data via Zope and I need to 
have a user ID I can stamp their data with - so all I do is -

select user_id
from users
where 

in an SQL-method where AUTHENTICATED_USER is defined as an argument.

Seems to work OK !


that's what I'm doing until I (or someone else) finds out hot to get GUF 
working again.





> >
> > Richard Moon wrote:
> > >
> > > I don't think GUF works in its current release, or maybe the set-up
> > > instructions are incomplete. I used it before and it was ok but I 
> tried the
> > > latest release and had the same problem as you. I reported it to GUF's
> > > author but didn't get a reply.
> >
> > I just added a SQL user database, and will try to make it run.
> >
> > > I've reverted back to standard ACL folders for the moment.
> >
> > My problem is the little window with "Zope" in it, when the user tries
> > to logon. If there was a way to customize it to anything I want, I stay
> > with the standart ACL. I'm using GUF only because of the docLogin
> > methot, that allows me to customize the login page.
> >
> > []s
> > --
> > César A. K. Grossmann
> > [EMAIL PROTECTED]
> > http://members.xoom.com/ckant/
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > 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  -  [EMAIL PROTECTED]
>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 )


Richard Moon
[EMAIL PROTECTED]



___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] GUF Problem

2000-07-10 Thread Mabe, Brad

Make sure you have assigned proxy roles to the GUF dtml methods
(userAuthenticate, UserList, etc.)  Failing to do so can result in
permission problems similar to what you are seeing.

  -=Brad=-

-Original Message-
From: Mario Premke
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: 7/10/00 11:15 AM
Subject: Re: [Zope] GUF Problem

Is it possible (and how) to use the standard ACL 
with a user-database behind it ???

Thanks
Mario

> 
> Richard Moon wrote:
> > 
> > I don't think GUF works in its current release, or maybe the set-up
> > instructions are incomplete. I used it before and it was ok but I
tried the
> > latest release and had the same problem as you. I reported it to
GUF's
> > author but didn't get a reply.
> 
> I just added a SQL user database, and will try to make it run.
> 
> > I've reverted back to standard ACL folders for the moment.
> 
> My problem is the little window with "Zope" in it, when the user tries
> to logon. If there was a way to customize it to anything I want, I
stay
> with the standart ACL. I'm using GUF only because of the docLogin
> methot, that allows me to customize the login page.
> 
> []s
> -- 
> César A. K. Grossmann
> [EMAIL PROTECTED]
> http://members.xoom.com/ckant/
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Problem

2000-07-10 Thread Mario Premke

Is it possible (and how) to use the standard ACL 
with a user-database behind it ???

Thanks
Mario

> 
> Richard Moon wrote:
> > 
> > I don't think GUF works in its current release, or maybe the set-up
> > instructions are incomplete. I used it before and it was ok but I tried the
> > latest release and had the same problem as you. I reported it to GUF's
> > author but didn't get a reply.
> 
> I just added a SQL user database, and will try to make it run.
> 
> > I've reverted back to standard ACL folders for the moment.
> 
> My problem is the little window with "Zope" in it, when the user tries
> to logon. If there was a way to customize it to anything I want, I stay
> with the standart ACL. I'm using GUF only because of the docLogin
> methot, that allows me to customize the login page.
> 
> []s
> -- 
> César A. K. Grossmann
> [EMAIL PROTECTED]
> http://members.xoom.com/ckant/
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Authentication Problems

2000-07-10 Thread Mario Premke


Ooops, I didn't recognize the Zope-Output:

2000-07-10T17:39:08 ERROR(200) GUF
http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate
raised an exception (('Unauthorized', 'You are not authorized to access
sql_get_password.', ))

Nevertheless - I played around with the permission for
anonymous, default_role and special_role, so I gave permission
to use ZSQL-Method and in addition to open/close
Database-connections(just in case)  - but nothing happened ...
I still can not login(with valid username and password) and
Zope says:  'You are not authorized to access sql_get_password.'

Any hints ...

Mario


> Hi,
> I cannot authenticate users with the following method:
> 
>  
>   
>   
>   
> 
> 
> 
> 
> The ZSQL-Method works as well as the former default method
> (user='jorge',passwd='secret') did.
> This above code comes from the Zope How-TO's:
> http://www.zope.org/Members/hippy/GUF_SQL_crypt_1_2
> 
> Any ideas will be appreciated as I have no idea any more
> what could be wrong...
> Thanks
> Mario
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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] GUF Authentication Problems

2000-07-10 Thread Mario Premke

Hi,
I cannot authenticate users with the following method:

 







The ZSQL-Method works as well as the former default method
(user='jorge',passwd='secret') did.
This above code comes from the Zope How-TO's:
http://www.zope.org/Members/hippy/GUF_SQL_crypt_1_2

Any ideas will be appreciated as I have no idea any more
what could be wrong...
Thanks
Mario

___
Zope maillist  -  [EMAIL PROTECTED]
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] [Fwd: [Zope] GUF Problem]

2000-07-10 Thread Cesar A. K. Grossmann

One reply I get from Mario:

Mario Premke wrote:
> 
> I remember I had the same problem.
> In GUF's acl_user folder I gave the special_role
> the same permissions as the anonymus role.
> As far as I remember that did it ...

-- 
César A. K. Grossmann
[EMAIL PROTECTED]
http://members.xoom.com/ckant/

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF Problem

2000-07-10 Thread Cesar A. K. Grossmann

Richard Moon wrote:
> 
> I don't think GUF works in its current release, or maybe the set-up
> instructions are incomplete. I used it before and it was ok but I tried the
> latest release and had the same problem as you. I reported it to GUF's
> author but didn't get a reply.

I just added a SQL user database, and will try to make it run.

> I've reverted back to standard ACL folders for the moment.

My problem is the little window with "Zope" in it, when the user tries
to logon. If there was a way to customize it to anything I want, I stay
with the standart ACL. I'm using GUF only because of the docLogin
methot, that allows me to customize the login page.

[]s
-- 
César A. K. Grossmann
[EMAIL PROTECTED]
http://members.xoom.com/ckant/

___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF Problem

2000-07-08 Thread Cesar A. K. Grossmann

Hi!

I'm trying the "HOWTO: GenericUserFolder Walkthrough" and, in the very
last step (trying to login as 'jorge'), every time I press the 'Ok'
button, I get the same login screen. Looking at the source of it, I see
the message:



What is wrong? I'm using Zope 2.1.6 (patched to that security problem),
on a Conectiva Linux box.

TIA
-- 
César A. K. Grossmann
[EMAIL PROTECTED]
http://members.xoom.com/ckant/

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF broken with Zope 2.2 beta 1?

2000-06-15 Thread Stuart 'Zen' Bishop

On Thu, 15 Jun 2000, Tom Schwaller wrote:

> I imported the folder from an older installation, but 
> the underlying Zope-API which GUF uses seems changed, 
> so it does not work.

Quite possibly. No testing has been done under 2.2 yet - I know there
will be issues with it as I have been watching pje & ty tackle them with
the LoginManager product.

> Even adding a GUF-folder by hand does not work:
> 
> Error Type: KeyError
> Error Value: PARENT_URL

This looks like you are trying to create a GUF in a folder that already
has an acl_users folder. This bug will be fixed in the next release,
which should be shortly after Zope 2.2 is released. You still won't be
able to create an acl_users folder in a folder that already contains one,
but the error message will actually render :-)
 
> line 576, in manage_addGenericUserFolder
>   File /usr/local/Zope-2.2.0/lib/python/ZPublisher/HTTPRequest.py, line
> 809, in __getitem__
> KeyError: (see above)

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF broken with Zope 2.2 beta 1?

2000-06-15 Thread Tom Schwaller

The Generic User Folder (GUF) Product seems broken
with the new beta relaese. Has anybody the same problem?
I use a kind of thing modelled after

http://www.zope.org/Members/hippy/GUF_SQL_crypt_1_2

I imported the folder from an older installation, but 
the underlying Zope-API which GUF uses seems changed, 
so it does not work.

Even adding a GUF-folder by hand does not work:

Error Type: KeyError
Error Value: PARENT_URL

Traceback (innermost last):
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222,
in publish_module
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187,
in publish
  File /usr/local/Zope-2.2.0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171,
in publish
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: manage_addGenericUserFolder)
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112,
in call_object
(Object: manage_addGenericUserFolder)
  File
/usr/local/Zope-2.2.0/lib/python/Products/GenericUserFolder/GenericUserFolder.py,
line 576, in manage_addGenericUserFolder
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/HTTPRequest.py, line
809, in __getitem__
KeyError: (see above)


Any hints? 


-- 

Tom Schwaller
http://www.linux-magazin.de
http://www.linux-community.de

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF and userList problems

2000-05-26 Thread Stuart 'Zen' Bishop

On Wed, 24 May 2000, Mabe, Brad wrote:

> I am having problems with GUF authentication after including a call to a sql
> method from within the GUF supplied userList method.  I have GUF installed
> correctly, and able to authenticate from a static list of users I created in
> the userList method. When I attempt to call a sql method from within
> userList, all authentications fail.  Even for the list of static users.
> 
> My modified userList Method is as follows:
> 
> 
> 
> jorge
> fred
> mongo

Sounds like your userList method has not been granted rights to access
the SQL_get_users method, and you need to grant it a proxy role. Its
in the README.txt.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] GUF and userList problems

2000-05-25 Thread Michal Bukovjan

That should work. You could try either to return the query object directly (in
comments they say it is possible),
and make sure that there are no spaces in the string returned from database.
I was solving similar problem with PostgreSQL, when the username field was
defined as CHAR(20), it always returned 20 characters regardless of the actual
length of the username, the username was padded with spaces. Switching to
VARCHAR solved my problem.
Or you could try to strip the username.

Michal Bukovjan

"Mabe, Brad" wrote:

> Greetings,
> I am having problems with GUF authentication after including a call to a sql
> method from within the GUF supplied userList method.  I have GUF installed
> correctly, and able to authenticate from a static list of users I created in
> the userList method. When I attempt to call a sql method from within
> userList, all authentications fail.  Even for the list of static users.
>
> My sql method, "SQL_get_users", is very simple:
> select user_account from user
>
> My modified userList Method is as follows:
> 
> 
> 
> jorge
> fred
> mongo
>
> I have verified that the sql method returns users by selecting the
> "User_list" tab from within the acl_users folder. I have tried numerous
> things, but I cannot get any of the users to authenticate after adding the
>  statement.  If I comment out the  statement, the users
> jorge, fred, and mongo can once again authenticate.  At first I thought
> maybe one of the sql method supplied users was conflicting with either
> jorge, fred, or mongo in some way so I took out the 
> line, essentially calling the sql method but not returning anything from it.
> Still couldn't authenticate anyone.
>
> Has anyone been successful in getting GUF userList to work with a sql
> method?  I have read through hippys how-to and think I have done everything
> he has suggested.
>
> Systems specifics are:
> Microsoft Windows NT 4.0 server, service pack 5
> Zope version 2.1.6
> GUF version 1.2.2
> Microsoft Access 2000
>
> Any help at this point will be appreciated.  I'm really pulling my hair out
> over this.
>
>-=Brad=-
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
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] GUF and userList problems

2000-05-24 Thread Mabe, Brad

Greetings,
I am having problems with GUF authentication after including a call to a sql
method from within the GUF supplied userList method.  I have GUF installed
correctly, and able to authenticate from a static list of users I created in
the userList method. When I attempt to call a sql method from within
userList, all authentications fail.  Even for the list of static users.

My sql method, "SQL_get_users", is very simple: 
select user_account from user

My modified userList Method is as follows:



jorge
fred
mongo

I have verified that the sql method returns users by selecting the
"User_list" tab from within the acl_users folder. I have tried numerous
things, but I cannot get any of the users to authenticate after adding the
 statement.  If I comment out the  statement, the users
jorge, fred, and mongo can once again authenticate.  At first I thought
maybe one of the sql method supplied users was conflicting with either
jorge, fred, or mongo in some way so I took out the 
line, essentially calling the sql method but not returning anything from it.
Still couldn't authenticate anyone.

Has anyone been successful in getting GUF userList to work with a sql
method?  I have read through hippys how-to and think I have done everything
he has suggested.

Systems specifics are:
Microsoft Windows NT 4.0 server, service pack 5
Zope version 2.1.6
GUF version 1.2.2
Microsoft Access 2000

Any help at this point will be appreciated.  I'm really pulling my hair out
over this.

   -=Brad=-




___
Zope maillist  -  [EMAIL PROTECTED]
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] GUF question

2000-05-17 Thread Mabe, Brad

Hello all,
I recently downloaded and installed GUF and am having a strange problem.
I followed the walkthrough and successfully created a folder that only the
user "jorge" can access. Thinking life was good at that point, I decided to
try and add additional GUF users and give them access to the protected
folder. I made the appropriate additions to the userAuthenticate, userList,
and userRoles methods (the dtml methods found within the acl_users folder)
and was unable to log in and access the protected folder as anyone other
than "jorge".  I then decided to backtrack a bit and removed the
modifications I had made, and verified that "jorge" could still log in and
access the folder.  I then renamed "jorge" to "bama" in the above GUF dtml
methods, restarted the Zope server (I am running NT, after all ;-) ), and
was unable to log in as "bama". For the heck of it I tried to log as
"jorge". No dice.  I then renamed "bama" back to "jorge" and was again able
to access the protected folder as "jorge".

Obviously I am missing something.  Shouldn't I be able to add users to the
provided GUF dtml methods?  And why the heck couldn't I simply rename
"jorge" to "bama"?  

   -=Brad=-





___
Zope maillist  -  [EMAIL PROTECTED]
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 )