Check out the forum at Jboss and checkout the alfresco wiki/forum for setting up jaas-authentication. Authenticate Jboss with jaas and configure alfresco to authentica with jaas should give you what you need. Read about it but didn't (yet) see it as i'm just starting trying to integrate alfresco into jboss-portal on jboss-4.0.5-GA.