1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-05 21:57:24 +03:00

feature #522: User can be authenticated using user/group info methods with uid/gid = -1

This commit is contained in:
Ruben S. Montero 2011-06-16 12:33:29 +02:00
parent bfed9b8b23
commit e26e3abc77

View File

@ -32,6 +32,18 @@ void RequestManagerInfo::request_execute(xmlrpc_c::paramList const& paramList)
return;
}
if ( oid == -1 )
{
if ( auth_object == AuthRequest::USER )
{
oid = uid;
}
else if ( auth_object == AuthRequest::GROUP )
{
oid = gid;
}
}
object = pool->get(oid,true);
if ( object == 0 )