updates for active directory now with docs
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\ActiveDirectory\Constants;
|
||||
|
||||
final class AccountControl
|
||||
{
|
||||
public const SCRIPT = 0x0001;
|
||||
|
||||
public const ACCOUNTDISABLE = 0x0002;
|
||||
|
||||
public const HOMEDIR_REQUIRED = 0x0008;
|
||||
|
||||
public const LOCKOUT = 0x0010;
|
||||
|
||||
public const PASSWD_NOTREQD = 0x0020;
|
||||
|
||||
public const PASSWD_CANT_CHANGE = 0x0040;
|
||||
|
||||
public const ENCRYPTED_TEXT_PWD_ALLOWED = 0x0080;
|
||||
|
||||
public const TEMP_DUPLICATE_ACCOUNT = 0x0100;
|
||||
|
||||
public const NORMAL_ACCOUNT = 0x0200;
|
||||
|
||||
public const INTERDOMAIN_TRUST_ACCOUNT = 0x0800;
|
||||
|
||||
public const WORKSTATION_TRUST_ACCOUNT = 0x1000;
|
||||
|
||||
public const SERVER_TRUST_ACCOUNT = 0x2000;
|
||||
|
||||
public const DONT_EXPIRE_PASSWORD = 0x10000;
|
||||
|
||||
public const MNS_LOGON_ACCOUNT = 0x20000;
|
||||
|
||||
public const SMARTCARD_REQUIRED = 0x40000;
|
||||
|
||||
public const TRUSTED_FOR_DELEGATION = 0x80000;
|
||||
|
||||
public const NOT_DELEGATED = 0x100000;
|
||||
|
||||
public const USE_DES_KEY_ONLY = 0x200000;
|
||||
|
||||
public const DONT_REQ_PREAUTH = 0x400000;
|
||||
|
||||
public const PASSWORD_EXPIRED = 0x800000;
|
||||
|
||||
public const TRUSTED_TO_AUTH_FOR_DELEGATION = 0x1000000;
|
||||
|
||||
public const PARTIAL_SECRETS_ACCOUNT = 0x04000000;
|
||||
|
||||
public static function flags(int $value): array
|
||||
{
|
||||
$result = [];
|
||||
foreach ((new \ReflectionClass(self::class))->getConstants() as $name => $flag) {
|
||||
if (($value & $flag) !== 0) {
|
||||
$result[] = $name;
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user