Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix domain separator. User decide to use / or \
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Oct 15, 2014
1 parent 7991771 commit b8fd0cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/access.smb/class.smbAccessWrapper.php
Expand Up @@ -55,7 +55,7 @@ protected static function initPath($path, $streamType, $storeOpenContext = false
$_SESSION["AJXP_SESSION_REMOTE_PASS"] = $pass;
$credentials = "$login:$pass@";
$domain = $repoObject->getOption("DOMAIN");
if($domain != "") $credentials = $domain."/".$credentials;
if($domain != "") $credentials = $domain.$credentials;
}
$basePath = $repoObject->getOption("PATH");
$fullPath = "smb://".$credentials.$host."/";//.$basePath."/".$path;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.smb/manifest.xml
Expand Up @@ -8,7 +8,7 @@
<server_settings>
<param name="HOST" type="string" label="CONF_MESSAGE[Host]" description="CONF_MESSAGE[Server IP or name, do not use add slashes or backward slashes]" mandatory="true" default="SERVER_IP"/>
<param name="PATH" type="string" label="CONF_MESSAGE[Uri]" description="CONF_MESSAGE[Path to the share and complementary URI if necessary]" mandatory="false"/>
<param name="DOMAIN" type="string" label="CONF_MESSAGE[Domain]" description="CONF_MESSAGE[Default domain to use with session credentials]" mandatory="false"/>
<param name="DOMAIN" type="string" label="CONF_MESSAGE[Domain]" description="CONF_MESSAGE[Default domain to use with session credentials. The domain name ends with '/' or '\' depend on your system. Example: MyDomain\ or YourDomain/]" mandatory="false"/>
<param name="CHMOD_VALUE" type="string" label="CONF_MESSAGE[File Creation Mask]" description="CONF_MESSAGE[Optionnaly apply a chmod operation. Value must be numeric, like 0777, 0644, etc.]" default="0666"/>
<global_param name="SMBCLIENT" type="string" label="CONF_MESSAGE[Smbclient]" description="CONF_MESSAGE[Path to smbclient executable, considered to be in the path by default.]" mandatory="true" default="smbclient"/>
<global_param name="SMB_PATH_TMP" type="string" label="CONF_MESSAGE[Path Tmp]" description="CONF_MESSAGE[OS Path Temporary if not the default one]" mandatory="true" default="/tmp"/>
Expand Down

0 comments on commit b8fd0cb

Please sign in to comment.