PHP Class Adldap\Objects\AccountControl

This class is for easily building a user account control value. https://support.microsoft.com/en-us/kb/305144
Afficher le fichier Open project: adldap2/adldap2 Class Usage Examples

Protected Properties

Свойство Type Description
$values array Stores the values to be added together to build the user account control integer.

Méthodes publiques

Méthode Description
__construct ( integer $flag = null ) Constructor.
__toInt ( ) : integer Returns the account control integer when the object is casted as an integer.
__toString ( ) : string Returns the account control integer as a string when the object is casted as a string.
accountDoesNotRequirePreAuth ( ) : AccountControl (Windows 2000/Windows Server 2003) This account does not require Kerberos pre-authentication for logging on.
accountIsDisabled ( ) : AccountControl The user account is disabled.
accountIsForInterdomain ( ) : AccountControl This is a permit to trust an account for a system domain that trusts other domains.
accountIsForServer ( ) : AccountControl This is a computer account for a domain controller that is a member of this domain.
accountIsForWorkstation ( ) : AccountControl This is a computer account for a computer that is running Microsoft Windows NT 4.0 Workstation, Microsoft Windows NT 4.0 Server, Microsoft Windows 2000 Professional, or Windows 2000 Server and is a member of this domain.
accountIsLocked ( ) : AccountControl The user account is locked.
accountIsMnsLogon ( ) : AccountControl This is an MNS logon account.
accountIsNormal ( ) : AccountControl This is a default account type that represents a typical user.
accountIsReadOnly ( ) : AccountControl (Windows Server 2008/Windows Server 2008 R2) The account is a read-only domain controller (RODC).
accountIsTemporary ( ) : AccountControl This is an account for users whose primary account is in another domain.
accountRequiresSmartCard ( ) : AccountControl When this flag is set, it forces the user to log on by using a smart card.
allowEncryptedTextPassword ( ) : AccountControl The user can send an encrypted password.
apply ( integer $flag ) Applies the specified flag.
doNotTrustForDelegation ( ) : AccountControl When this flag is set, the security context of the user is not delegated to a service even if the service account is set as trusted for Kerberos delegation.
getValue ( ) : integer Returns the complete account control value.
getValues ( ) : array Returns the account control's values.
homeFolderIsRequired ( ) : AccountControl The home folder is required.
passwordCannotBeChanged ( ) : AccountControl The user cannot change the password. This is a permission on the user's object.
passwordDoesNotExpire ( ) : AccountControl Represents the password, which should never expire on the account.
passwordIsExpired ( ) : AccountControl (Windows 2000/Windows Server 2003) The user's password has expired.
passwordIsNotRequired ( ) : AccountControl No password is required.
runLoginScript ( ) : AccountControl The logon script will be run.
setValues ( array $flags ) Sets the account control values.
trustForDelegation ( ) : AccountControl When this flag is set, the service account (the user or computer account) under which a service runs is trusted for Kerberos delegation.
trustToAuthForDelegation ( ) : AccountControl (Windows 2000/Windows Server 2003) The account is enabled for delegation.
useDesKeyOnly ( ) : AccountControl (Windows 2000/Windows Server 2003) Restrict this principal to use only Data Encryption Standard (DES) encryption types for keys.

Méthodes protégées

Méthode Description
add ( integer $value ) : AccountControl Applies the inserted value to the values property array.

Method Details

__construct() public méthode

Constructor.
public __construct ( integer $flag = null )
$flag integer

__toInt() public méthode

Returns the account control integer when the object is casted as an integer.
public __toInt ( ) : integer
Résultat integer

__toString() public méthode

Returns the account control integer as a string when the object is casted as a string.
public __toString ( ) : string
Résultat string

accountDoesNotRequirePreAuth() public méthode

(Windows 2000/Windows Server 2003) This account does not require Kerberos pre-authentication for logging on.
public accountDoesNotRequirePreAuth ( ) : AccountControl
Résultat AccountControl

accountIsDisabled() public méthode

The user account is disabled.
public accountIsDisabled ( ) : AccountControl
Résultat AccountControl

accountIsForInterdomain() public méthode

This is a permit to trust an account for a system domain that trusts other domains.
public accountIsForInterdomain ( ) : AccountControl
Résultat AccountControl

accountIsForServer() public méthode

This is a computer account for a domain controller that is a member of this domain.
public accountIsForServer ( ) : AccountControl
Résultat AccountControl

accountIsForWorkstation() public méthode

This is a computer account for a computer that is running Microsoft Windows NT 4.0 Workstation, Microsoft Windows NT 4.0 Server, Microsoft Windows 2000 Professional, or Windows 2000 Server and is a member of this domain.
public accountIsForWorkstation ( ) : AccountControl
Résultat AccountControl

accountIsLocked() public méthode

The user account is locked.
public accountIsLocked ( ) : AccountControl
Résultat AccountControl

accountIsMnsLogon() public méthode

This is an MNS logon account.
public accountIsMnsLogon ( ) : AccountControl
Résultat AccountControl

accountIsNormal() public méthode

This is a default account type that represents a typical user.
public accountIsNormal ( ) : AccountControl
Résultat AccountControl

accountIsReadOnly() public méthode

This is a security-sensitive setting. Removing this setting from an RODC compromises security on that server.
public accountIsReadOnly ( ) : AccountControl
Résultat AccountControl

accountIsTemporary() public méthode

This account provides user access to this domain, but not to any domain that trusts this domain. This is sometimes referred to as a local user account.
public accountIsTemporary ( ) : AccountControl
Résultat AccountControl

accountRequiresSmartCard() public méthode

When this flag is set, it forces the user to log on by using a smart card.
public accountRequiresSmartCard ( ) : AccountControl
Résultat AccountControl

add() protected méthode

Applies the inserted value to the values property array.
protected add ( integer $value ) : AccountControl
$value integer
Résultat AccountControl

allowEncryptedTextPassword() public méthode

The user can send an encrypted password.
public allowEncryptedTextPassword ( ) : AccountControl
Résultat AccountControl

apply() public méthode

Applies the specified flag.
public apply ( integer $flag )
$flag integer

doNotTrustForDelegation() public méthode

When this flag is set, the security context of the user is not delegated to a service even if the service account is set as trusted for Kerberos delegation.
public doNotTrustForDelegation ( ) : AccountControl
Résultat AccountControl

getValue() public méthode

Returns the complete account control value.
public getValue ( ) : integer
Résultat integer

getValues() public méthode

Returns the account control's values.
public getValues ( ) : array
Résultat array

homeFolderIsRequired() public méthode

The home folder is required.
public homeFolderIsRequired ( ) : AccountControl
Résultat AccountControl

passwordCannotBeChanged() public méthode

For information about how to programmatically set this permission, visit the following Web site: http://msdn2.microsoft.com/en-us/library/aa746398.aspx
public passwordCannotBeChanged ( ) : AccountControl
Résultat AccountControl

passwordDoesNotExpire() public méthode

Represents the password, which should never expire on the account.
public passwordDoesNotExpire ( ) : AccountControl
Résultat AccountControl

passwordIsExpired() public méthode

(Windows 2000/Windows Server 2003) The user's password has expired.
public passwordIsExpired ( ) : AccountControl
Résultat AccountControl

passwordIsNotRequired() public méthode

No password is required.
public passwordIsNotRequired ( ) : AccountControl
Résultat AccountControl

runLoginScript() public méthode

The logon script will be run.
public runLoginScript ( ) : AccountControl
Résultat AccountControl

setValues() public méthode

Sets the account control values.
public setValues ( array $flags )
$flags array

trustForDelegation() public méthode

Any such service can impersonate a client requesting the service. To enable a service for Kerberos delegation, you must set this flag on the userAccountControl property of the service account.
public trustForDelegation ( ) : AccountControl
Résultat AccountControl

trustToAuthForDelegation() public méthode

This is a security-sensitive setting. Accounts that have this option enabled should be tightly controlled. This setting lets a service that runs under the account assume a client's identity and authenticate as that user to other remote servers on the network.
public trustToAuthForDelegation ( ) : AccountControl
Résultat AccountControl

useDesKeyOnly() public méthode

(Windows 2000/Windows Server 2003) Restrict this principal to use only Data Encryption Standard (DES) encryption types for keys.
public useDesKeyOnly ( ) : AccountControl
Résultat AccountControl

Property Details

$values protected_oe property

Stores the values to be added together to build the user account control integer.
protected array $values
Résultat array