phpldapadmin/app/Ldap/User.php

25 lines
384 B
PHP
Raw Normal View History

<?php
namespace App\Ldap;
use Laravel\Passport\HasApiTokens;
use LdapRecord\Models\OpenLDAP\User as Model;
class User extends Model
{
use HasApiTokens;
/**
* The object classes of the LDAP model.
*/
public static array $objectClasses = [
'posixAccount',
];
2023-01-27 08:59:31 +00:00
/* METHODS */
public function getDn(): string
{
return $this->exists ? parent::getDn() : 'Anonymous';
}
}