Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-integrator fusiondirectory-integrator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-integratorfusiondirectory-integrator
  • Issues
  • #37
Closed
Open
Issue created Oct 14, 2024 by dockx thibault@tdockxDeveloper

[PluginManager] - When the yaml file contains a value of empty array - the registration of the plugin fails.

[autofs5, debconf, freeradius, fusioninventory, netgroups, opsi, posix, postfix, quota, repository, samba, spamassassin, supann-ext]

Above plugins have empty arrays set in the urlPath. (screenshotURL)

A fix would be to analyze the empty array set as a value within the yaml. Depending on if the array is empty, to simply unset the key.

Note : Decision is to update the library ldap (Link.php) and to parse the attrs delivered to "ldap->add" to remove all the empty arrays.

Line : 227 of link.php

  public function add (string $dn, array $attrs, array $controls = []): Result
  {
    // HERE $attrs should be parsed and remove all empty arrays
    $result = ldap_add_ext($this->cid, $dn, $attrs, $controls);
    if ($result === FALSE) {
      throw new Exception('Add failed: '.ldap_error($this->cid), ldap_errno($this->cid));
    }

    return new Result($this->cid, $result);
  }
Edited Oct 14, 2024 by dockx thibault
Assignee
Assign to
Time tracking