Skip to content

LDAP error (login) and problems (user sync) #17512

@peko-hki

Description

@peko-hki

Hi,
we are running snip-it on a sles 15 SP6. It is possible to connect to our LDAP (eDirectory) server.
The sync of the users IS working. However, not all attributes are used.
All users have the department stored in "ou". Using ldapsearch you can get it correctly. If we sync the users
now nobody is getting this attribute (some old entries have it). How can we debug the sync process and see what is wrong ?

Login for ldap users is not working. We tried to use debug and ldap:troubleshoot without any success.
We are using private certificates for ldaps which seems to make some trouble. So ldaps is never working, even when
we set "Use SSL certificate validation=NO" , but it does not work ...

Running
"php artisan ldap:troubleshoot"
"
....
I guess we're trying to do the ldap search here, but sometimes it takes too long?
Printing first 10 results:

Error

Cannot use object of type LDAP\Result as array

at app/Console/Commands/LdapTroubleshooter.php:460
456▕ $this->debugout("Base DN is: ".$settings->ldap_basedn." and filter is: ".parenthesized_filter($settings->ldap_filter));
457▕ $search_results = ldap_search($conn, $settings->ldap_basedn, parenthesized_filter($settings->ldap_filter));
458▕ $this->info("Printing first 10 results: ");
459▕ for($i=0;$i<10;$i++) {
➜ 460▕ $this->info($search_results[$i]);
461▕ }
462▕ } catch (\Exception $e) {
463▕ $this->error("WARNING: Exception caught during Authed bind to $username - ".$e->getMessage());
464▕ return false;

1 app/Console/Commands/LdapTroubleshooter.php:481
App\Console\Commands\LdapTroubleshooter::App\Console\Commands{closure}()

2 app/Console/Commands/LdapTroubleshooter.php:440
App\Console\Commands\LdapTroubleshooter::timed_boolean_execute()

"

OS: SLES 15SP6

php -v
PHP 8.2.29 (cli) (built: Jul 10 2025 12:00:00) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.29, Copyright (c) Zend Technologies
with Zend OPcache v8.2.29, Copyright (c), by Zend Technologies

Snip-IT 8.2.1

Metadata

Metadata

Assignees

Labels

❓ not sure if bugThis issue has not been confirmed as a bug yetldap

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions