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

LDAP login

Open amannb opened this issue 8 years ago • 7 comments

Expected Behavior (or desired behavior if a feature request)

Login using LDAP and Import users from LDAP


Actual Behavior

Test LDAP login fails. Error "Login Failed. username did not successfully bind to LDAP.


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


Provide answers to these questions:

  • Is this a fresh install or an upgrade? Fresh install

  • Version of Snipe-IT you're running Version v4.1.9 - build 3128 (master)

  • Version of PHP you're running 7.1.11-0ubuntu0.17.10.1

  • Version of MySQL/MariaDB you're running 5.7.20-0ubuntu0.17.10.1

  • What OS and web server you're running Snipe-IT on Ubuntu Linux 17.10

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

  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error Failed to load resource: the server responded with a status of 400 (Bad Request)

  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error LDAP settings . Test LDAP login

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

  • Any errors that appear in your browser's error console. Failed to load resource: the server responded with a status of 400 (Bad Request)

  • Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo. no

  • 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. There was no error in application installation

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

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

https://snipe-it.readme.io/docs/getting-help

amannb avatar Jan 02 '18 17:01 amannb

If you are using Active Directory do you have

LDAP Authentication query

Set to

sAMAccountName=

I ran in to this issue the other day and this resolved my problem, i believe default is uid=

snazy2000 avatar Jan 05 '18 17:01 snazy2000

Thanks snazy2000, That solved my issue. image

amannb avatar Jan 08 '18 07:01 amannb

I have: uid=samaccountname Not sure how to implement your solution snazy2000?

wynandbecker avatar Aug 20 '18 14:08 wynandbecker

change it from uid=samaccountname to just samaccountname=

snazy2000 avatar Aug 20 '18 14:08 snazy2000

Ok thanks man. Still dead though :/

wynandbecker avatar Aug 20 '18 14:08 wynandbecker

@snazy2000 many thanks! finally have it working for me!

jpaolosy avatar Dec 07 '18 01:12 jpaolosy

no works for me :( i can see all active directory users but they can't login...

Liel4494 avatar Apr 21 '19 05:04 Liel4494