I noticed this as well, and found that the location of the
users.properties and roles.properties files needed to be in the
classpath of the deployed application, not in server\default\conf as
was previously the case. If I put then in WEB-INF\classes it worked
for my web application. This behaviour seemed to change between 3.2.1
and 3.2.2.
Hope this helps.
-Neal
On November 16, 2003 07:48 am, 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
>
> ___________________________________________________________
> 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
-------------------------------------------------------
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