Note that there are some explanatory texts on larger screens.

plurals
  1. PO"The matching wildcard is strict, but no declaration can be found for element 'http'" Error
    primarykey
    data
    text
    <p>I am trying to configure NTLM authentication, but receive error: </p> <blockquote> <p>cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http'.</p> </blockquote> <p>I read a lot of topics with a similar error, but I could not find a solution to my problem.</p> <p>My security.xml file that causes an error is:</p> <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd" &gt; &lt;http access-denied-page="forms/error403.jsp" entry-point-ref="ntlmEntryPoint" servlet-api-provision="false"&gt; &lt;intercept-url pattern="forms/error403.jsp" filters="none"/&gt; &lt;intercept-url pattern="forms/**" access="ROLE_GUEST,ROLE_OPERATOR,ROLE_ADMIN" /&gt; &lt;custom-filter position="PRE_AUTH_FILTER"/&gt; &lt;/http&gt; &lt;authentication-manager alias="mainAuthenticationManager"/&gt; &lt;authentication-provider user-service-ref='userDetailsService' /&gt; &lt;beans:bean id="userDetailsService" class="service.UserInfoService"&gt; &lt;beans:property name="dataSource" ref="dataSource" /&gt; &lt;beans:property name="usersByUsernameQuery" value="select distinct name, ' ' as password, 1 as enabled from TMP_SPRING_USERS where name=?" /&gt; &lt;beans:property name="authoritiesByUsernameQuery" value="select name, role from TMP_SPRING_USERS where name=?" /&gt; &lt;/beans:bean&gt; &lt;beans:bean id="ntlmEntryPoint" class="org.springframework.security.ui.ntlm.NtlmProcessingFilterEntryPoint"&gt; &lt;beans:property name="authenticationFailureUrl" value="forms/error403.html" /&gt; &lt;/beans:bean&gt; &lt;beans:bean id="exceptionTranslationFilter" class="org.springframework.security.ui.ExceptionTranslationFilter"&gt; &lt;beans:property name="authenticationEntryPoint" ref="ntlmEntryPoint" /&gt; &lt;/beans:bean&gt; &lt;beans:bean id="ntlmFilter" class="org.springframework.security.ui.ntlm.NtlmProcessingFilter"&gt; &lt;custom-filter position="NTLM_FILTER" /&gt; &lt;beans:property name="authenticationManager" ref="mainAuthenticationManager" /&gt; &lt;beans:property name="retryOnAuthFailure" value="true" /&gt; &lt;beans:property name="stripDomain" value="true"/&gt; &lt;beans:property name="domainController" value="company.com" /&gt; &lt;beans:property name="jcifsProperties"&gt; &lt;beans:props&gt; &lt;beans:prop key="jcifs.smb.lmCompatibility"&gt;0&lt;/beans:prop&gt; &lt;beans:prop key="jcifs.smb.client.useExtendedSecurity"&gt;false&lt;/beans:prop&gt; &lt;beans:prop key="jcifs.smb.client.domain"&gt;COMPANY&lt;/beans:prop&gt; &lt;beans:prop key="jcifs.smb.client.username"&gt;somenycuser&lt;/beans:prop&gt; &lt;beans:prop key="jcifs.smb.client.password"&gt;AReallyLoooongRandomPassword&lt;/beans:prop&gt; &lt;/beans:props&gt; &lt;/beans:property&gt; &lt;/beans:bean&gt; &lt;/beans:beans&gt; </code></pre> <p>Because as of version 3.X Spring Security doesn't include the NTLM extension anymore, I use it from <a href="http://aloiscochard.blogspot.com/2010/03/spring-security-ntlm-3.html" rel="noreferrer">http://aloiscochard.blogspot.com/2010/03/spring-security-ntlm-3.html</a> article.</p> <p>Please help me.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload