diff --git a/src/um/UserPool.cc b/src/um/UserPool.cc index 746e898346..2ab1618f42 100644 --- a/src/um/UserPool.cc +++ b/src/um/UserPool.cc @@ -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 {