disable fallback anonymous login for native state

This commit is contained in:
Robin Appelman 2018-01-18 12:33:56 +01:00
commit f3a93465c8

View file

@ -71,6 +71,7 @@ class NativeState {
return true;
}
$this->state = smbclient_state_new();
smbclient_option_set($this->state, SMBCLIENT_OPT_AUTO_ANONYMOUS_LOGIN, false);
$result = @smbclient_state_init($this->state, $workGroup, $user, $password);
$this->testResult($result, '');