RE: How to set user principal in setUp()

Nicole Luneburg <[email protected]> Fri, 9 Jan 2009 08:02:41 +1030
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
Oh also, how are you running the test?

-----Original Message-----
From: Nicole Luneburg [mailto:[email protected]]
Sent: Friday, 9 January 2009 7:49 AM
To: Cactus Users List
Subject: RE: How to set user principal in setUp()

Hi Petar,

Thanks for looking at this.
I did have a play around with users.properties and roles.properties, but ne=
ver got that working.
Yes seeing ur configurations for that would be excellent.

Thanks!
Nicole

-----Original Message-----
From: Petar Tahchiev [mailto:[email protected]]
Sent: Thursday, 8 January 2009 9:56 PM
To: Cactus Users List
Subject: Re: How to set user principal in setUp()

Hi Nicole,

I got your example working on my machine.

This line will return always false:
if(this.context.getCallerPrincipal().getName() =3D=3D "admin1") {

Try to change to use .equals() method.

Also, did you create users.proeprties and roles.properties for
your JBoss installation?

If this does not help I will send you my configurations to take a look.

Cheers, Petar.


The contents of this email are confidential and may be subject to legal or =
professional privilege and copyright. No representation is made that this e=
mail is free of viruses or other defects. If you have received this communi=
cation in error, you may not copy or distribute any part of it or otherwise=
 disclose its contents to anyone. Please advise the sender of your incorrec=
t receipt of this correspondence.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


The contents of this email are confidential and may be subject to legal or =
professional privilege and copyright. No representation is made that this e=
mail is free of viruses or other defects. If you have received this communi=
cation in error, you may not copy or distribute any part of it or otherwise=
 disclose its contents to anyone. Please advise the sender of your incorrec=
t receipt of this correspondence.