Login issue with DatabaseServerLoginModule in JBoss 6

前端 未结 1 1069
刺人心
刺人心 2021-01-25 22:45

I get a ServeletException: Failed to authenticate a principal when I attempt to login with the DatabaseServerLoginModule. I\'m guessing the issue is either how

1条回答
  •  忘掉有多难
    2021-01-25 23:15

    I was able to get help with this on the jboss as forums. My solution was to revise the markup of the rolesQuery from:

    
    

    to this:

    
       SELECT groupid, 'Roles' FROM grouptable WHERE username=?
    
    

    I also had to change the encoding style to HEX. Here is my working login-config.xml.

    
        
           
              java:/jdbc/thor_ds
              SELECT password FROM usertable WHERE username = ?
              SELECT groupid, 'Roles' FROM grouptable WHERE username=?
              MD5
              HEX
              
           
        
     
    

    0 讨论(0)
提交回复
热议问题