Lines Matching +full:domain -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)
21 * $conf['plugin']['authad']['account_suffix'] = '@my.domain.org';
22 * $conf['plugin']['authad']['base_dn'] = 'DC=my,DC=domain,DC=org';
23 * $conf['plugin']['authad']['domain_controllers'] = 'srv1.domain.org,srv2.domain.org';
49 * @var array hold connection data for a specific AD domain
54 * @var array open connections for each AD domain, as adLDAP objects
127 // other can do's are changed in $this->_loadServerConfig() base on domain setup
134 * Load domain config on capability check
142 //capabilities depend on config, which may change depending on domain
143 $domain = $this->getUserDomain($INPUT->server->str('REMOTE_USER'));
144 $this->loadServerConfig($domain);
261 // add the user's domain to the groups
262 $domain = $this->getUserDomain($user);
263 if ($domain && !in_array("domain-$domain", $info['grps'])) {
264 $info['grps'][] = $this->cleanGroup("domain-$domain");
319 * Normalizes domain parts, does not modify the user name itself (unlike cleanGroup)
327 $domain = '';
329 // get NTLM or Kerberos domain part
332 if ($dom) $domain = $dom;
334 if ($dom) $domain = $dom;
337 $domain = PhpString::strtolower(trim($domain));
340 // is this a known, valid domain or do we work without account suffix? if not discard
342 (!isset($this->conf[$domain]) || !is_array($this->conf[$domain])) &&
345 $domain = '';
348 // reattach domain
349 if ($domain) $user = "$user@$domain";
629 * When you pass null as domain, it will reuse any existing domain.
631 * domain if no current one is available.
633 * @param string|null $domain The AD domain to use
636 protected function initAdLdap($domain) argument
638 if (is_null($domain) && is_array($this->opts)) {
639 $domain = $this->opts['domain'];
642 $this->opts = $this->loadServerConfig((string) $domain);
643 if (isset($this->adldap[$domain])) return $this->adldap[$domain];
647 $this->adldap[$domain] = new adLDAP($this->opts);
648 return $this->adldap[$domain];
654 $this->adldap[$domain] = null;
660 * Get the domain part from a user
667 [, $domain] = sexplode('@', $user, 2, '');
668 return $domain;
674 * When an account suffix is set, we strip the domain part from the user
688 * Fetch the configuration for the given AD domain
690 * @param string $domain current AD domain
693 protected function loadServerConfig($domain) argument
698 $opts['domain'] = $domain;
700 // add possible domain specific configuration
701 …if ($domain && is_array($this->conf[$domain] ?? '')) foreach ($this->conf[$domain] as $key => $val…
743 * The default domain has an empty string as key
745 * @return array associative array(key => domain)
752 // add default domain, using the name from account suffix