Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

OpenLDAP schema error #783

Open
ludeus opened this issue Apr 21, 2021 · 0 comments
Open

OpenLDAP schema error #783

ludeus opened this issue Apr 21, 2021 · 0 comments

Comments

@ludeus
Copy link

ludeus commented Apr 21, 2021

  • Adldap2 Version: 10.3.2
  • LDAP Type: OpenLDAP
  • PHP Version: 7.4

Description:

OpenLDAP schema cause an error.

On the OpenLDAP schema class:

    public function objectClassOu()
    {
        return 'organizationalUnit';
    }

On the ActiveDirectory schema class:

    public function objectClassOu()
    {
        return 'organizationalunit';
    }

the Adldap\Query\Processor::newLdapEntry() trigger an error because $model = $models[current($map)]; search for organizationalunit key in $models, but this key does not exists (organizationalUnit with UPPER case exists).

Steps To Reproduce:

$search = $provider->search();
$paginator = $search->paginate(100);

Possibles corrections

  • change return 'organizationalUnit'; to return 'organizationalunit'; (like active directory)
  • remap $models key (strtolower) in Adldap\Query\Processor::newLdapEntry()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant