Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: subtree search in com.pentaho.security.ldap.search.LdapSearchParamsF actoryImpl

  1. #1
    Join Date
    Jan 2006
    Posts
    313

    Default subtree search in com.pentaho.security.ldap.search.LdapSearchParamsF actoryImpl

    How can i specify in applicationContext-pentaho-security-ldap.xml that i want to search the Subtree of my AD structure.
    In applicationContext-acegi-security-ldap.xml i can specify
    Code:
    
    <property name="searchSubtree" value="true"/>
    
    in the bean, but this does not seem to work in applicationContext-pentaho-security-ldap.xml

    I tried
    Code:
    
    <bean id="allUsernamesSearch"
    class="com.pentaho.security.ldap.search.GenericLdapSearch">
    <constructor-arg index="0" ref="initialDirContextFactory"/>
    <constructor-arg index="1">
    <bean
    class="com.pentaho.security.ldap.search.LdapSearchParamsFactoryImpl">
    <constructor-arg index="0" value="ou=Belgium"/>
    <constructor-arg index="1" value="objectClass=person"/>
    <property name="searchSubtree" value="true"/>
    </bean>
    </constructor-arg>
    <constructor-arg index="2">
    <bean
    class="com.pentaho.security.ldap.transform.SearchResultToAttrValueList">
    <constructor-arg index="0" value="cn"/>
    </bean>
    </constructor-arg>
    </bean>
    
    but got the following as error
    Code:
     
    org.springframework.beans.NotWritablePropertyException: Invalid property 'searchSubtree' of bean class [com.pentaho.security.ldap.search.LdapSearchParamsFactoryImpl]: Bean property 'searchSubtree' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
    How can i specify to search the whole subtree?

  2. #2
    Join Date
    Oct 2006
    Posts
    817

    Default

    Check out the very bottom of the Security Data Access Objects page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.