Spring security LDAP with GSS negotiation
<p>I'm trying to use spring security 4 with ldap. it works fine for the LDAP who as the basic authentication system. If I try to connect to a system that uses GSS no longer works. I think it is normal and should be specified using GSS somewhere. But where?</p>

<p>Below is the xml file security</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;beans:bean 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-3.0.xsd
    http://www.springframework.org/schema/security
    http://www.springframework.org/schema/security/spring-security-4.1.xsd
    "&gt;

    &lt;!-- This is where we configure Spring-Security  --&gt;
    &lt;http auto-config="true" use-expressions="true"&gt;

        &lt;intercept-url pattern="/" access="permitAll" /&gt;
        &lt;intercept-url  pattern="/login" access="permitAll" /&gt;
        &lt;intercept-url  pattern="/logout" access="isAuthenticated()" /&gt;
        &lt;intercept-url  pattern="/user**" access="hasAuthority('1')" /&gt;


        &lt;access-denied-handler error-page="/403" /&gt;
        &lt;form-login
                login-page="/login"
                default-target-url="/planning"
                authentication-failure-url="/login?error"
                username-parameter="username"
                password-parameter="password"
                authentication-success-handler-ref="customLdapAuthenticationSuccessHandler"
        /&gt;
        &lt;logout logout-url="/logout" logout-success-url="/login?logout" /&gt;

    &lt;/http&gt;


    &lt;ldap-server   url="ldap://192.168.2.100/DC=ciro,DC=local,DC=it?one?(objectClass=*)" manager-dn="cn=Administrator,dc=web-gate,dc=local,dc=it"  manager-password="PLAIN PWD" /&gt;

    &lt;authentication-manager&gt;
        &lt;ldap-authentication-provider
                group-search-base="ou=groups"&gt;
        &lt;/ldap-authentication-provider&gt;
    &lt;/authentication-manager&gt;
&lt;/beans:bean&gt;
</code></pre>