Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAAS - Login problem

Aravind Kumar
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this simple problem.
I have a custom LoginModule and described as follows in a conf file as follows
JdbcLogin { required
jndiName = "java:/CpsJdbcDs"
tableName = "CPT_USER"
userColumnName = "CPT_USER"
passwordColumnName = "PWD";
and the client authentication part is
public static void main(String[] arg) throws Exception {
try {
LoginContext lc = new LoginContext("JdbcLogin", new PropCallbackHandler());
} catch(LoginException e) {
System.out.println("error1 :" + e);
I get this exception
java:/CpsJdbcDs not bound.
How do i make the class "" available to the server?Do I have to make a jar file and drop it in the deploy directory?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic