Remove restriction for plain auth for oneadmin.

(cherry picked from commit ff05d07af0231ae4a2e8a0915973c05f9b533409)
This commit is contained in:
Ted authored and Ruben S. Montero committed 2011-08-30 00:58:17 +02:00
1 parent daab17b4e0
commit 02bd5ec4ef
1 file changed
+3 -14
+3 -14
View File
@@ -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
{