Git Product home page Git Product logo

ldaprecord-lumen's People

Contributors

stevebauman avatar stylecibot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

alexsaab ye-muath

ldaprecord-lumen's Issues

Usage with JWT

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'
                ]
            ],
        ],
    ]
];

Issue with EventLogger and loading config from the container

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

Lumen 8 Support?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.