-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP sync error #13372
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
+1 |
Hi, we have the same sync issue, the problem is that if the code breaks if a location is null. |
Above fix is not working properly. Will look into it. Edit: The posted fix by user @uberbrady is correct and proper. We can close this if commit goes trough. #13397 |
Same issue- Snipe-IT version Is there a timeline for a fix for this issue? I attempted to revert to an older container (version 5.4.1.6746) using same database, but it breaks LDAP integration (tests fail). Is there a container version that works? Is there some ldap-related db issue when reverting to an older container with the db used for a newer version? |
What version of snipeIT will this fix be incorporated into? |
Debug mode
Describe the bug
The LDAP synchronization encountered an error while executing the command "php artisan snipeit:ldap-sync".
Error message:
"production.ERROR: Attempt to read property 'id' on null {"userId":77,"exception":"[object] (ErrorException(code: 0): Attempt to read property 'id' on null at /data/snipe-it_p/app/Console/Commands/LdapSync.php:246)"
This error is consistent with the 500 error encountered when performing the LDAP synchronization without selecting a location on the web interface.
Reproduction steps
Execute the command: "php artisan snipeit:ldap-sync".
or
Click on LDAP sync on web, but don't select a location.
Expected behavior
Ldap sync success.
Screenshots
Snipe-IT Version
v6.1.2 build 10938 (g32747cafd)
Operating System
CentOS 7
Web Server
Nginx
PHP Version
8.0.29
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: