*) Bugfix for userDB usage during authentication

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1052 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent 86c74d209d
commit 7e0647f692

@ -1836,7 +1836,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
if ((((String) header.get("CLIENTIP", "")).equals("localhost")) && (adminAccountBase64MD5.equals(authorization))) return 3; // soft-authenticated for localhost
if (adminAccountBase64MD5.equals(serverCodings.encodeMD5Hex(authorization))) return 4; // hard-authenticated, all ok
userDB.Entry entry = this.userDB.proxyAuth((String)header.get(httpHeader.AUTHORIZATION, "xxxxxx"));
if(entry.hasAdminRight())
if((entry != null) && (entry.hasAdminRight()))
return 4;
return 0; // wrong password
}

Loading…
Cancel
Save