Index: lams_common/src/java/org/lamsfoundation/lams/integration/security/Authenticator.java =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/integration/security/Authenticator.java,v diff -u -r1.3 -r1.4 --- lams_common/src/java/org/lamsfoundation/lams/integration/security/Authenticator.java 20 Sep 2006 02:36:59 -0000 1.3 +++ lams_common/src/java/org/lamsfoundation/lams/integration/security/Authenticator.java 12 Oct 2006 06:37:54 -0000 1.4 @@ -36,6 +36,7 @@ public class Authenticator { public static void authenticate(ExtServerOrgMap map, String datetime, String username, String method, String hashValue) throws AuthenticationException{ if(map==null) throw new AuthenticationException("The third party server is not configured on LAMS server"); + if(map.getDisabled()) throw new AuthenticationException("The third party server is disabled"); String plaintext = datetime.toLowerCase().trim() + username.toLowerCase().trim() + method.toLowerCase().trim() + @@ -46,12 +47,14 @@ public static void authenticate(ExtServerOrgMap map, String datetime, String username, String hashValue) throws AuthenticationException{ if(map==null) throw new AuthenticationException("The third party server is not configured on LAMS server"); + if(map.getDisabled()) throw new AuthenticationException("The third party server is disabled"); String plaintext = datetime.toLowerCase().trim()+username.toLowerCase().trim()+map.getServerid().toLowerCase().trim()+map.getServerkey().toLowerCase().trim(); checkHash(plaintext, hashValue); } public static void authenticate(ExtServerOrgMap map, String datetime, String hashValue) throws AuthenticationException{ if(map==null) throw new AuthenticationException("The third party server is not configured on LAMS server"); + if(map.getDisabled()) throw new AuthenticationException("The third party server is disabled"); String plaintext = datetime.toLowerCase().trim()+map.getServerid().toLowerCase().trim()+map.getServerkey().toLowerCase().trim(); checkHash(plaintext, hashValue); }