snipe / snipe-it

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

LDAP Login not working #4452

Closed ghost closed 6 years ago

ghost commented 6 years ago

Expected Behavior (or desired behavior if a feature request)

LDAP Sync is not disabling every enabled LDAP account and the LDAP login is working


Actual Behavior


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


Provide answers to these questions:

[2017-11-15 14:15:20] production.ERROR: There was an error authenticating the LDAP user: Could not find user in LDAP directory

Current LDAP Configuration added as a attachment

snipe_ldap

snipe commented 6 years ago

We test against Jumpcloud, and these are the settings we use:

The only thing I see different there is the LDAP filter.

ghost commented 6 years ago

Thank you for your answer.

I reinstall the complete Snipe installation, but with the same issue: After a success sync, all users are disabled and a login is not possible (with the login test in the LDAP settings).

techincolor commented 6 years ago

I have the same Jumpcloud Snipe Issue. The LDAP syncs fine, but enabled users cannot login with their LDAP creds.

[yes] I have enabled debug mode [yes] I have read checked the Common Issues page Provide answers to these questions:

Is this a fresh install or an upgrade? Upgrade

Version of Snipe-IT you're running Version v4.1.8-pre - build 3034 (master)

Version of PHP you're running PHP 5.6.30 (cli) (built: Aug 8 2017 12:20:45)

Version of MySQL/MariaDB you're running 5.7.20 MySQL

What OS and web server you're running Snipe-IT on macOS X 10.12.6

What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) Manual with Git Pull

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

What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error LDAP Configuration Login User LDAP Sync

Include what you've done so far in the installation, and if you got any error messages along the way. Current LDAP Configuration added as a attachment

" Connection to LDAP server established!" "Test LDAP Login Failed.***** did not successfully bind to LDAP."

screen shot 2017-12-07 at 4 05 04 pm

Indicate whether or not you've manually edited any data directly in the database No change in the DB

snipe commented 6 years ago

@techincolor make sure the user is allowed to bind in your JumpCloud user settings.

techincolor commented 6 years ago

yes they are set to bind, i'm testing with two of our bind accounts.

DanHelix commented 6 years ago

Hello @snipe

@techincolor and I have this working via Jumpcloud, however...

It only works if we use shortname for username (i.e. fname.lname) instead of being able to use full email address.

When you test it, do you login in using shortname or email?

snipe commented 6 years ago

I think shortname only

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!