matomo-org / matomo-org/plugin-LoginLdap

Concatenate the user's login with the domain name to authenticate to userPrincipalName

Open
#216 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
37
Forks
30
Avg merge
22h 53m
Merged PRs (30d)
19

Description

Hi, is it possible to concatenate the user login with domain name for authenticate on userPrincipalName?
I want set LDAP search param:

` (&(userPrincipalName=$login@mydomain.com)(objectClass=person)) `

and when, for example, the user insert name.lastname the system concatenate to "name.lastname@mydomain.com". Is it possible? If I set it into form, receive the error: Unexpected error: ldap_search returned null.
Please tell me what's the name of variable that contain the user's login.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the LDAP search parameter and submitted user login are handled in the plugin. Reproduce the ldap_search returned null error with a login such as name.lastname and the requested userPrincipalName filter. Done means the configured domain is combined with the entered login for the LDAP search, with authentication still working for the intended users.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.