This is a fork of LDAPUserFolder version 2.3.
* registry of local users
* single-sign-on with CAS using a modified ACASUserFolder


Add the following python script, called "buttons_loginout", in the ZODB root:
================
request = container.REQUEST
RESPONSE =  request.RESPONSE
loginurl = context.cas_authentication.acl_users.cuf_login_url
requesturl = request.URL
if request.has_key('AUTHENTICATED_USER') and request['AUTHENTICATED_USER'].getUserName() != 'Anonymous User':
    userobj = request['AUTHENTICATED_USER']
    print """<span><a id="logoutlink" href="/cas_authentication/acl_users/cas_complete_logout?service=%s">Logout (%s)</a></span>""" % (requesturl,userobj.getUserName())
else:
    print """<a id="loginlink" href="%s?service=%s">Login</a>""" % (loginurl,requesturl)
return printed
================
