mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
disable fallback anonymous login for native state
This commit is contained in:
parent
0ef64a9156
commit
f3a93465c8
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ class NativeState {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$this->state = smbclient_state_new();
|
$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);
|
$result = @smbclient_state_init($this->state, $workGroup, $user, $password);
|
||||||
|
|
||||||
$this->testResult($result, '');
|
$this->testResult($result, '');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue