snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.09k stars 3.18k forks source link

Ldap 500 Server Error. Please check your server logs for more information. #9708

Open tobias-mierzwa opened 3 years ago

tobias-mierzwa commented 3 years ago

Please confirm you have done the following before posting your bug report:

Describe the bug The issue is, snipeit handle the ldap requests wrong. We got two locations and in each location have organisations. So for example the root Basis Bind DN looks like this ou=people,ou=orga1,ou=location1,dc=root-dn,dc=de.With this config everything is working and people from orga1 location1 can login in snipeit. But now i wanna make it for all people in every organisation from location1 accessible. So the basis bind dn looks like this ou=location1,dc=root-dn,dc=de and this is not working and throws me the error 500 Server Error. Please check your server logs for more information when i press the test ldap sync button. I have seen other issues like https://github.com/snipe/snipe-it/issues/9108 and https://github.com/snipe/snipe-it/issues/9554. I tried to downgrade from 7.4 to php 7.3 and also use php8 but it did not work. But i am sure it should work because i am using the same configuration for other apps like rocket chat and kimai without any problems.

To Reproduce Steps to reproduce the behavior: Go to 'Admin Settings' Click on 'LDAP' Scroll down to 'Test LDAP Synchronisation' See error

Expected behavior That i can synchronize all people from location1 and they can login.

Server (please complete the following information):

Error Messages

[Zend Modules] Zend OPcache

Additional context

welcome[bot] commented 3 years ago

👋 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.

Fiala06 commented 3 years ago

Having the same issue as well. Thought I was going crazy. Tried multiple versions of php (Server 2019)

Fiala06 commented 3 years ago

Solved my issue. in .env once I changed

LDAP_MEM_LIM from 500M to 2G everything started working

tobias-mierzwa commented 3 years ago

Solved my issue. in .env once I changed

LDAP_MEM_LIM from 500M to 2G everything started working

That did not work out for me :(