Jay Fenlason
2003-Sep-04 23:33 UTC
[Samba] Findsmb manual page now lies because the output of smbclient -L changed?
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
Gerald (Jerry) Carter
2003-Sep-05 14:03 UTC
[Samba] Findsmb manual page now lies because the output of smbclient -L changed?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 4 Sep 2003, Jay Fenlason wrote:> In 2.2.8a days, findsmb would print the OS and Server version of the > machines it found, like this:....> The man page for findsmb in 3.0.0rc2 claims that findsmb will still do > so, but the actual output is always more like:Fixed in cvs. cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE/WJekIR7qMdg1EfYRAuICAKDpvFCd625VuM7tXr/NnrB7uKUF3QCfaG44 /xnEWIXXkeddVC8/heUKuPM=frIB -----END PGP SIGNATURE-----