[Samba] Findsmb manual page now lies because the output of smbclient -L changed?

Jay Fenlason fenlason at redhat.com
Thu Sep 4 23:33:38 GMT 2003


In 2.2.8a days, findsmb would print the OS and Server version of the
machines it found, like this:


                                *=DMB
                                +=LMB
IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION 
---------------------------------------------------------------------
192.168.49.247 WINQA1 [QATEST] [Windows 5.0] [Windows 2000 LAN
Manager]
192.168.49.250 WINQA2 +[QATEST] [Windows 5.0] [Windows 2000 LAN
Manager]


The man page for findsmb in 3.0.0rc2 claims that findsmb will still do
so, but the actual output is always more like:


IP ADDR         NETBIOS NAME   WORKGROUP/OS/VERSION 
---------------------------------------------------------------------
192.168.49.247          WINQA1         [        QATEST        ]
192.168.49.250          WINQA2        +[        QATEST        ]

without any OS or server version information.  After reading the
source to findsmb, I discovered it was using
    open(SMB,"$SAMBABIN/smbclient -N -L $name -I $ip -U% |")
to get the information, and sure 'nuff, the samba-2.2.8a smbclient
says:

added interface ip=192.168.48.121 bcast=192.168.51.255
nmask=255.255.252.0
Domain=[QATEST] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED

        Server               Comment
        ---------            -------
        WINQA1               
        WINQA2               

        Workgroup            Master
        ---------            -------
        QATEST               WINQA2

While the 3.0.0 smbclient says:

        Sharename      Type      Comment
        ---------      ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED

        Server               Comment
        ---------            -------
        WINQA1               
        WINQA2               

        Workgroup            Master
        ---------            -------
        QATEST               WINQA2

And I haven't found anything in the smbclient manpage about restoring
the 2.2.x style verbose behavior.

So what's the right thing to do?
a) Find a way to make smbclient verbose again so findsmb will work as
   documented.
b) Change the findsmb documentation (and code) to match the new
   smbclient behavior.

And why hasn't anyone noticed this before now?

Oh, and there's a braino in the smbclient man page.

--- smbclient.1.orig    2003-09-04 19:33:00.000000000 -0400
+++ smbclient.1 2003-09-04 19:33:09.000000000 -0400
@@ -157,7 +157,7 @@
 
 .TP
 -V
-Prints the version number for \fBsmbd\fR\&.
+Prints the version number for \fBsmbclient\fR\&.
 
 
 .TP



			-- JF



More information about the samba mailing list