• 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
Hello,
I have this simple problem.
I have a custom LoginModule and described as follows in a conf file as follows
JdbcLogin {
de.coryx.cps.security.jdbc.JdbcLoginModule 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());
lc.login();
} catch(LoginException e) {
e.printStackTrace();
System.out.println("error1 :" + e);
}
}
I get this exception
java:/CpsJdbcDs not bound.
How do i make the class "de.coryx.cps.security.jdbc.JdbcLoginModule" available to the server?Do I have to make a jar file and drop it in the deploy directory?
Thanks
Aravind
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!