This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
getDnBuilder()->get() returns wrong dn #784
Open
Description
- Laravel Version: 5.8.29
- Adldap2-Laravel Version: 6.0.7
- PHP Version: 7.3.9
- LDAP Type: OpenLDAP
Description:
Getting the dn of ldap entry using getDnBuilder()->get() returns wrong result. My hierarchy is as follows:
dc=gov,dc=ct,dc=tr
|
o=office
|
ou=department
|
uid=x,ou=department,o=office,dc=gov,dc=ct,dc=tr
dn obtained by the code "Auth::user()->ldap->getDnBuilder()->get()" returns "uid=x,ou=department,dc=gov,dc=ct,dc=tr,o=office", which is obviously wrong as o attribute is placed at the end. Getting the dn using "Auth::user()->ldap->dn[0]" works as expected and "uid=x,ou=department,o=office,dc=gov,dc=ct,dc=tr" is returned.