Skip to content

Instantly share code, notes, and snippets.

@francescm
Created June 24, 2013 08:09
Show Gist options
  • Save francescm/5848471 to your computer and use it in GitHub Desktop.
Save francescm/5848471 to your computer and use it in GitHub Desktop.
highlights diffs from distribution's jetty.xml
<bean id="defaultIdentityService" class="org.eclipse.jetty.security.DefaultIdentityService" />
<bean id="securityLDAPLoginService" class="org.eclipse.jetty.plus.jaas.JAASLoginService">
<property name="name" value="ActiveMQLdapRealm" />
<property name="LoginModuleName" value="jetty-ldap" />
<property name="identityService" ref="defaultIdentityService" />
<property name="roleClassNames" value="org.ldaptive.jaas.LdapRole" />
</bean>
<bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint">
<property name="name" value="BASIC" />
<property name="roles" value="admins" />
<property name="authenticate" value="true" />
</bean>
[...]
<bean id="securityHandler" class="org.eclipse.jetty.security.ConstraintSecurityHandler">
<property name="realmName" value="ActiveMQLdapRealm" />
<property name="loginService" ref="securityLDAPLoginService" />
<property name="authenticator">
<bean class="org.eclipse.jetty.security.authentication.BasicAuthenticator" />
</property>
[...]
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment