Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Get kerberos authentication working again.
Browse files Browse the repository at this point in the history
This revision requires internal changes to the application's web.xml and jboss-web.xml which is not ideal.
  • Loading branch information
Carlos Munoz committed Feb 6, 2013
1 parent eac8434 commit 7561894
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Expand Up @@ -16,6 +16,7 @@
<module name="org.hibernate" />
<module name="org.hibernate.validator" />
<!-- <module name="org.jboss.as.jpa.hibernate" /> -->
<module name="org.jboss.security.negotiation" />
<module name="org.slf4j" />
<module name="org.zanata.settings" />
</dependencies>
Expand Down
6 changes: 5 additions & 1 deletion zanata-war/src/main/webapp-jboss/WEB-INF/jboss-web.xml
Expand Up @@ -16,7 +16,11 @@ in case changes are required for production deployment (eg cfengine).
</resource-ref>
-->

<!--<security-domain>zanata</security-domain>-->
<security-domain>java:/jaas/SPNEGO</security-domain>
<valve>
<class-name>org.jboss.security.negotiation.NegotiationAuthenticator</class-name>
</valve>


<!-- This is where the webapp context root (eg /zanata or /) can be overridden: -->
<!-- _context_root_ -->
Expand Down
6 changes: 4 additions & 2 deletions zanata-war/src/main/webapp-jboss/WEB-INF/web.xml
Expand Up @@ -6,7 +6,7 @@

<!-- sso security -->

<!-- Kerberos only (also configurable on JBOSS_HOME/server/<config>/deployers/jbossweb.deployer/web.xml)
<!-- Kerberos only (also configurable on JBOSS_HOME/server/<config>/deployers/jbossweb.deployer/web.xml)-->

<security-constraint>
<web-resource-collection>
Expand All @@ -20,8 +20,10 @@
<login-config>
<auth-method>SPNEGO</auth-method>
</login-config>
<security-role>
<role-name>*</role-name>
</security-role>

-->

<!-- RichFaces -->
<context-param>
Expand Down

0 comments on commit 7561894

Please sign in to comment.