22 #include <drizzled/plugin/authorization.h>
24 #include <boost/program_options.hpp>
26 namespace po= boost::program_options;
30 using namespace drizzled;
32 namespace simple_user_policy
35 std::string remap_dot_to;
39 context.add(
new Policy);
45 context(
"remap-dot-to",
46 po::value<std::string>(&remap_dot_to)->default_value(
"."),
47 N_(
"Remap '.' to another character/string when controlling access to a schema. Useful for usernames that have a '.' in them. If a '.' is remapped to an underscore, you don't have to quote the schema name."));
52 DRIZZLE_DECLARE_PLUGIN
58 N_(
"Authorization matching username to schema object name"),
60 simple_user_policy::init,
62 simple_user_policy::init_options
64 DRIZZLE_DECLARE_PLUGIN_END;