Hi,   Thank you for your response. I have added my Login module in 
Login.properties. The problem i am facing is, For JAAS Authorization, I have a 
policy file and i wanted to provide the path for this policy file so that 
security manager will find it.
Java.security.policy="file.policy";
Where as in command prompt we give as
-Djava.security.policy="file.policy"

My Login context is being initailized well, but it is not able to check the 
corresponding policies. 
....Where in ServiceMix, they have used Authorization Map for Authorization 
purpose.  My task is to Implement JAAS Authorization instead of Authorization 
map.

I tried keeping my policy file in folder policies/
But that way its not working.
Kindly tell me if u didn't understand my problem. 
Regards,sravny

Date: Tue, 14 Sep 2010 08:01:33 -0700
From: [email protected]
To: [email protected]
Subject: Re: Configuration of Authorizationt through JAAS



Hi,


By default, ServiceMix 3 load the login modules defined in 

etc/login.properties.


You can add your own login module in this file.


The default ServiceMix subject is servicemix-domain.


You can add yours :


YourSubject {

        your.login.module.LoginModule

                required

                option1=value1

                option2=value2;

};


NB: the jar containing your.login.module.LoginModule has to be in the 

ServiceMix lib directory.


servicemix-domain {

        org.apache.servicemix.jbi.security.login.PropertiesLoginModule

                sufficient

                ...;

}


You can add another login module for the servicemix-domain (for example 

a Kerberos or LDAP one).


Regards

JB


On 09/14/2010 04:37 PM, sravny wrote:

>

> Hi,

>       I am new to SeviceMix and as well as JAAS. I am using ServiceMix

> version 3.1. I am trying deploy JAAS Security module in ServiceMix. It will

> great if someone could hel me on How to Confiure the java.security.policy

> inorder to deploy the policy files. And also I am not knowing how to

> initialize the Security manager.

>

> For JAAS I was refering to the link

>

> http://jaasbook.wordpress.com/
>

> And for ServiceMix -(Authentication and Authorization) I was referring to

> the link

>

> http://www.theserverlabs.com/blog/2010/06/25/dynamic-ldap-based-authentication-and-authorization-in-servicemix-3/






View message @ 
http://servicemix.396122.n5.nabble.com/Configuration-of-Authorizationt-through-JAAS-tp2839212p2839261.html

To start a new topic under ServiceMix - User, email 
[email protected]

To unsubscribe from ServiceMix - User, click here.


                                          
-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/Configuration-of-Authorizationt-through-JAAS-tp2839212p2840330.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to