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

LDAP Issue : Can connect to LDAP server but cannot login

Open tommulvey opened this issue 8 years ago • 4 comments

Expected Behavior (or desired behavior if a feature request)

LDAP works with sign in + authentication

Actual Behavior

cannot login 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? upgrade
  • Version of Snipe-IT you're running 4.2
  • Version of PHP you're running 5.6.33-0+deb8u1
  • Version of MySQL/MariaDB you're running: Ver 14.14 Distrib 5.5.59
  • What OS and web server you're running Snipe-IT on Turnkey linux + apache
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) git
  • 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/ldap test ldap button
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console. GET http://10.22.13.162/uploads/logo.png 404 (Not Found) ldap:1 This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.
  • Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo.
  • Include any additional information you can find in 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. Able to authenticate, but cannot login. Am able to connect to LDAP admin on seperate windows machine
  • Indicate whether or not you've manually edited any data directly in the database no i have not

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

ldap1 ldap2

tommulvey avatar Apr 02 '18 21:04 tommulvey

I am having the same issue.

jmb1304 avatar Apr 02 '18 22:04 jmb1304

Found a workaround with https://github.com/snipe/snipe-it/issues/3234#issuecomment-276964973.

tommulvey avatar Apr 02 '18 22:04 tommulvey

I have solved the problem. The recommended config is listed on their website if you are using Active Directory.

https://snipe-it.readme.io/docs/ldap-sync-login

jmb1304 avatar Apr 02 '18 22:04 jmb1304

I'm assuming you are putting the correct password in for binduserpassword? Are there any errors on the LDAP server? Maybe a failed login attempt that may point the the answer?

jasonlshelton avatar Apr 02 '18 23:04 jasonlshelton