directorytree / ldaprecord-lumen Goto Github PK
View Code? Open in Web Editor NEWLdapRecord-Laravel compatibility with Lumen.
License: MIT License
LdapRecord-Laravel compatibility with Lumen.
License: MIT License
Hey,
I'm seeing an issue where you get the following error message
Target class [config] does not exist.
when carrying out the following eloquent query
Staff::where(['samaccountname' => $request->username])->firstOrFail();.
.vendor/illuminate/container/Container.php#L830
.vendor/illuminate/container/Container.php#L712
.vendor/illuminate/container/Container.php#L651
.vendor/laravel/lumen-framework/src/Application.php#L300
.vendor/illuminate/container/Container.php#L1354
.vendor/illuminate/log/LogManager.php#L453
.vendor/illuminate/log/LogManager.php#L98
.vendor/illuminate/log/LogManager.php#L595
.vendor/directorytree/ldaprecord/src/Log/EventLogger.php#L71
.vendor/directorytree/ldaprecord/src/Log/EventLogger.php#L39
.vendor/directorytree/ldaprecord/src/Log/HasLogger.php#L65
Following the stack-trace, it looks like this comes from the Logger which I can see has been been recently removed from the parent package.
"php": ">=7.4",
"directorytree/ldaprecord-lumen": "^1.0",
"laravel/lumen-framework": "^8.0",
I've tried explicitly requiring the latest version (^2.1.2) of the base package in my composer.json, but it appears incompatible with this package.
Do you have any suggestions on how to remedy this, or if my interpretation of the removal of the EventLogger is correct?
Thanks for your help,
Ally
Hello! I just tried to install LdapRecord on Lumen 8.1 without success.
Are there any plans to support it or a workaround to install it?
Using version ^1.0 for directorytree/ldaprecord-lumen
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for directorytree/ldaprecord-lumen ^1.0 -> satisfiable by directorytree/ldaprecord-lumen[v1.0.0].
- Conclusion: remove laravel/lumen-framework v8.1.0
- Conclusion: don't install laravel/lumen-framework v8.1.0
- directorytree/ldaprecord-lumen v1.0.0 requires laravel/lumen-framework ^5.6|^6.0|^7.0 -> satisfiable by laravel/lumen-framework[5.6.x-dev, 5.7.x-dev, 5.8.x-dev, 6.x-dev, 7.x-dev].
- Can only install one of: laravel/lumen-framework[5.6.x-dev, v8.1.0].
- Can only install one of: laravel/lumen-framework[5.7.x-dev, v8.1.0].
- Can only install one of: laravel/lumen-framework[5.8.x-dev, v8.1.0].
- Can only install one of: laravel/lumen-framework[6.x-dev, v8.1.0].
- Can only install one of: laravel/lumen-framework[7.x-dev, v8.1.0].
- Installation request for laravel/lumen-framework (locked at v8.1.0, required as ^8.0) -> satisfiable by laravel/lumen-framework[v8.1.0].
Installation failed, reverting ./composer.json to its original content.
Is it possible to use LDAP authentication with JWT driver? When i configure my auth.php, i ran in a issue Authentication user provider [ldap] is not defined.
<?php
return [
'defaults' => [
'guard' => 'api',
'passwords' => 'users',
],
'guards' => [
'api' => [
'driver' => 'jwt',
'provider' => 'ldap',
],
],
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => \App\User::class
],
'ldap' => [
'driver' => 'ldap',
'model' => \App\Ldap\Models\User::class,
'database' => [
'model' => App\User::class,
'sync_passwords' => false,
'sync_attributes' => [
'name' => 'displayname',
'username' => 'cn',
'email' => 'mail'
],
'sync_existing' => [
'email' => 'mail'
]
],
],
]
];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.