Re: JAAS authentication and global realms

2005-04-04 Thread Guillaume Lederrey
  Once more, could you send those mails to the tomcat mailing-list and not 
directly to me ? It helps me to sort my mails and it can profit to more 
people ...

On Friday 01 April 2005 18.26, you wrote:
 My problem is I am not
 able to understand how to assign roles to a particular user. For example
 ..After the user is authenticated in the commit() I try to add principal to
 the subject with the set for roles as..
 subject.getPrincipals().add((principal));

  That should be correct.

 Though the role shows up under principals for the subject, he fails to be
 authenticated. Can you please help me. it's a bit urgent. Hope the problem
 was clear enough) Ops I am trying to use JAAS in Borland Enterprise Server.

  How do you check that the roles shows up in the principal ? Do you have an 
authentication or an authorization problem ? What implementation of Principal 
are you using ? Could you send the relevant java code ?

  Sorry that I'm not able to help you more right now ...


 Guillaume

-- 
Guillaume Lederrey
Rte des Arsenaux 15
1700 Fribourg

+41 76 / 573 32 40

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JAAS authentication and global realms

2005-03-10 Thread Guillaume Lederrey
  Hello !

  I'm trying to use a host wide JAAS Realm. I've written the LoginModule and 
tested it by declaring the Realm in the Context/ of one of my app. This app 
is not declared in server.xml, but in its own context.xml in /webapps. 
Everything is working just fine. My LoginModule logs using just 
System.out.println(), so I fiind its logs in logs/catalina.out.

  When I move the Realm decleration from the context.xml to server.xml (either 
in the host/ node or the Engine/ node) it stops working ... I dont see 
any logs of any kind ...

  What am I doing wrong ? The doc made me think I could just move this Realm 
around to change its visibility, but there would not need to do anything 
more ...

  Thanks for the help.

 Guillaume

-- 


Guillaume Lederrey
Informaticien Développement
Tecost - Technology Consulting Studies
Fribourg (Switzerland)
http://www.tecost.ch/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]