[Security & JAAS/JBoss] - JAAS configuration for remote EJB client
by alexg79
I have an EJB client app and an EAR on the server, and the following snippet added to the server's login-config.xml:
| <application-policy name = "myapp">
| <authentication>
| <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
| flag = "required">
| <module-option name = "dsJndiName">java:/MyappDS</module-option>
| <module-option name = "principalsQuery">SELECT password FROM employee WHERE id=?</module-option>
| <module-option name = "rolesQuery">SELECT accessLevel, 'Roles' FROM employee WHERE id=?</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
This works, but I don't like having to modify the server's configuration just to deploy an application. How can I accomplish the same thing with EAR level configuration? All the FAQs and examples only seem to cater for web apps. I don't know what to do.
I'm using JBoss 4.2.1GA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065707#4065707
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065707
18Â years, 11Â months
[JBoss Portal] - Understanding permissions
by roth
Hi
In my (almost finished) quest to attach the portal to our active directory, I have come across a minor problem.
What I like to do is give the role 'sysadmins' which is coming from my ldap the same priviledges as the standard 'admin' role has, that is, get access to the admin portal and several administration portlets.
I edited jboss-portal.sar\conf\data\default-objects.xml and changed the security constraint for the admin portal to that below, for testing.
| <security-constraint>
| <policy-permission>
| <action-name>viewrecursive</action-name>
| <unchecked/>
| </policy-permission>
| </security-constraint>
|
This doesn't work, when I log in, I still get a 403 when trying to access the admin portal.
What am I missing?
Thanks,
Tobias
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065703#4065703
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065703
18Â years, 11Â months