Skip to content

skip_dfs=True doesn't skip DFS #326

@p1-dta

Description

@p1-dta

I have an issue with DFS with a specific server.

The error:

smbprotocol.exceptions.SMBOSError: [Error 0] [NtStatus 0xc000026d] Unknown NtStatus error returned 'STATUS_DFS_UNAVAILABLE':

My code:

import smbclient

smbclient.ClientConfig(username=smb_username, password=smb_pwd, skip_dfs=True)
smbclient.listdir("<path>")

The code I showed works for other servers, with and without skip_dfs.

Despite skip_dfs=True, it seems it still use it. I am clueless.

Python version: 3.12.4
smbprotocol version : 1.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions