URI::smb(3) User Contributed Perl Documentation URI::smb(3)

# [NAME](#NAME)

URI::smb - Samba/CIFS URI scheme

# [SYNOPSIS](#SYNOPSIS)

```
    my $uri = URI->new('smb://authdomain;user:password@server/share/path');
```

# [DESCRIPTION](#DESCRIPTION)

This module implements the (unofficial) "smb:" URI scheme described in &lt;http://www.ubiqx.org/cifs/Appendix-D.html&gt;.

# [SUBROUTINES/METHODS](#SUBROUTINES/METHODS)

## [default\_port](#default_port)

The default port for accessing Samba/Windows File Servers is 445

## [user](#user)

Get or set the user part of the URI (without the authdomain)

## [authdomain](#authdomain)

Get or set the authentication authdomain part of the URI. This value is only available if the user is already set.

## [sharename](#sharename)

Helper method to get the share name from path

# [DEPENDENCIES](#DEPENDENCIES)

None

# [BUGS AND LIMITATIONS](#BUGS_AND_LIMITATIONS)

See URI

# [SEE ALSO](#SEE_ALSO)

&lt;http://www.ubiqx.org/cifs/Appendix-D.html&gt;

# [AUTHOR](#AUTHOR)

I. M. Bur &lt;github@lty.cz&gt;

# [LICENSE AND COPYRIGHT](#LICENSE_AND_COPYRIGHT)

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See &lt;http://dev.perl.org/licenses/&gt; for more information.

2026-10-19 perl v5.44.0

---

Document: URI::smb(3pm) from perl-uri 5.38-r0 (Chainguard OS)
Source: https://github.com/libwww-perl/URI.git
