* [ adempiere-Bugs-1719617 ] Server bean allows remote unauthenticated queries
- Implemented jaas authentication for server bean
This commit is contained in:
parent
6c59ed5784
commit
c6b0478c14
|
@ -18,6 +18,7 @@ package org.compiere.apps;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.event.*;
|
import java.awt.event.*;
|
||||||
|
import java.rmi.AccessException;
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
@ -616,11 +617,21 @@ public final class ALogin extends CDialog
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (Throwable e)
|
||||||
|
{
|
||||||
|
if (e.getCause() instanceof AccessException)
|
||||||
|
{
|
||||||
|
statusBar.setStatusLine(txt_UserPwdError, true);
|
||||||
|
userTextField.setBackground(AdempierePLAF.getFieldBackground_Error());
|
||||||
|
passwordField.setBackground(AdempierePLAF.getFieldBackground_Error());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
log.severe(CLogger.getRootCause(e).getLocalizedMessage());
|
log.severe(CLogger.getRootCause(e).getLocalizedMessage());
|
||||||
statusBar.setStatusLine(CLogger.getRootCause(e).getLocalizedMessage(), true);
|
statusBar.setStatusLine(CLogger.getRootCause(e).getLocalizedMessage(), true);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Delete existing role items
|
// Delete existing role items
|
||||||
|
|
Loading…
Reference in New Issue