• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAAS - Login problem  RSS feed

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 {
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());
} catch(LoginException e) {
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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!