[JBoss Eclipse IDE (users)] - Re: Use Eclipse Web-Tools with JBoss 4.x
by rob.strykerï¼ jboss.com
In theory. an incremental republish is only supposed to copy over the files tht have changed since the last time you published. In reality, this doesn't work in webtools because it still needs to repackage your entire jar anyway.
Marshall and I are in the process of completing a demo and some code for real incremental publishing into an exploded war / ear folder in your jboss deploy directory, so that a repackage / redeploy is not necessary for simple jsp / html changes etc.
littlejoz: The only ideas I have right now are to check the event log in the jboss server's view which would hopefully contain info about why the republish failed. The CVS version, I'm sure, has a working implementation of the republish, but I'm sure that's no real comfort to you.
I'd write more, but I need to catch a plane this morning, so I really should start getting ready.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026589#4026589
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026589
19Â years, 1Â month
[JBoss Portal] - Re: LDAP authentication and Role-based permissions question
by bdaw
I just tried your configuration and it seemed to work. Didn't put things into database. Just test if users are authenticated correctly and are able to enter portal.
I used this
ldif file and changed:
1) login-config.xml:
| <login-module code="org.jboss.security.auth.spi.LdapLoginModule" flag="required">
| <module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
| <module-option name="java.naming.provider.url">ldap://localhost:10389/</module-option>
| <module-option name="java.naming.security.authentication">simple</module-option>
| <module-option name="principalDNPrefix">uid=</module-option>
| <module-option name="principalDNSuffix">,ou=People,o=test,dc=portal,dc=example,dc=com</module-option>
| <module-option name="rolesCtxDN">ou=Roles,o=test,dc=portal,dc=example,dc=com</module-option>
| <module-option name="uidAttributeID">member</module-option>
| <module-option name="matchOnUserDN">true</module-option>
| <module-option name="roleAttributeID">cn</module-option>
| <module-option name="roleAttributeIsDN">false</module-option>
| <module-option name="searchTimeLimit">5000</module-option>
| <module-option name="searchScope">ONELEVEL_SCOPE</module-option>
| </login-module>
|
and IdentityLoginModule commented out.
2) jboss-4.0.5.GA\server\default\deploy\jboss-portal.sar\portal-server.war\WEB-INF\web.xml :
| <security-role>
| <!--<role-name>Authenticated</role-name>-->
| <role-name>User</role-name>
| </security-role>
|
| and
|
| <security-constraint>
| <web-resource-collection>
| <web-resource-name>Authenticated</web-resource-name>
| <description></description>
| <url-pattern>/auth/*</url-pattern>
| </web-resource-collection>
| <auth-constraint>
| <!--<role-name>Authenticated</role-name>-->
| <role-name>User</role-name>
| </auth-constraint>
| </security-constraint>
|
I'm able to login as admin/admin or as jduke/theduke. Tested with 2.4 and 2.6 trunk
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026587#4026587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026587
19Â years, 1Â month
[JBoss Portal] - Using alternative source for JBoss Portal authentication
by engela
I quite like to use the JBoss Portal, but have to use an LDAP Server for authentication and retrieving the roles of a user. I have read through the Wiki Entry:
http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingAnLDAPSourceForPortalAuthen...
Some of the portlets need a fine-grained access a rights and I am considering using Acegi security for this. Since I am quite new to all of this I thought I start simple. Instead of adding a new login-module using the org.jboss.security.auth.spi.LdapExtLoginModule as described in above Wiki I added a new login-module using org.jboss.security.auth.spi.UsersRolesLoginModule and set the flag of org.jboss.portal.identity.auth.IdentityLoginModule to ?sufficient?. So my new login.config.xml in JBOSS_HOME/server/default/deploy/jboss-portla.sar/conf/ looks like:
<!-- For the JCR CMS -->
<application-policy name="cms">
<login-module code="org.apache.jackrabbit.core.security.SimpleLoginModule" flag="required"/>
</application-policy>
<application-policy name="portal">
<login-module code="org.jboss.portal.identity.auth.IdentityLoginModule" flag="sufficient">
<module-option name="unauthenticatedIdentity">guest</module-option>
<module-option name="userModuleJNDIName">java:/portal/UserModule</module-option>
<module-option name="roleModuleJNDIName">java:/portal/RoleModule</module-option>
<module-option name="additionalRole">Authenticated</module-option>
<module-option name="password-stacking">useFirstPass</module-option>
</login-module>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required">
<module-option name="usersProperties">props/portal-users.properties</module-option>
<module-option name="rolesProperties">props/portal-roles.properties</module-option>
</login-module>
</application-policy>
I added the portal-users.properties and portal-roles.properties to the correct location.
portal-roles.properties:
# A sample users.properties file for use with the UsersRolesLoginModule
first=first
second=second
portal-roles.properties
first=Administrators,Admin
second=Users,User
When logging in as first or second user I get the error message: HTTP Status 403 - Access to the requested resource has been denied
Questions:
- Is it possible use integrate an alternative LoginModule e.g. UsersRolesLoginModule or org.jboss.security.auth.spi.LdapExtLoginModule to define Authenication and the roles of the users?
- Has anyone successfully integrated an external LDAP Directory server which also supplies the roles of the user?
- Has anyone successfully integrated AcegiSecurity for authentication and retrieving the roles of a user e.g. by using the LoginModule: org.acegisecurity.adapters.jboss.JbossAcegiLoginModule? How do I configure the login-module.xml?
I have just read through a similar Forum Entry:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103606
Do I have to sychronize all users in my LDAP directory with the portal database in order to define the role of users? I don?t think it is a practical option for us to maintain two systems in which we hold user information.
Thanks,
Anette
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026583#4026583
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026583
19Â years, 1Â month
[EJB/JBoss] - Transaction Issue in JBOSS
by udith
Hi,
I am using EJB,Hibernate and postgresql for my project and the server is JBoss. i have handled Transactions at EJB level as shown below. but there is a issue when multiple treads are running
Below is what happens in the EJB methods
(1) Method abc(){ //ejb transaction type is ?RequiresNew?
(2) Method ccc (){} // ejb transaction type is ?Required?
}
(2) Method ccc (){
Save to table 1 //using hibernate
Save to table 2 //using hibernate
Save to table 3 //using hibernate
}
But the first table doesn?t update properly. Other two tables are updated properly.
Ex: - if the Method abc() is called from a loop which is 100. the tables are updated as below.
table 1 ? 85
table 2 ? 100
table 3 - 100
like to know how to overcome this problem as soon as possible,
............
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026580#4026580
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026580
19Â years, 1Â month