Skip to content

Commit

Permalink
[jan] Add 'domain' parameter to Smb driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 22, 2015
1 parent 9a7691d commit 5b8e87a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/Vfs/lib/Horde/Vfs/Smb.php
Expand Up @@ -628,12 +628,16 @@ protected function _command($path, $cmd)
$ipoption = isset($this->_params['ipaddress'])
? (' -I ' . $this->_params['ipaddress'])
: null;
$domain = isset($this->_params['domain'])
? (' -W ' . $this->_params['domain'])
: null;
$fullcmd = $this->_params['smbclient'] .
' "//' . $this->_params['hostspec'] . '/' . $share . '"' .
' "-p' . $this->_params['port'] . '"' .
' "-U' . $this->_params['username'] . '"' .
' -D "' . $path . '" ' .
$ipoption .
$domain .
' -c "';
foreach ($cmd as $c) {
$fullcmd .= $c . ";";
Expand Down
2 changes: 2 additions & 0 deletions framework/Vfs/package.xml
Expand Up @@ -38,6 +38,7 @@ Reading, writing and listing of files are all supported.</description>
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [jan] Add &apos;domain&apos; parameter to Smb driver.
* [jan] Allow to specify a fixed leading directory in Smb driver.
</notes>
<contents>
Expand Down Expand Up @@ -1233,6 +1234,7 @@ Added a class for providing garbage collection; removed all Horde dependancies.
<date>2015-06-22</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [jan] Add &apos;domain&apos; parameter to Smb driver.
* [jan] Allow to specify a fixed leading directory in Smb driver.
</notes>
</release>
Expand Down

0 comments on commit 5b8e87a

Please sign in to comment.