Re: [Zope3-Users] logout feature with zope3

2005-12-13 Thread Stephan Richter
On Wednesday 07 December 2005 00:40, Jing Song wrote:
     But I'm having another trouble. We use ldap authentication to store the
  user information.  How could that work with cookies to do login and
  logout?  ls there any example or reference materials available? I am
  pretty new in this area, any information will be very much helpful.

You really want to checkout the pluggable authentication utility in 
zope.app.authentication. There is also an ldap adapter package in the 
repository to connect to LDAP. And there should also be a working blugin for 
the pluggable authentication utility that uses LDAP.

http://svn.zope.org/ldapadapter/trunk/
http://svn.zope.org/ldappas/trunk/

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] logout feature with zope3

2005-12-06 Thread Jing Song
  Hi,I have problems to implement my zope logout feature. Since the Basic HTTP Authentication does not funcition properly, I'm trying towork around by using Philipp's cookie based authentication solution showing in the Worldcookery example. But if I only use the default pop-up login window without using a customized login form, how could I get the user name and the password to set the cookie so that the logout can also function.Any idea or example would be very much appreciated. Thank you in advance!Jane
		 Yahoo! Personals 
Let fate take it's course directly to your email. 
See who's waiting for you Yahoo! Personals___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] logout feature with zope3

2005-12-06 Thread Alec Munro
Hi Jane,

I'm not an expert, but having run into a similar situation myself, you
may be out of luck. The HTTP Auth (what generates the popup window) is
almost entirely separate from other browser functionality, and once
the authentication is complete, I don't know of any way you could
access the password. It's possible that you could create a custom
authentication method that combined Basic HTTP with cookie based
Authentication, but it might be simpler to setup a login form for your
users, if that's an option, and use the standard cookie based auth.

Actually, a third option might be to use the Basic HTTP auth, and then
use request.principal to lookup the actual principal information,
including login and password. I believe Zope is currently storing
passwords plain text, so this might work for your purposes. This seems
rather unclean to me, but it might get the job done.

As I said, I am not an expert, but I hope this is at least somewhat helpful.

Alec Munro

On 12/6/05, Jing Song [EMAIL PROTECTED] wrote:

 Hi,

 I have problems to implement my zope logout feature. Since the Basic HTTP
 Authentication does not funcition properly, I'm trying to work around by
 using Philipp's cookie based authentication solution showing in the
 Worldcookery example. But if I only use the default pop-up login window
 without using a customized login form, how could I get the user name and the
 password to set the cookie so that the logout can also function.

 Any idea or example would be very much appreciated. Thank you in advance!

 Jane

  
  Yahoo! Personals
  Let fate take it's course directly to your email.
  See who's waiting for you Yahoo! Personals


 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users



___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users