<div id="RTEContent">Thanks Dominik and Alec for your inputs. Now I implement the authentication adapter using browser cookies with customized form and it works.<br> <br> 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. <br> <br> Jane<br><br><b><i>Dominik Huber <dominik.huber@perse.ch></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> The global PrincipalRegistry does not provide any logout mechanism <br>(regular principals registered within zcml).<br><br>The PAU provides the logout mechanism invoking the configured credential <br>plugin. One simple way to get the logout mechanism is to use the <br>'Session Credentials'-plugin. (The basic
HTTPBasicAuthCredentialsPlugin <br>does not provide logout mechansim.).<br><br>Don't forget to register the following adapter within your overrides.zcml:<br> <adapter =""><br> factory="zope.app.security.LogoutSupported"<br> /><br><br>Regards,<br>Dominik<br><br>Alec Munro wrote:<br><br>>Hi Jane,<br>><br>>I'm not an expert, but having run into a similar situation myself, you<br>>may be out of luck. The HTTP Auth (what generates the popup window) is<br>>almost entirely separate from other browser functionality, and once<br>>the authentication is complete, I don't know of any way you could<br>>access the password. It's possible that you could create a custom<br>>authentication method that combined Basic HTTP with cookie based<br>>Authentication, but it might be simpler to setup a login form for your<br>>users, if that's an option, and use the standard cookie based auth.<br>><br>>Actually, a third option might be to use the Basic HTTP
auth, and then<br>>use request.principal to lookup the actual principal information,<br>>including login and password. I believe Zope is currently storing<br>>passwords plain text, so this might work for your purposes. This seems<br>>rather unclean to me, but it might get the job done.<br>><br>>As I said, I am not an expert, but I hope this is at least somewhat helpful.<br>><br>>Alec Munro<br>><br>>On 12/6/05, Jing Song <janejsong @yahoo.com=""> wrote:<br>> <br>><br>>>Hi,<br>>><br>>>I have problems to implement my zope logout feature. Since the Basic HTTP<br>>>Authentication does not funcition properly, I'm trying to work around by<br>>>using Philipp's cookie based authentication solution showing in the<br>>>Worldcookery example. But if I only use the default pop-up login window<br>>>without using a customized login form, how could I get the user name and the<br>>>password to set the cookie so that
the logout can also function.<br>>><br>>>Any idea or example would be very much appreciated. Thank you in advance!<br>>><br>>>Jane<br>>><br>>> ________________________________<br>>> Yahoo! Personals<br>>> Let fate take it's course directly to your email.<br>>> See who's waiting for you Yahoo! Personals<br>>><br>>><br>>>_______________________________________________<br>>>Zope3-users mailing list<br>>>Zope3-users@zope.org<br>>>http://mail.zope.org/mailman/listinfo/zope3-users<br>>><br>>><br>>><br>>> <br>>><br>>_______________________________________________<br>>Zope3-users mailing list<br>>Zope3-users@zope.org<br>>http://mail.zope.org/mailman/listinfo/zope3-users<br>> <br>><br><br><br>-- <br>Dominik Huber<br><br>Perse Engineering GmbH<br>Jurastrasse 9a<br>CH-5406 Baden<br> <br>E-Mail: dominik.huber@perse.ch<br>Telefon: ++41 56 534
7730<br><br>begin:vcard<br>fn:Dominik Huber<br>n:Huber;Dominik<br>email;internet:dominik.huber@perse.ch<br>tel;work:++41 56 534 77 30<br>x-mozilla-html:FALSE<br>version:2.1<br>end:vcard<br><br></janejsong></adapter></blockquote><br></div><p>
        
                <hr size=1>Yahoo! Shopping<br>
Find Great Deals on Gifts at <a href="http://shopping.yahoo.com/;_ylc=X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHNsawNob2xpZGF5LTA1
">Yahoo! Shopping</a>