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:
parent
bfed9b8b23
commit
e26e3abc77
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user