That is correct as far as shown. Turn on trace level logging for
the org.jboss.security package in the conf/log4j.xml config to
better see what is going on.

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

Ionel GARDAIS wrote:

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




------------------------------------------------------- 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