2. Java version: java version "1.6.0_17"
3. OS type and the version: Linux (Ubuntu & CentOS 5) & Windows
4. UA (phone), gateway or other hardware/software involved: All
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :
6. Your problem:
I've been trying all day to get it to authenticate with Radius, however I massivly failed, so I took the approach of writing my own authentication plugin, I stated with a blankAuth module which should always authenticate users regardless to the username/password they use...
BlankAuth, works perfectly on Brekeke installed on Windows...
On linux (regardless to which distribution) it always fails, and returns 401 to whatever UA being used...
I've used exactly the same JAR file that I build on my windows machine, using the exact same JVM on all machines (windows and linux ones) even including the minor version...
I've used exactly the same version of WAR file...
Tomcat/5.5.28 on linux, and Tomcat/5.5.27 on windows...
blankAuth.java is this
Code: Select all
package authPlugin;
import com.brekeke.common.*;
import com.brekeke.net.usrdir.* ;
public class blankAuth implements UserDir {
public void init( Envrnmt env, Logging log ) throws Exception {
}
public void close () throws Exception {
}
public UserRecord lookup (String username, String method, String destination, String authInfo) throws Exception{
UserRecord record = new UserRecord();
record.username = username;
record.password = "DummyPassword";
record.bAuthorized = true;
return record;
}
public boolean append( UserRecord record ) throws Exception {
return false;
}
public boolean remove( UserRecord record ) throws Exception {
return false;
}
public boolean remove( String username ) throws Exception {
return false;
}
public int getCount() throws Exception {
return 1;
}
}