Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix authentication by hit in userdb (wrong parameter)

reger44a6a4e795c8
diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java
index fa79ef593..444713709 100644
--- a/source/net/yacy/search/Switchboard.java
+++ b/source/net/yacy/search/Switchboard.java
@@ -3542,8 +3542,8 @@ public final class Switchboard extends serverSwitch {
return 3; // soft-authenticated for localhost
}
- // authorization by hit in userDB (realm username:encodedpassword - handed over by DefaultServlet)
- if ( this.userDB.hasAdminRight(realmValue, requestHeader.getHeaderCookies()) ) {
+ // authorization by hit in userDB (authtype username:encodedpassword - handed over by DefaultServlet)
+ if ( this.userDB.hasAdminRight(realmProp, requestHeader.getHeaderCookies()) ) {
adminAuthenticationLastAccess = System.currentTimeMillis();
return 4; //return, because 4=max
}