snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

LDAP test fails but LDAP sync succeeds

Open tiagom62 opened this issue 9 years ago • 6 comments

Expected Behavior (or desired behavior if a feature request)

The test should succeed.


Actual Behavior

Testing LDAP in the "Update LDAP/AD Settings" fails with a red triangle. Chrome debug console shows "GET http://snipeit/api/v1/settings/ldaptest 401 (Unauthorized)"

I have tried saving and going back in and it fails with the same error.

When i go to People > LDAP Sync it does sync properly. It pulled in a new user I created.


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


Please provide answers to these questions before posting your bug report:

  • Version of Snipe-IT you're running v4.0.3 build 8 (gb354ca8)

  • What OS and web server you're running Snipe-IT on CentOS 7, apache

  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) install.sh

  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error

  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error Admin > Update LDAP/AD Settings page

  • If a stacktrace is provided in the error, include that too.

  • Any errors that appear in your browser's error console. "GET http://snipeit/api/v1/settings/ldaptest 401 (Unauthorized)"

  • Confirm whether the error is reproduceable on the demo. LDAP is disabled in the demo enviroment.

  • Include any additional information you can find in app/storage/logs and your webserver's logs.

  • Include what you've done so far in the installation, and if you got any error messages along the way.

  • Indicate whether or not you've manually edited any data directly in the database

tiagom62 avatar Sep 26 '17 14:09 tiagom62

I can confirm this one as well.

LawrenceIRL avatar Sep 26 '17 15:09 LawrenceIRL

I can also confirm on this one

pvhkai avatar Sep 27 '17 14:09 pvhkai

I can confirm exact same behavior too.

leobg avatar Sep 27 '17 21:09 leobg

As redundant as this is, I'm getting this as well. I looked in the Larvel.log, and I'm not getting anything. I also checked my AD security logs, and I'm not even seeing it hit the server. I do see successful authentication when I do an LDAP sync.

therealjoshuad avatar Sep 27 '17 22:09 therealjoshuad

Continues in v4.0.9 build 120 (gf66e222). laravel.log is empty. Running debug shows Unauthenticated./var/www/html/snipeit/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php#66

tiagom62 avatar Oct 04 '17 22:10 tiagom62

This is fixed. Tested latest master and its working great.

tiagom62 avatar Oct 19 '17 12:10 tiagom62