Manual LDAP Configuration
You must have a working LDAP server with an established configuration before continuing. Follow the instructions below to manually switch from Pentaho default security to LDAP security.
- Stop the Pentaho Server.
- Edit the
securities.properties
file located in the server/pentaho-server/pentaho-solutions/system folder and changeprovider=jackrabbit
toprovider=ldap
. Save and close the file. - Edit the server/pentaho-server/pentaho-solutions/system/applicationContext-security-ldap.properties file and modify the settings to match your LDAP configuration:
userSearch.searchBase=OU\=YourDomainCustomerCareUsers,DC\=YourDomainCustomerCare,DC\=com allAuthoritiesSearch.roleAttribute=cn allAuthoritiesSearch.searchBase=OU\=YourDomainCustomerCareGroups,DC\=YourDomainCustomerCare,DC\=com userSearch.searchFilter=(sAMAccountName\={0}) allUsernamesSearch.searchFilter=objectClass\=Person allAuthoritiesSearch.searchFilter= (objectClass\=group) providerType=ldapCustomConfiguration contextSource.userDn=youradminUser@YourDomaincustomercare.com populator.rolePrefix= allUsernamesSearch.searchBase=OU\=YourDomainCustomerCareUsers,DC\=YourDomainCustomerCare,DC\=com adminUser=CN\=YourAdminUserDN,OU\=OrlandoFL,OU\=NAMER,OU\=Support,OU\=YourDomainCustomerCareUsers,DC\=YourDomainCustomerCare,DC\=com adminRole=CN\=YourAdminRole,OU\=YourDomainCustomerCareGroups,DC\=YourDomainCustomerCare,DC\=com populator.groupSearchBase=OU\=YourDomainCustomerCareGroups,DC\=YourDomainCustomerCare,DC\=com populator.convertToUpperCase=false populator.searchSubtree=false allUsernamesSearch.usernameAttribute=sAMAccountName populator.groupRoleAttribute=cn contextSource.providerUrl=ldap\://10.100.7.17\:389 contextSource.password=******** populator.groupSearchFilter=(member\={0})
- Save and close the file.
- Edit the
server/pentaho-server/pentaho-solutions/system/repository.spring.properties
file and replace “admin” in the following line,singleTenanatAdminUserName=admin
with the value of the adminUser’ssAMAccountName
as defined in theapplicationContext-security-ldap.properties
file. When complete, save and close the file. - Delete the following directory:
server/pentaho-server/pentaho-solutions/system/jackrabbit/repository
Do not delete the repository.xml
file, which is also located in the following directory: server
/pentaho-server/pentaho-solutions/system/jackrabbit
- Delete the
server/pentaho-server/
pentaho-solutions/system/karaf/caches
folder.
- Restart the Pentaho Server and test the LDAP functionality.
The Pentaho Server is now configured to authenticate users against your directory server. The LDAP Properties reference article contains supplemental information for LDAP values.