title: Error in Spring Security Kerberos example: Failed to find user
body: <p>My aim is to implement a Kerberos/LDAP service to connect to an AD server via Spring Security. I am toying with <a href="https://docs.spring.io/spring-security-kerberos/docs/current/reference/html/index.html" rel="nofollow noreferrer">this example</a>. The keytab and the SPN are both configured, however I keep getting &quot;Failed to find user error&quot;, even though that specific user exists in the AD server. I have tried this with both the function user and with a normal user. No luck, even though the paths of the users have been verified. I gave a shot to SPNEGO as well and that yields the same error. I am not that sharp in my aforementioned authentication skills, so have to ask what might be the root cause?</p>
  <p>Also have a follow-up question regarding this: When using Apache Directory Studio, I can easily connect to the aforementioned AD server with LDAP connection -&gt; port:389 -&gt; GSSAPI (Kerberos) -&gt; typing user DN and password -&gt; Obtain TGT from KDC. This setup works seamlessly without having to configure keytab or SPN. Is there a way to achieve a basic Kerberos/LDAP connection like that?</p>