Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: LDAP Auth not working

  1. #1
    Join Date
    May 2008

    Default LDAP Auth not working

    Hello Everybody,

    I'm new in Pentaho, our company wants to use it to generate reports for our business processes which run under jBPM.
    I have installed a version of Pentaho for testing and I now know how to generate reports, but as I don't need memory authentication, I want to bind Pentaho to our LDAP directory, I did some changes but when I try to log in it says: "Bad Credentials" or something like that. Next on, what changes I did, are those changes enough, what did I missed to do?

    WEB.XML file

    I just changed this:
    <param-value>/WEB-INF/applicationContext-acegi-security.xml /WEB-INF/applicationContext-common-authorization.xml /WEB-INF/applicationContext-acegi-security-memory.xml /WEB-INF/applicationContext-pentaho-security-memory.xml</param-value>

    from memory to ldap, just two words:
    <param-value>/WEB-INF/applicationContext-acegi-security.xml /WEB-INF/applicationContext-common-authorization.xml /WEB-INF/applicationContext-acegi-security-ldap.xml /WEB-INF/applicationContext-pentaho-security-ldap.xml</param-value>

    FILE: ./tomcat/webapps/pentaho/WEB-INF/applicationContext-pentaho-security-ldap.xml

    changed body <bean id="allUsernamesSearch" to point to my ldap users base dn:

    <bean class="">
    <constructor-arg index="0"
    value="ou=People, o=usuarios," />
    <constructor-arg index="1" value="objectClass=Person" />

    in that leaf of ldap tree we have our users, so I guessed that is entry I had to put there (index 0), I find them there as uid= login I want them to use to log into Pentaho.


    <bean id="initialDirContextFactory"
    <constructor-arg index="0"
    value="ldap://" />
    <property name="managerDn" value="uid=admin,ou=system" />
    <property name="managerPassword" value="secret" />

    There Just changed index 0 value to my ldap server URL and port to: ldap://

    Are there any other changes mandatory to do? What did I miss? What did I do wrong?

    Thans In Advanced,

  2. #2


    You may need to change the roles that have access to the different objects in Pentaho to match what is returned from your LDAP service.

    What does your server log say?

    I would look at the file:

    The section of xml you may need to modify is:

    <property name="objectDefinitionSource">
    BizCubed Pty Ltd
    Australian Pentaho Partner

  3. #3
    Join Date
    Oct 2006


    If the error is "Bad credentials," then the authentication is failing and no authorization checks have yet to occur. While zach is correct that the roles granted to the users in your LDAP server will need to agree with roles used in authorization rules within Pentaho, I don't believe you're even getting to the authorization rules yet.

    I would focus on getting the userSearch bean in applicationContext-acegi-security-ldap.xml correct. Do this by executing your queries in a tool such as Apache Directory Studio first. Once you're satisfied, copy them over and run Pentaho. Turn on security logging too.

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.