From b1032c5bb73b02f01d1f3db35567f1b72c60db18 Mon Sep 17 00:00:00 2001 From: Melvin Suter Date: Thu, 15 Aug 2019 13:03:47 +0200 Subject: [PATCH] Fixed Login error based on bad format in command Signed-off-by: Melvin Suter --- lib/smb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/smb.php b/lib/smb.php index d0da14f..49d785d 100644 --- a/lib/smb.php +++ b/lib/smb.php @@ -39,7 +39,7 @@ class OC_User_SMB extends \OCA\user_external\Base{ private function tryAuthentication($uid, $password) { $uidEscaped = escapeshellarg($uid); $password = escapeshellarg($password); - $command = self::SMBCLIENT.' '.escapeshellarg('//' . $this->host . '/dummy').' -U'.$uidEscaped.'%'.$password; + $command = self::SMBCLIENT.' '.escapeshellarg('//' . $this->host . '/dummy').' -U '.$uidEscaped.'%'.$password; $lastline = exec($command, $output, $retval); if ($retval === 127) { OC::$server->getLogger()->error(