blob: 0b4cc5b7ab5b9213ebcf00cfa19901d65684cd2d [file] [log] [blame]
This setup will enable you to authenticate a user via spnego into your
To run with spengo enabled the following command line options are required:
The easiest place to put these lines are in the start.ini file.
For debugging the spengo authentication the following options are helpful:
Spengo Authentication is enabled in the webapp with the following setup.
<web-resource-name>Secure Area</web-resource-name>
<role-name>MORTBAY.ORG</role-name> <-- this is the domain that the user is a member of
<realm-name>Test Realm</realm-name>
(optionally to add custom error page)
A corresponding UserRealm needs to be created either programmatically if
embedded, via the jetty.xml or in a context file for the webapp.
(in the jetty.xml)
<Call name="addBean">
<New class="">
<Set name="name">Test Realm</Set>
<Set name="config"><Property name="jetty.home" default="."/>/etc/</Set>
(context file)
<Get name="securityHandler">
<Set name="loginService">
<New class="">
<Set name="name">Test Realm</Set>
<Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/</Set>
<Set name="checkWelcomeFiles">true</Set>