A free open source IT asset/license management system
Small ldap troubleshooter output fixes
snipee3f36873b4d4
diff --git a/app/Console/Commands/LdapTroubleshooter.php b/app/Console/Commands/LdapTroubleshooter.phpindex a4ec13b911..a6263d5909 100644--- a/app/Console/Commands/LdapTroubleshooter.php+++ b/app/Console/Commands/LdapTroubleshooter.php@@ -609,17 +609,17 @@ class LdapTroubleshooter extends Command// is identical either way.if ($username === null) {$bind_results = ldap_sasl_bind($conn, null, null, 'EXTERNAL');- $identityLabel = 'the SASL EXTERNAL client certificate';+ $identityLabel = ' using the SASL EXTERNAL client certificate';} else {$bind_results = ldap_bind($conn, $username, $password);- $identityLabel = $username;+ $identityLabel = " as $username";}if (! $bind_results) {- $this->error("WARNING: Failed to bind to $ldap_url as $identityLabel");+ $this->error("WARNING: Failed to bind to $ldap_url$identityLabel");return false;}- $this->info("SUCCESS - Able to bind to $ldap_url as $identityLabel");+ $this->info("SUCCESS - Able to bind to $ldap_url$identityLabel");$cleaned_results = [];try {// This _may_ only work for Active Directory?