Announcement Announcement Module
Collapse
No announcement yet.
[LdapTemplate] The returnObjFlag of supplied SearchControls is not set Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [LdapTemplate] The returnObjFlag of supplied SearchControls is not set

    My LDAP security configuration is working okay. LDAP is authenticating the user correctly but I'm seeing the following error.

    [SpringSecurityLdapTemplate] Ignoring PartialResultException
    INFO [LdapTemplate] The returnObjFlag of supplied SearchControls is not set but a ContextMapper is used - setting flag to true


    Is the error something I need to worry about? Or is there a setting I can set in my configuration to ingnore the INFO message?

    Below is my security configuration.

    <?xml version="1.0" encoding="UTF-8"?>
    <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/schem...-beans-3.0.xsd
    http://www.springframework.org/schema/security
    http://www.springframework.org/schema/security/spring-security-3.0.xsd">


    <http auto-config="true"/>


    <!-- Define LDAP Server -->
    <ldap-server
    id="ldapServer"
    url="ldap://xx.xx.xx:389/"
    manager-dn="cn=xx,ou=xx,dc=xx,dc=xx,dc=xx"
    manager-password="password"/>

    <authentication-manager>
    <ldap-authentication-provider server-ref="ldapServer" user-context-mapper-ref="contextMapper"
    user-search-base="dc=xx,dc=xx,dc=xx"
    user-search-filter="(sAMAccountName={0})"
    group-search-base="OU=xx,DC=xx,DC=xx,DC=xx"
    role-prefix="none" />
    </authentication-manager>

    <beans:bean id="contextMapper" class="com.xx.xx.security.ContextMapper">
    <beans: property name="contextMapper" ref ="contextMapper"/>
    </beans:bean>

    </beans:beans>

  • #2
    There is a solutions for this?
    Thank you.

    Comment

    Working...
    X