Author: Chad Sikorra (Chad.Sikorra@gmail.com)
Inheritance: use trait LdapTools\Utilities\NumberUtilitiesTrait
Exemplo n.º 1
0
 /**
  * Get the SDDL string representation of the ACL.
  *
  * @param bool $canonicalize Whether or not to re-order the ACEs to be canonical before the operation.
  * @return string
  */
 public function toSddl($canonicalize = true)
 {
     if ($canonicalize) {
         $this->canonicalize();
     }
     return parent::toSddl();
 }
Exemplo n.º 2
0
 /**
  * Get the string flags that need to be prepended to the Dacl/Sacl SDDL string.
  *
  * @param Acl $acl
  * @return string
  */
 protected function getAclSddlFlags(Acl $acl)
 {
     $flags = '';
     foreach ($this->aclFlagMap as $flag => $name) {
         $name = $acl->getSddlIdentifier() . $name;
         if ($this->controlFlags->has(ControlFlags::FLAG[$name])) {
             $flags .= $flag;
         }
     }
     return $flags;
 }