Feature #1544: New xml-rpc method one.system.config

This commit is contained in:
Carlos Martín committed 2012-11-14 12:54:31 +01:00
1 parent 707321d3bc
commit f487277f03
4 files changed
+45

No files matched your search

+19
View File
@@ -37,3 +37,22 @@ void SystemVersion::request_execute(xmlrpc_c::paramList const& paramList,
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
void SystemConfig::request_execute(xmlrpc_c::paramList const& paramList,
RequestAttributes& att)
{
if ( att.gid != GroupPool::ONEADMIN_ID )
{
failure_response(AUTHORIZATION,
"The oned configuration can only be retrieved by users in the oneadmin group",
att);
return;
}
success_response(Nebula::instance().get_configuration_xml(), att);
return;
}
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */