PHP Class LdapTools\Security\SecurityDescriptor

See also: https://msdn.microsoft.com/en-us/library/cc230273.aspx
Author: Chad Sikorra ([email protected])
Inheritance: use trait LdapTools\Utilities\NumberUtilitiesTrait
Afficher le fichier Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Свойство Type Description
$aclFlagMap A simple map of SDDL control flags and their ControlFlag constant names (minus the prepended ACL type)
$controlFlags ControlFlags
$dacl null | LdapTools\Security\Acl\Dacl
$group null | SID
$owner null | SID
$revision The security descriptor revision.
$rmControlFlags The resource manager control flags.
$sacl null | LdapTools\Security\Acl\Sacl

Méthodes publiques

Méthode Description
__construct ( null | string $descriptor = null )
__toString ( ) : string
getControlFlags ( ) : ControlFlags Get the ACE control flags.
getDacl ( ) : Dacl | null Get the Discretionary ACL
getGroup ( ) : SID Get the group SID for the security descriptor.
getOwner ( ) : SID | null Get the owner SID for the security descriptor.
getRevision ( ) : integer
getRmControlFlags ( ) : Flags Get the Resource Manager control flag value. This specifies control bits that contain specific information for the resource manager accessing it and the RM_CONTROL_VALID flag is set in the controls.
getSacl ( ) : Sacl | null Get the System ACL.
setControlFlags ( ControlFlags $controlFlags ) Set the ACE control flags object.
setDacl ( Dacl $dacl = null ) Set the Discretionary ACL.
setGroup ( SID | string $group ) Set the group SID for the security descriptor.
setOwner ( SID | string $owner ) Set the owner SID for the security descriptor.
setSacl ( Sacl $sacl = null ) Set the System ACL.
toBinary ( boolean $canonicalize = true ) : string Get the binary string form of the security descriptor.
toSddl ( boolean $canonicalize = true ) : string Get the SDDL string format that represents this Security Descriptor and everything it contains.

Méthodes protégées

Méthode Description
decodeFromBinary ( string $descriptor )
getAclSddlFlags ( Acl $acl ) : string Get the string flags that need to be prepended to the Dacl/Sacl SDDL string.
toggleAclPresent ( boolean $present, string $identifier )

Method Details

__construct() public méthode

public __construct ( null | string $descriptor = null )
$descriptor null | string

__toString() public méthode

public __toString ( ) : string
Résultat string

decodeFromBinary() protected méthode

protected decodeFromBinary ( string $descriptor )
$descriptor string

getAclSddlFlags() protected méthode

Get the string flags that need to be prepended to the Dacl/Sacl SDDL string.
protected getAclSddlFlags ( Acl $acl ) : string
$acl LdapTools\Security\Acl\Acl
Résultat string

getControlFlags() public méthode

Get the ACE control flags.
public getControlFlags ( ) : ControlFlags
Résultat ControlFlags

getDacl() public méthode

Get the Discretionary ACL
public getDacl ( ) : Dacl | null
Résultat LdapTools\Security\Acl\Dacl | null

getGroup() public méthode

Get the group SID for the security descriptor.
public getGroup ( ) : SID
Résultat SID

getOwner() public méthode

Get the owner SID for the security descriptor.
public getOwner ( ) : SID | null
Résultat SID | null

getRevision() public méthode

public getRevision ( ) : integer
Résultat integer

getRmControlFlags() public méthode

Get the Resource Manager control flag value. This specifies control bits that contain specific information for the resource manager accessing it and the RM_CONTROL_VALID flag is set in the controls.
public getRmControlFlags ( ) : Flags
Résultat Flags

getSacl() public méthode

Get the System ACL.
public getSacl ( ) : Sacl | null
Résultat LdapTools\Security\Acl\Sacl | null

setControlFlags() public méthode

Set the ACE control flags object.
public setControlFlags ( ControlFlags $controlFlags )
$controlFlags ControlFlags

setDacl() public méthode

Set the Discretionary ACL.
public setDacl ( Dacl $dacl = null )
$dacl LdapTools\Security\Acl\Dacl

setGroup() public méthode

Set the group SID for the security descriptor.
public setGroup ( SID | string $group )
$group SID | string

setOwner() public méthode

Set the owner SID for the security descriptor.
public setOwner ( SID | string $owner )
$owner SID | string

setSacl() public méthode

Set the System ACL.
public setSacl ( Sacl $sacl = null )
$sacl LdapTools\Security\Acl\Sacl

toBinary() public méthode

Get the binary string form of the security descriptor.
public toBinary ( boolean $canonicalize = true ) : string
$canonicalize boolean Whether or not to canonicalize the DACL
Résultat string

toSddl() public méthode

Get the SDDL string format that represents this Security Descriptor and everything it contains.
public toSddl ( boolean $canonicalize = true ) : string
$canonicalize boolean Whether or not to canonicalize the DACL
Résultat string

toggleAclPresent() protected méthode

protected toggleAclPresent ( boolean $present, string $identifier )
$present boolean
$identifier string

Property Details

$aclFlagMap protected_oe property

A simple map of SDDL control flags and their ControlFlag constant names (minus the prepended ACL type)
protected $aclFlagMap

$controlFlags protected_oe property

protected ControlFlags,LdapTools\Security $controlFlags
Résultat ControlFlags

$dacl protected_oe property

protected null|Dacl,LdapTools\Security\Acl $dacl
Résultat null | LdapTools\Security\Acl\Dacl

$group protected_oe property

protected null|SID,LdapTools\Security $group
Résultat null | SID

$owner protected_oe property

protected null|SID,LdapTools\Security $owner
Résultat null | SID

$revision protected_oe property

The security descriptor revision.
protected $revision

$rmControlFlags protected_oe property

The resource manager control flags.
protected $rmControlFlags

$sacl protected_oe property

protected null|Sacl,LdapTools\Security\Acl $sacl
Résultat null | LdapTools\Security\Acl\Sacl