Skip to content

Commit

Permalink
Merge pull request #100 from melvin-suter/fix_login_error
Browse files Browse the repository at this point in the history
Fixed SMB Login Issues
  • Loading branch information
violoncelloCH authored Oct 5, 2019
2 parents e393d5e + b1032c5 commit 3b06887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/smb.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct($host) {
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(
Expand Down

0 comments on commit 3b06887

Please sign in to comment.