Open maorweissSV opened 3 years ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Snipe-IT performs logins by doing an LDAP bind as your user - does your user have bind permissions? I've definitely seen that on Jumpcloud before.
Under "User Security Settings and Permissions" - check the box for "Enable as LDAP Bind DN".
Does that work any better?
Thank you @uberbrady for the reply :)
I've configured my user as you suggested on JumpCloud 5 hours ago and I've resync LDAP with the sudo artisan snipeit:ldap-sync
command right now.
Unfurthently, I still see the same Base table or view not found
log error when I'm trying to test the LDAP credentials again.
Is there any other idea of what can I do to solve this issue?
That sounds like possible missing migrations? What happens if you run php artisan migrate
- paste your output here if you wouldn't mind, especially so if it errors (of course, if it fixes it, then you can just close the issue and say that that fixed it :) )
Sorry... Nothing to migrate.
Same issue, but I'm open to new ideas :)
Any way you can get us more of that error message? "Base table or view not found" is probably not a particularly good situation for us to be in, and we'll probably need to fix it, if we can figure out what 'it' is.
Thanks @uberbrady ,
The full error message is: `[previous exception] [object] (PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'snipeitdb.users' doesn't exist at /var/www/snipeit/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:79) [stacktrace]
"} `.
My table name is 'snipeitdb'. As you can see, it should work.
Somehow, your Snipe-IT environment can't see your database, or it's maybe looking at the wrong one? If your Snipe-IT web application works, you should be able to run stuff similarly via the command-line.
Try php artisan list
and make sure you get output. Try php artisan tinker
and then try something like $s=App\Models\Setting::first()
- that should give you a dump of your settings, which are stored in the database.
This way we can at least confirm that your command-line environment can at least connect to your database the same way the web application can.
Thanks for the support, @uberbrady ! After checking the DB connection by your instructions, I've got this.
Is there something particular that we need from this output?
Please confirm you have done the following before posting your bug report:
Describe the bug After successfully LDAP sync test I'm getting the "Unable to validate user credentials!" error. I'm using the JumpCloud configuration settings for LDAP sync and it's working properly without user login.
To Reproduce Steps to reproduce the behavior:
Expected behavior Successful log messages and successful login of the users.
Screenshots
Server (please complete the following information):
Desktop (please complete the following information):