You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2005/03/31 17:58:58 UTC

DO NOT REPLY [Bug 34253] New: - [PATCH] Anonymous Authenticator

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34253>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34253

           Summary: [PATCH] Anonymous Authenticator
           Product: Lenya
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Access Control
        AssignedTo: dev@lenya.apache.org
        ReportedBy: gregor@apache.org


dave- <dave- <at> pacbell.net> writes:


>>>>> >>> dave- wrote:
>>>>> >>>
>>>>
>>>>>> >>>> I would like to author a lenya publication without having to
>>>>>> >>>> login.  What is the best way to do that?
>>>>
>>>>> >>>
>>>>> >>> change your access control to allow access to authoring to world
>>>
>>>> >>


One hack would be to use a fake authenticator that authenticates to an anonymous
user with no password (you just have to add that user with an arbitrary password
via the admin screen).  We did exactly this for using client certs and it's very
easy to do.  Of course, you'll need the source version of lenya to build it.

Enclosed is some code that implements this.  Instructions to use it:

1) in your current lenya, create the user "anonymous" with any password and give
it admin, edit and review access (groups)
2) cd to your lenya source root directory (this is the directory that has
src/java below it)
3a) mkdir -p src/java/edu/mit/idd/lenya
3b) copy the attached java file to the above directory
4) edit src/webapp/WEB-INF/cocoon-xconf.xsl:
 find the component block for the UserAuthenticator and comment it out
 add this component which does it's job instead:
  <component logger="lenya.ac.authenticator"
      class="edu.mit.idd.lenya.AnonymousAuthenticator"
      role="org.apache.lenya.ac.Authenticator"/>

5) ./build.sh (or ./build.sh install if you're using tomcat)
6) restart lenya

You also might want to set your session timeout to 0 in your tomcat config
because if you leave your edit window open too long without saving it will go
back to the authoring view when you go to save and you'll lose any edits.

If you need to go back to regular lenya authentication, just remove the changes
you made to cocoon-xconf.xsl and rebuild.

-mm

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org