From 7e0647f69213f5526159798636c1e87d3540f91e Mon Sep 17 00:00:00 2001 From: theli Date: Tue, 8 Nov 2005 10:17:12 +0000 Subject: [PATCH] *) Bugfix for userDB usage during authentication git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1052 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaSwitchboard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java index 80fff9481..70670b127 100644 --- a/source/de/anomic/plasma/plasmaSwitchboard.java +++ b/source/de/anomic/plasma/plasmaSwitchboard.java @@ -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 }