Potential bug in Brekeke SIP...

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
smshaker
Posts: 2
Joined: Tue Jan 05, 2010 6:39 am
Location: Dubai

Potential bug in Brekeke SIP...

Post by smshaker »

1. Brekeke Product Name and version: 2.4.3.0
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;
	}
}
Kindly advice....
Harold
Posts: 291
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Do you mean behavior of your plug-in is depending on OS?
smshaker
Posts: 2
Joined: Tue Jan 05, 2010 6:39 am
Location: Dubai

Post by smshaker »

Apparently yes...
I've been banging my head to the wall, to get that very generic code to work on linux, while it runs perfectly on windows !!!!

Could someone please give this code a try on linux and let me know ?!!!

If anyone is interested, just let me know if you require the pre-compiled JAR, or if you'll just compile it on your own...
Harold
Posts: 291
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Where did you put the WAR file in the Linux?
Are you sure the directory is listed in the CLASSPATH??
Post Reply