Ignore:
Timestamp:
2003-07-25T04:57:48+12:00 (21 years ago)
Author:
sjboddie
Message:

Changed the authentication directives to more easier to use ones.
authenticate option replaces auth_collection and takes the same options. The
options public_documents and private_documents replace the allowallexcept
and denyallexcept ACLs. The allow_acls has been removed. The auth_group remains
the same.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/documentaction.cpp

    r5019 r5024  
    178178           ColInfoResponse_t *cinfo = recpt->get_collectinfo_ptr (collectproto, args["c"], logout);
    179179           
    180            if(cinfo->auth_collection == "document" && cinfo->allow_acls)
     180           if(cinfo->authenticate == "document")
    181181          {
    182182             // both are either commented out or uncomment and are empty
    183              if (cinfo->allowallexcept.empty() && cinfo->denyallexcept.empty())
     183             if (cinfo->public_documents.empty() && cinfo->private_documents.empty())
    184184            {
    185185               //deny everything
     
    188188            }
    189189
    190              // both allowallexcept and denyallexcept are turned on !
    191              else if (!cinfo->allowallexcept.empty() && !cinfo->denyallexcept.empty())
     190             // both public_documents and private_documents are turned on !
     191             else if (!cinfo->public_documents.empty() && !cinfo->private_documents.empty())
    192192            {
    193193               //deny everything
     
    196196            }
    197197             
    198              // only allowallexcept is set, so ask to authenticate for that article/doc
    199              else if (cinfo->allowallexcept.find(docTop) != cinfo->allowallexcept.end() )
     198             // only public_documents is set, so ask to authenticate for that article/doc
     199             else if (cinfo->public_documents.find(docTop) != cinfo->public_documents.end() )
    200200            {
    201201               
     
    204204            }
    205205             
    206              // only denyallexcept is set, so ask to authenticate for that article/doc
    207              else if (cinfo->denyallexcept.find(docTop) == cinfo->denyallexcept.end() )
     206             // only private_documents is set, so ask to authenticate for that article/doc
     207             else if (cinfo->private_documents.find(docTop) == cinfo->private_documents.end() )
    208208            {
    209209               args["uan"] = "1";
Note: See TracChangeset for help on using the changeset viewer.