Skip to content

Stream authentication fails when workgroup (semicolon) delimiter missing from file URI #108

Description

Authentication fails when using stream wrapper without workgroup delimiter:

$contents = file_get_contents('smb://user:pass@server/path/to/file');

However the following succeeds (note extra workgroup delimiter after protocol):

$contents = file_get_contents('smb://;user:pass@server/path/to/file');

PHP 8.4.1
smbclient extension 1.1.2
libsmbclient library 4.20.2

Thanks Eduardo!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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