mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Remove restriction for plain auth for oneadmin.
(cherry picked from commit ff05d07af0231ae4a2e8a0915973c05f9b533409)
This commit is contained in:
parent
daab17b4e0
commit
02bd5ec4ef
@ -250,23 +250,12 @@ bool UserPool::authenticate(const string& session,
|
||||
}
|
||||
|
||||
AuthRequest ar(uid, gid);
|
||||
|
||||
NebulaLog::log("UserPool",Log::ERROR, "Authenticating " + username);
|
||||
|
||||
ar.add_authenticate(username,u_pass,secret);
|
||||
|
||||
if ( uid == 0 ) //oneadmin
|
||||
{
|
||||
if (ar.plain_authenticate())
|
||||
{
|
||||
user_id = uid;
|
||||
group_id = gid;
|
||||
|
||||
uname = tuname;
|
||||
gname = tgname;
|
||||
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
else if (authm == 0) //plain auth
|
||||
if (authm == 0) //plain auth
|
||||
{
|
||||
if ( user != 0 && ar.plain_authenticate()) //no plain for external users
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user