chrmorandi / yii2-ldap Goto Github PK
View Code? Open in Web Editor NEWYii2 LDAP extension with ActiveRecord
Home Page: http://chrmorandi.github.io/yii2-ldap/
License: MIT License
Yii2 LDAP extension with ActiveRecord
Home Page: http://chrmorandi.github.io/yii2-ldap/
License: MIT License
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!
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).
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.
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.