Skip to content

Commit

Permalink
Merge branch 'master' into release-0.18.0 for #800
Browse files Browse the repository at this point in the history
jnweiger committed Jul 27, 2023
2 parents 4a8c193 + 9178c64 commit 01807e2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Wizard.php
Original file line number Diff line number Diff line change
@@ -685,6 +685,17 @@ public function guessBaseDN() {
}
}

//check whether the agent name is in email form; last '@' is taken, if multiple.
$i = \strrpos($this->configuration->ldapAgentName, '@');
if ($i !== false) {
$base1 = \substr($this->configuration->ldapAgentName, $i+1);
$base1 = 'dc=' . \implode(',dc=', \explode('.', $base1));
if ($this->testBaseDN($base1)) {
$this->applyFind('ldap_base', $base1);
return $this->result;
}
}

//this did not help :(
//Let's see whether we can parse the Host URL and convert the domain to
//a base DN

0 comments on commit 01807e2

Please sign in to comment.