示例#1
0
 public function __construct(Access $access)
 {
     parent::__construct($access);
     $filter = $this->access->connection->ldapGroupFilter;
     $gassoc = $this->access->connection->ldapGroupMemberAssocAttr;
     if (!empty($filter) && !empty($gassoc)) {
         $this->enabled = true;
     }
 }
示例#2
0
 /**
  * @param \OCA\user_ldap\lib\Access $access
  * @param \OCP\IConfig $ocConfig
  */
 public function __construct(Access $access, IConfig $ocConfig)
 {
     parent::__construct($access);
     $this->ocConfig = $ocConfig;
 }