Skip to content

Commit

Permalink
ldap: Instance Name
Browse files Browse the repository at this point in the history
This addresses an issue where if you have more than one LDAP instance
running it will show "Active Directory or LDAP" for all instances making it
hard to differentiate the instances. This updates the `getName()` function
to grab the name from the config if available otherwise defaults to the
default name.
  • Loading branch information
JediKev committed May 16, 2024
1 parent 2bb7717 commit 7f9ecb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth-ldap/authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ function authenticate($username, $password=false, $errors=array()) {
function getName() {
$config = $this->config;
list($__, $_N) = $config->translate();
return $__(static::$name);
return $config->getName() ?: $__(static::$name);
}

function lookup($dn) {
Expand Down

0 comments on commit 7f9ecb8

Please sign in to comment.