Start of enabling DN update.

This commit is contained in:
2023-03-31 15:55:08 +11:00
parent a1a9b8ba76
commit c36383b0fc
13 changed files with 359 additions and 125 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Ldap;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Crypt;
use LdapRecord\Models\Model;
use App\Classes\LDAP\Attribute;
@@ -93,6 +94,15 @@ class Entry extends Model
/* METHODS */
/**
* Return a secure version of the DN
* @return string
*/
public function getDNSecure(): string
{
return Crypt::encryptString($this->getDn());
}
/**
* Return a list of LDAP internal attributes
*