Upgraded to v4.6.15 (previous v4.6.13); Now can't bind to LDAP
Please confirm you have done the following before posting your bug report:
- [ X] I have enabled debug mode
- [ X] I have read checked the Common Issues page
Describe the bug A clear and concise description of what the bug is.
---The Active Directory account can't bind to LDAP. I'm running Windows Server Standard 2016. Everything worked fine when I was on v4.6.13. I have tried several accounts and they all get the same error message. I have run the LDP.exe tool which allows you to test your connections to LDAP. The accounts that I have used shows that these accounts can successfully bind to LDAP.
To Reproduce Steps to reproduce the behavior:
- Go to 'Admin'
- Click on 'LDAP/Active Directory'
- Scroll down to 'Test LDAP Login'
- See errors: ---Your app key has changed. Could not decrypt LDAP password using your current app key, so LDAP authentication has been disabled. Login with a local account, update the LDAP password and re-enable it in Admin, Settings.
---I* followed these instructions. Ever since, I get the following error:*
** Login Failed. [email protected] did not successfully bind to LDAP.** ---I went ahead and re-generated a key (I viewed a handful of searches -on this) but this didn't make a difference.
Expected behavior A clear and concise description of what you expected to happen.
---Should successfully bind to LDAP. Therefore, we can Sync LDAP to get the new users.
Screenshots If applicable, add screenshots to help explain your problem.


Server (please complete the following information):
- Snipe-IT Version 4.6.15
- OS: [e.g. Ubuntu, CentOS] Windows Server Standard 2016
- Web Server: [e.g. Apache, IIS] IIS
- PHP Version 7.1.3
Desktop (please complete the following information):
- OS: [e.g. iOS] Windows 10 Professional
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] 71.0.3578.98
Smartphone (please complete the following information):
I'm not using a smartphone
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Error Messages
- WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
- If a stacktrace is provided in the error, include that too.
- Any errors that appear in your browser's error console. My browser's error console didn't come up even though I had debug on. All it showed was a message at the time stating that debugging was on.
- Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo. I can't use the demo to recreate my problem. The LDAP/AD feature isn't enabled.
- Include any additional information you can find in
storage/logsand your webserver's logs. Login Failed. [email protected] did not successfully bind to LDAP.
Additional context
-
Is this a fresh install or an upgrade? Upgrade
-
What OS and web server you're running Snipe-IT on Windows Server Standard 2016; IIS v10
-
What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) php upgrade.php
-
Include what you've done so far in the installation, and if you got any error messages along the way. I didn't receive an error messages. Everything was successful. After I installed the upgrade I ran the following commands: a. php composer.phar install --no-dev --prefer-source b. php composer.phar dump-autoload c. php artisan migrate d. php artisan config:clear e. php artisan config:cache
-
Indicate whether or not you've manually edited any data directly in the database ---No, I have not manually edited any information in the database. Add any other context about the problem here.
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.
Thanks!
Howdy, I figured it out and I will still refer to this as possibly being a bug.
Since upgrading from v4.6.13 to v4.6.15, the LDAP Bind Username has to be in the same OU as what you specify in the Base Bind DN. We several OUs our Active Directory, especially for separating application user accounts, service accounts, managed user accounts, etc. I had to move the account that we use for the LDAP/AD Settings to the same OU as the users accounts we want synced.
Across all of the previous upgrades, we haven't had to setup the settings this way.
I would want this fixed because I don't my service accounts in the same OU as our user accounts and especially since it has worked before. I'd like to know whether or not this will changed.
Thanks!
Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!
This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.