Closed lhost closed 11 months ago
In case of connection problem command php artisan ldap:test should return error:
php artisan ldap:test
$ php artisan ldap:test ; echo $? Testing LDAP connection [default]... +------------+------------+----------------------------+-----------------------------------------------------------+---------------+ | Connection | Successful | Username | Message | Response Time | +------------+------------+----------------------------+-----------------------------------------------------------+---------------+ | default | ✘ No | cn=admin,dc=example,dc=com | No such object. Error Code: [32] Diagnostic Message: null | 772.8ms | +------------+------------+----------------------------+-----------------------------------------------------------+---------------+ 1 $ php artisan ldap:test ; echo $? Testing LDAP connection [default]... +------------+------------+----------------------------+-------------------------+---------------+ | Connection | Successful | Username | Message | Response Time | +------------+------------+----------------------------+-------------------------+---------------+ | default | ✔ Yes | cn=admin,dc=example,dc=com | Successfully connected. | 1001.81ms | +------------+------------+----------------------------+-------------------------+---------------+ 0
Thanks for the PR @lhost! I've pushed a fix for this in master (https://github.com/DirectoryTree/LdapRecord-Laravel/commit/7bd279f7af9821d4747310dc0440affd2f62b540).
In case of connection problem command
php artisan ldap:test
should return error: