1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

Feature #552: XML-RPC Method one.user.authenticate added

This commit is contained in:
Carlos Martín 2011-03-31 12:52:21 +02:00
parent 35de55685d
commit 5372539646
3 changed files with 26 additions and 0 deletions

View File

@ -1048,6 +1048,27 @@ private:
/* ---------------------------------------------------------------------- */
class UserAuthenticate: public xmlrpc_c::method
{
public:
UserAuthenticate(UserPool * _upool):upool(_upool)
{
_signature="A:s";
_help="Authenticates the user.";
};
~UserAuthenticate(){};
void execute(
xmlrpc_c::paramList const& paramList,
xmlrpc_c::value * const retvalP);
private:
UserPool * upool;
};
/* ---------------------------------------------------------------------- */
class UserInfo: public xmlrpc_c::method
{
public:

View File

@ -300,6 +300,9 @@ void RequestManager::register_xml_methods()
xmlrpc_c::methodPtr user_change_password(new
RequestManager::UserChangePassword(upool));
xmlrpc_c::methodPtr user_authenticate(new
RequestManager::UserAuthenticate(upool));
xmlrpc_c::methodPtr userpool_info(new
RequestManager::UserPoolInfo(upool));
@ -378,6 +381,7 @@ void RequestManager::register_xml_methods()
RequestManagerRegistry.addMethod("one.user.delete", user_delete);
RequestManagerRegistry.addMethod("one.user.info", user_info);
RequestManagerRegistry.addMethod("one.user.passwd", user_change_password);
RequestManagerRegistry.addMethod("one.user.authenticate",user_authenticate);
RequestManagerRegistry.addMethod("one.userpool.info", userpool_info);

View File

@ -60,6 +60,7 @@ source_files=[
'RequestManagerUserAllocate.cc',
'RequestManagerUserDelete.cc',
'RequestManagerUserChangePassword.cc',
'RequestManagerUserAuthenticate.cc',
'RequestManagerUserInfo.cc',
'RequestManagerUserPoolInfo.cc'
]