Attivazione autenticazione LDAP con registrazione utenti in DB

This commit is contained in:
2022-07-07 12:22:19 +02:00
parent 9c65d864c9
commit 9bfb9a1903
11 changed files with 218 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Ldap\Rules;
use LdapRecord\Laravel\Auth\Rule;
class OnlyInGroupUsers extends Rule
{
/**
* Check if the rule passes validation.
*
* @return bool
*/
public function isValid()
{
//
return $this->user->groups()->exists(
env('LDAP_GROUP_ACCESS')
);
}
}