Comments (3)
Hi @gunnk, if your application is in debug mode (in your .env
file check APP_DEBUG=true
), then LDAP errors will be shown by default. You can catch the exception:
// Authenticating
try {
if (Adldap::authenticate($username, $password)) {
echo "Passed!<br>";
} else {
echo "Failed!<br>";
}
} catch (\Exception $e) {
// Binding exception
}
Or you can hide the errors using Adldap::getConnection()->supressErrors();
.
I realize right now that this is inconsistent behavior and ugly when having your application in debug mode, however this has already been overhauled and removed in the upcoming v6
version.
from adldap2-laravel.
Oh, wow... thanks Steve! It would never have dawned on me that debug mode was the culprit. I'll use suppressErrors() and get on with my work!
from adldap2-laravel.
No problem at all! If you have any more questions or issues please create one and I'll respond as soon as possible.
from adldap2-laravel.
Related Issues (20)
- can't contact ldap server on production server, works fine on Test server HOT 1
- workaround for: problem with two factor authentication #894
- Error updating to V6 from V5
- Integrate Make OU and Make Group HOT 1
- Syncing and Auto inserts HOT 1
- psr/log dependency error HOT 2
- Unable to locate a user without a objectguid
- Not matching e-mail address even if still exists HOT 1
- SSO not working with AD auth HOT 9
- Laravel 9 Support HOT 8
- Distribution groups?
- SSO Problem with single route HOT 1
- php 8 support HOT 2
- technical qustion HOT 1
- online ldap test server HOT 3
- Adldap not working after upgrading to Laravel 6
- The 'username' key is missing from the given credentials array
- Can active directory user be logout ?After logout user, application require user login HOT 1
- Method move does not exist. HOT 1
- Config ldap_auth
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adldap2-laravel.