Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 84745fb

Browse files
committed
Added limitation filter docs
1 parent d0ca274 commit 84745fb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,3 +433,28 @@ protected $middlewareGroups = [
433433

434434
Now when you visit your site, a user account will be created (if one doesn't exist already)
435435
with a random password and then automatically logged in. Neat huh?
436+
437+
#### Login Limitation Filter
438+
439+
> **Note**: This feature was introduced in `v1.4.6`. You will need to re-publish the Adldap Auth configuration file
440+
to receive this option.
441+
442+
Inside of your `config/adldap_auth.php` configuration, you can now insert a raw LDAP filter to specify what users are allowed to authenticate.
443+
444+
For example, to allow only users with an email address, insert the filter: `(mail=*)`:
445+
446+
```php
447+
/*
448+
|--------------------------------------------------------------------------
449+
| Limitation Filter
450+
|--------------------------------------------------------------------------
451+
|
452+
| The limitation filter allows you to enter a raw filter to only allow
453+
| specific users / groups / ous to authenticate.
454+
|
455+
| This should be a standard LDAP filter.
456+
|
457+
*/
458+
459+
'limitation_filter' => '(mail=*)',
460+
```

0 commit comments

Comments
 (0)