X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_auth_simple.cpp;h=33a94fa5e8832fee63cbf23b44369226463ce516;hb=f47e8cf4cde2ba5465106e219c803e6424a4f177;hp=144595fd81e740ce5819d7802e3d00f607d867e2;hpb=196b60817e09c208eaf483128c24c4227fe489f3;p=metaproxy-moved-to-github.git diff --git a/src/filter_auth_simple.cpp b/src/filter_auth_simple.cpp index 144595f..33a94fa 100644 --- a/src/filter_auth_simple.cpp +++ b/src/filter_auth_simple.cpp @@ -1,4 +1,4 @@ -/* $Id: filter_auth_simple.cpp,v 1.16 2006-01-18 15:03:02 mike Exp $ +/* $Id: filter_auth_simple.cpp,v 1.17 2006-01-18 15:07:09 mike Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -38,10 +38,10 @@ namespace yp2 { std::map userRegister; std::map > targetsByUser; std::map userBySession; - bool discardUnauthorisedDBs; + bool discardUnauthorisedTargets; Rep() { got_userRegister = false; got_targetRegister = false; - discardUnauthorisedDBs = false; } + discardUnauthorisedTargets = false; } }; } } @@ -75,8 +75,8 @@ void yp2::filter::AuthSimple::configure(const xmlNode * ptr) targetRegisterName = yp2::xml::get_text(ptr); m_p->got_targetRegister = true; } else if (!strcmp((const char *) ptr->name, - "discardUnauthorisedDBs")) { - m_p->discardUnauthorisedDBs = true; + "discardUnauthorisedTargets")) { + m_p->discardUnauthorisedTargets = true; } else { die("Bad element in auth_simple: <" + std::string((const char *) ptr->name) + ">"); @@ -352,7 +352,7 @@ void yf::AuthSimple::check_targets(yp2::Package & package) const contains(authorisedTargets, "*")) { i++; } else { - if (!m_p->discardUnauthorisedDBs) + if (!m_p->discardUnauthorisedTargets) return reject_init(package, YAZ_BIB1_ACCESS_TO_SPECIFIED_DATABASE_DENIED, i->c_str()); i = targets.erase(i);