Author |
Message |
smshaker Brekeke Newbie
![](images/spacer.gif)
Joined: 05 Jan 2010 Posts: 2
Location: Dubai
|
Posted: Tue Jan 05, 2010 2:01 pm Post subject: Potential bug in Brekeke SIP... |
|
|
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/networkpatterns.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: |
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.... |
|
Back to top |
|
Harold Brekeke Master Guru
![](images/spacer.gif)
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Tue Jan 05, 2010 5:22 pm Post subject: |
|
|
Do you mean behavior of your plug-in is depending on OS? |
|
Back to top |
|
smshaker Brekeke Newbie
![](images/spacer.gif)
Joined: 05 Jan 2010 Posts: 2
Location: Dubai
|
Posted: Wed Jan 06, 2010 12:25 am Post subject: |
|
|
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... |
|
Back to top |
|
Harold Brekeke Master Guru
![](images/spacer.gif)
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Wed Jan 06, 2010 11:39 am Post subject: |
|
|
Where did you put the WAR file in the Linux?
Are you sure the directory is listed in the CLASSPATH?? |
|
Back to top |
|
|