OSBI / saiku

Saiku Analytics - The Worlds Greatest Open Source OLAP Browser
http://community.meteorite.bi
Apache License 2.0
1.31k stars 663 forks source link

Authentication problem with LDAP #657

Open lftakakura opened 6 years ago

lftakakura commented 6 years ago

Is this a bug report?

No

Environment

  1. java -version: openjdk version "1.8.0_171"

Then, specify:

  1. Operating system: ubuntu 16.04
  2. Saiku plugin to Pentaho or Saiku Standalone: Saiku standalone
  3. Saiku CE or Saiku EE: Saiku CE
  4. Saiku version: Saiku Suite 3.15

Steps to Reproduce

  1. Start saiku via start script (start-saiku.sh)
  2. Update the file applicationContext-spring-security.xml to import the resource applicationContext-spring-security-ldap.xml
  3. Configure applicationContext-security-ldap.properties to connect to a public LDAP server that I'm using to test.

The .properties file should look like this:

contextSource.providerUrl=ldap\://ldap.forumsys.com\:389
contextSource.userDn=cn\=read-only-admin,dc\=example,dc\=com
contextSource.password=password

userSearch.searchBase=ou\=mathematicians,dc\=example,dc\=com
userSearch.searchFilter=(uid\={0})

populator.convertToUpperCase=false
populator.groupRoleAttribute=ou\=Groups,dc\=example,dc\=com
populator.groupSearchBase=ou\=mathematicians
populator.groupSearchFilter=(member\={0})
populator.rolePrefix=
populator.searchSubtree=true

allAuthoritiesSearch.roleAttribute=cn
allAuthoritiesSearch.searchBase=ou\=Groups,dc\=example,dc\=com
allAuthoritiesSearch.searchFilter=(objectClass\=group)

allUsernamesSearch.usernameAttribute=cn
allUsernamesSearch.searchBase=ou\=Users,dc\=example,dc\=com
allUsernamesSearch.searchFilter=objectClass\=Person
  1. Try to login on saiku web with username: read-only-admin and password: password

Expected Behavior

Successfull login

Actual Behavior

Bad credentials exception

I tried with different password encoders and had no luck at all.

Thanks in advance!