Hi,

I'm experiencing problems with UsersRolesLoginModule.

I added this to the
server\default\conf\login-config.xml file :
<application-policy name = "ftp">
  <authentication>
    <login-module code =
"org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required" />
  </authentication>
</application-policy>

The users.properties and roles.properties files are
located in the same directory (server\default\conf)
and contain user/pass and user/roles properties as
usual.

In my code, I have something like this :
UsernamePasswordHandler uph = new
UsernamePasswordHandler(username, password);
LoginContext lc = new LoginContext("ftp", uph);


but when I do a lc.login() an exception is thrown :
javax.security.auth.login.FailedLoginException:
Password Incorrect/Password Requiered

both username and password are correctly filled.

I am using the head cvs co.

Did I miss something ?

thanks,
ionel

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com


-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to