Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP plugin finds user but login is denied #265

Open
erelling opened this issue Jan 17, 2022 · 3 comments
Open

LDAP plugin finds user but login is denied #265

erelling opened this issue Jan 17, 2022 · 3 comments

Comments

@erelling
Copy link

erelling commented Jan 17, 2022

I have configured the plugin for LDAP-only authentication to Active Directory.

The two test buttons return the expected number of users in the directory and the two test users in the intended AD-group respectively.

However, neither of the two users can log in and are greeted with incorrect username and password.

I can find no instruction beyond the steps already taken and no log entries which seem relevant.

Plugin version is v4.3.1 running on matomo 4.6.2

What am I missing?

@gbarredev
Copy link

Hello,

Same problem for me

Everything appears to be working, 40 users identified by the plugin in the LDAP group, but cannot log in: incorrect username and password.

Plugin version : 4.4.0
Matomo version : 4.6.2

@sgiehl
Copy link
Member

sgiehl commented Jan 31, 2022

@AltamashShaikh are you maybe able to help on this one?

@AltamashShaikh
Copy link
Contributor

AltamashShaikh commented Feb 1, 2022

Hey @erelling and @gbarredev

I tried replicating the issue by creating 1 test user and synchronising that user to my Matomo instance and was unable to reproduce it. I was able to login with that user without any difficulty.

I assume you can see those users under your Matomo Admin Interface

You can verify by checking for those user's under Matomo Administration -> Settings -> Users

Also if possible you can test by adding 1 test user by running this commands maybe.

  1. Generate a password by running below command
    slappasswd

  2. Create testuser.ldif

dn: uid=mytestuser,ou=people,dc={YOUR_VALUE},dc={YOUR_VALUE}
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
cn: My Test User
uid: mytestuser
givenName: My Test User
sn: mytestuser
userPassword: {PASWWORD_GENERATED_FROM_STEP1}
  1. Add the user
    sudo ldapadd -Y EXTERNAL -H ldapi:/// -f testuser.ldif

  2. Load the user from LDAP in your Matomo instance
    Screenshot from 2022-02-01 09-54-05

  3. Try logging with the mytestuser and password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants