smbclient -M sends NetBIOS session service header to port 445
Christopher R. Hertel
crh at ubiqx.mn.org
Mon Jan 6 20:53:00 GMT 2003
On Mon, Jan 06, 2003 at 02:23:13PM -0600, Steve Langasek wrote:
> On Mon, Jan 06, 2003 at 11:51:24AM -0600, Christopher R. Hertel wrote:
>
> > That would be great. Please also look at the -L option too, as that
> > should default to 139 as well. (Sort of... it's not necessary for listing
> > shares.)
>
> Ok. I'll add that to my queue behind getting libsmbclient to use the RPC
> call for share enumeration instead of the RAP call. :)
Oooh... That will be nice.
It does need to do both, though, to handle older machines. Sigh.
> > The -p option should override the defaults in any case, though. There are
> > folks who use port-redirection (for SSH links to the server, etc.).
> > They'd want -p to be authoritative, rather than just explicit. :)
>
> Done. See attached.
>
> --
> Steve Langasek
> postmodern programmer
> diff -ur samba-3.0alpha21.orig/source/client/client.c samba-3.0alpha21/source/client/client.c
> --- samba-3.0alpha21.orig/source/client/client.c 2002-11-26 20:54:18.000000000 -0600
> +++ samba-3.0alpha21/source/client/client.c 2003-01-06 14:08:54.000000000 -0600
> @@ -2995,6 +2995,12 @@
> }
> }
>
> + /* If -M is specified and -p is not, make sure we use port 139
> + instead of port 445. srl */
> + if (message && port == 0) {
> + port = 139;
> + }
> +
> init_names();
>
> if(*new_name_resolve_order)
Piece of cake. Very nice!
If no one else grabs it I'll try to get to it today.
...after I finish writhing up NTLMv2. :)
Chris -)-----
--
Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)----- crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/ -)----- crh at ubiqx.org
More information about the samba-technical
mailing list