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

Commit 7322ff8

Browse files
committed
Fix strange display in authentication panel by passing smbclient as param instead of global_param
1 parent 3e18f98 commit 7322ff8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/plugins/auth.smb/class.smbAuthDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function checkPassword($login, $pass, $seed)
6161
{
6262
if(!defined('SMB4PHP_SMBCLIENT'))
6363
{
64-
define('SMB4PHP_SMBCLIENT', $this->pluginConf["SMBCLIENT"]);
64+
define('SMB4PHP_SMBCLIENT', $this->options["SMBCLIENT"]);
6565
}
6666

6767
require_once(AJXP_INSTALL_PATH."/".AJXP_PLUGINS_FOLDER."/access.smb/smb.php");

core/src/plugins/auth.smb/manifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<server_settings>
99
<param name="REPOSITORY_ID" type="select" choices="json_list:list_all_repositories_json" label="CONF_MESSAGE[Workspace]" description="CONF_MESSAGE[ID of the workspace used to validate credentials]" mandatory="true"/>
1010
<param name="ADMIN_USER" type="string" label="CONF_MESSAGE[Admin user]" description="CONF_MESSAGE[The ID of an existing admin for Pydio (using conf.serial)]" mandatory="true"/>
11-
<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"/>
11+
<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"/>
1212
</server_settings>
1313
<class_definition filename="plugins/auth.smb/class.smbAuthDriver.php" classname="smbAuthDriver"/>
1414
<registry_contributions>

0 commit comments

Comments
 (0)