PHP Class LdapTools\Security\SddlParser

Author: Chad Sikorra ([email protected])
Show file Open project: ldaptools/ldaptools

Protected Properties

Property Type Description
$connection LdapTools\Connection\LdapConnectionInterface | null
$domainSid This is the domain SID that can be used to form other well known SIDs.
$rootDomainSid This is the root domain SID that can be used to form other well known SIDs in the root domain.

Public Methods

Method Description
__construct ( LdapTools\Connection\LdapConnectionInterface $connection = null )
parse ( string $sddl ) : SecurityDescriptor Given a full SDDL string, parse it and return the SecurityDescriptor object that it represents.

Protected Methods

Method Description
getDomainSid ( boolean $isRoot ) : SID
getSddlFlagValue ( string $sddl, array $possibleFlags, string $name ) : integer
getSid ( string $sid, string $type ) : SID
getWellKnownDomainSid ( string $sid, boolean $isRoot ) : SID
parseAce ( string $sddl ) : Ace
parseAcl ( string $aclType, string $aclString, SecurityDescriptor $sd )
parseControlFlags ( string $ctrlFlags, string $aclType, SecurityDescriptor $sd )

Method Details

__construct() public method

public __construct ( LdapTools\Connection\LdapConnectionInterface $connection = null )
$connection LdapTools\Connection\LdapConnectionInterface

getDomainSid() protected method

protected getDomainSid ( boolean $isRoot ) : SID
$isRoot boolean
return SID

getSddlFlagValue() protected method

protected getSddlFlagValue ( string $sddl, array $possibleFlags, string $name ) : integer
$sddl string
$possibleFlags array
$name string
return integer

getSid() protected method

protected getSid ( string $sid, string $type ) : SID
$sid string
$type string
return SID

getWellKnownDomainSid() protected method

protected getWellKnownDomainSid ( string $sid, boolean $isRoot ) : SID
$sid string
$isRoot boolean
return SID

parse() public method

Given a full SDDL string, parse it and return the SecurityDescriptor object that it represents.
public parse ( string $sddl ) : SecurityDescriptor
$sddl string
return SecurityDescriptor

parseAce() protected method

protected parseAce ( string $sddl ) : Ace
$sddl string
return LdapTools\Security\Ace\Ace

parseAcl() protected method

protected parseAcl ( string $aclType, string $aclString, SecurityDescriptor $sd )
$aclType string
$aclString string
$sd SecurityDescriptor

parseControlFlags() protected method

protected parseControlFlags ( string $ctrlFlags, string $aclType, SecurityDescriptor $sd )
$ctrlFlags string
$aclType string
$sd SecurityDescriptor

Property Details

$connection protected property

protected LdapConnectionInterface,LdapTools\Connection|null $connection
return LdapTools\Connection\LdapConnectionInterface | null

$domainSid protected property

This is the domain SID that can be used to form other well known SIDs.
protected $domainSid

$rootDomainSid protected property

This is the root domain SID that can be used to form other well known SIDs in the root domain.
protected $rootDomainSid