GithubHelp home page GithubHelp logo

chrmorandi / yii2-ldap Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 12.0 383 KB

Yii2 LDAP extension with ActiveRecord

Home Page: http://chrmorandi.github.io/yii2-ldap/

License: MIT License

PHP 100.00%
activerecord ldap yii2-ldap

yii2-ldap's People

Contributors

chrmorandi avatar kadirov avatar rimas-kudelis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

yii2-ldap's Issues

Please trigger repo re-read in packagist

The last commit id of this package as advertised on packagist is currently f9a0178, which is before the last two PR's were merged. I suppose PR merge just doesn't trigger a packagist re-read or something. @chrmorandi could you please trigger such re-read manually? Thanks in advance!

AR relations don't work

Whenever I specify a class to have a hasOne or hasMany relation with your ActiveRecord-derived class, I cannot effectively use that relation, because the actual attribute mapping appears to be ignored, and then I get the following exception message: You must define a filter for the search..

This works in the same way both when specifying relations with externally-stored objects (e.g. ones kept in a database), and when specifying relations with other LDAP objects. For example, if you have an LdapPerson class with userPrincipalName as the primary key, you can create the following "fake" relation:

public function getSelf()
{
    return $this->hasOne(LdapPerson::className(), ['userPrincipalName' => 'userPrincipalName']);
}

Then if you try to output $person->self, you'll either get this exception (if you haven't specified a default filter in find()), or an array of ALL of your LDAP entries matching the default class filter (if you have specified it).

Exeption on php 7.4 in DataReader

On php 7.2 all work fine, but when i try use php 7.4 it was exception on
vendor/chrmorandi/yii2-ldap/src/DataReader.php:277
current($this->entries) - on last item return 'false' on next line $nextEntry try use as array and i have exception.

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.