unholyknight / active-directory-authenticate Goto Github PK
View Code? Open in Web Editor NEWCakePHP plugin for Active Directory authentication over LDAP
License: MIT License
CakePHP plugin for Active Directory authentication over LDAP
License: MIT License
I'm working on cakephp 3.5.5. When I'm setting ignored fields then script merge my field list with default list so i can't get "dn" field for user.
It gives a warning in the logs when a user authenticates but isn't in any groups besides "Domain Users"
2018-12-19 02:14:10 Warning: Warning (2): Invalid argument supplied for foreach() in [home_dir/public_html/vendor/unholyknight/active-directory-authenticate/src/Auth/AdldapAuthenticate.php, line 72]
Request URL: /users/login?redirect=%2F
Referer URL: https://domainname/users/login?redirect=%2F
Client IP: x.x.x.x
Trace:
Cake\Error\BaseErrorHandler::handleError() - CORE/src/Error/BaseErrorHandler.php, line 159
ActiveDirectoryAuthenticate\Auth\AdldapAuthenticate::_cleanGroups() - ROOT/vendor/unholyknight/active-directory-authenticate/src/Auth/AdldapAuthenticate.php, line 72
ActiveDirectoryAuthenticate\Auth\AdldapAuthenticate::findAdUser() - ROOT/vendor/unholyknight/active-directory-authenticate/src/Auth/AdldapAuthenticate.php, line 132
ActiveDirectoryAuthenticate\Auth\AdldapAuthenticate::authenticate() - ROOT/vendor/unholyknight/active-directory-authenticate/src/Auth/AdldapAuthenticate.php, line 99
Cake\Controller\Component\AuthComponent::identify() - CORE/src/Controller/Component/AuthComponent.php, line 824
App\Controller\UsersController::login() - APP/Controller/UsersController.php, line 94
App\Controller\AppController::invokeAction() - ROOT/vendor/friendsofcake/crud/src/Controller/ControllerTrait.php, line 63
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 107
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 156
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 98
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 98
[main] - ROOT/webroot/index.php, line 40
PHP Version 7.2.7-1+ubuntu14.04.1+deb.sury.org+1
unholyknight/active-directory-authenticate dev-master 73c34c5
adldap2/adldap2 v6.1.10
PHP ldap RCS Version
cakephp/cakephp 3.6.12
It may not be giving 'memberof' if there are no groups?
I'm working on cakephp 3.5.5. It doesn't matter what I write inside "select". This settings are always ignored and are not forwarded do parent class properly. The adldap2 select is always empty, and downloading all user fields from AD.
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.