-/* $Id: filter_auth_simple.cpp,v 1.19 2006-05-15 11:43:01 adam Exp $
- Copyright (c) 2005-2006, Index Data.
+/* $Id: filter_auth_simple.cpp,v 1.25 2008-02-20 15:07:51 adam Exp $
+ Copyright (c) 2005-2007, Index Data.
-%LICENSE%
+This file is part of Metaproxy.
+
+Metaproxy is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with Metaproxy; see the file LICENSE. If not, write to the
+Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
*/
#include "config.hpp"
// Read XML config.. Put config info in m_p.
-void mp::filter::AuthSimple::configure(const xmlNode * ptr)
+void mp::filter::AuthSimple::configure(const xmlNode * ptr, bool test_only)
{
std::string userRegisterName;
std::string targetRegisterName;
std::list<std::string> authorisedTargets = m_p->targetsByUser[user];
std::list<std::string> targets;
- Z_OtherInformation *otherInfo = initReq->otherInfo;
- mp::util::get_vhost_otherinfo(&otherInfo, 1, targets);
+ Z_OtherInformation **otherInfo = &initReq->otherInfo;
+ mp::util::remove_vhost_otherinfo(otherInfo, targets);
// Check each of the targets specified in the otherInfo package
std::list<std::string>::iterator i;
YAZ_BIB1_ACCESS_TO_SPECIFIED_DATABASE_DENIED,
// ### It would be better to use the Z-db name
"all databases");
-
mp::odr odr;
- mp::util::set_vhost_otherinfo(&otherInfo, odr, targets);
+ mp::util::set_vhost_otherinfo(otherInfo, odr, targets);
package.move();
}