Package: smbclient; Maintainer for smbclient is Debian Samba Maintainers <pkg-samba-maint@lists.alioth.debian.org>; Source for smbclient is src:samba.
Reported by: Peter Samuelson <peter@cadcamlab.org>
Date: Thu, 2 Mar 2000 07:03:02 UTC
Severity: normal
Found in version 2.0.6-4
Done: peloy@debian.org (Eloy A. Paris)
Bug is archived. No further changes may be made.
View this report as an mbox folder, status mbox, maintainer mbox
debian-bugs-dist@lists.debian.org, peloy@debian.org (Eloy A. Paris):Bug#59411; Package smbclient.
Full text and rfc822 format available.Peter Samuelson <peter@cadcamlab.org>:peloy@debian.org (Eloy A. Paris).
Full text and rfc822 format available.Message #5 received at submit@bugs.debian.org (full text, mbox):
From: Peter Samuelson <peter@cadcamlab.org> To: submit@bugs.debian.org Subject: smbclient: cannot browse Win2k shares Date: Wed, 1 Mar 2000 23:07:01 -0600 (CST)
Package: smbclient
Version: 2.0.6-4
Severity: normal
`smbclient -L' (browse share names) does not work against Windows 2000.
Jeremy Allison recently posted the following patch to samba@samba.org.
http://samba.org/listproc/samba/February2000/0454.html
The patch is trivial and "obviously correct", as Linus Torvalds would
say, so in my opinion it is safe for potato (or at least a future
stable update). In any case, it will be in Samba 2.0.7.
Peter
--- libsmb/clientgen.c.orig Fri Feb 25 10:33:23 2000
+++ libsmb/clientgen.c Fri Feb 25 10:33:31 2000
@@ -600,7 +600,7 @@
/****************************************************************************
call a NetShareEnum - try and browse available connections on a host
****************************************************************************/
-BOOL cli_RNetShareEnum(struct cli_state *cli, void (*fn)(const char *, uint32, const char *))
+int cli_RNetShareEnum(struct cli_state *cli, void (*fn)(const char *, uint32, const char *))
{
char *rparam = NULL;
char *rdata = NULL;
@@ -618,12 +618,16 @@
pstrcpy(p,"B13BWz");
p = skip_string(p,1);
SSVAL(p,0,1);
- SSVAL(p,2,0xFFFF);
+ /*
+ * Win2k needs a *smaller* buffer than 0xFFFF here -
+ * it returns "out of server memory" with 0xFFFF !!! JRA.
+ */
+ SSVAL(p,2,0xFFE0);
p += 4;
if (cli_api(cli,
param, PTR_DIFF(p,param), 1024, /* Param, length, maxlen */
- NULL, 0, 0xFFFF, /* data, length, maxlen */
+ NULL, 0, 0xFFE0, /* data, length, maxlen - Win2k needs a small buffer here too ! */
&rparam, &rprcnt, /* return params, length */
&rdata, &rdrcnt)) /* return data, length */
{
--- client/client.c.orig Wed Nov 10 18:35:59 1999
+++ client/client.c Fri Feb 25 10:33:37 2000
@@ -1555,10 +1555,15 @@
****************************************************************************/
static BOOL browse_host(BOOL sort)
{
+ int ret;
+
printf("\n\tSharename Type Comment\n");
printf("\t--------- ---- -------\n");
- return cli_RNetShareEnum(cli, browse_fn);
+ if((ret = cli_RNetShareEnum(cli, browse_fn)) == -1)
+ printf("Error returning browse list: %s\n", cli_errstr(cli));
+
+ return (ret != -1);
}
/****************************************************************************
--- include/proto.h.orig Fri Feb 25 10:36:38 2000
+++ include/proto.h Fri Feb 25 10:37:02 2000
@@ -435,7 +435,7 @@
char **rparam, int *rprcnt,
char **rdata, int *rdrcnt);
BOOL cli_NetWkstaUserLogon(struct cli_state *cli,char *user, char *workstation);
-BOOL cli_RNetShareEnum(struct cli_state *cli, void (*fn)(const char *, uint32, const char *));
+int cli_RNetShareEnum(struct cli_state *cli, void (*fn)(const char *, uint32, const char *));
BOOL cli_NetServerEnum(struct cli_state *cli, char *workgroup, uint32 stype,
void (*fn)(const char *, uint32, const char *));
BOOL cli_session_setup(struct cli_state *cli,
peloy@debian.org (Eloy A. Paris):Peter Samuelson <peter@cadcamlab.org>:Message #10 received at 59411-close@bugs.debian.org (full text, mbox):
From: peloy@debian.org (Eloy A. Paris) To: 59411-close@bugs.debian.org Subject: Bug#59411: fixed in samba 2.0.7-1 Date: 2 May 2000 09:25:29 -0000
We believe that the bug you reported is fixed in the latest version of
samba, which has been installed in the Debian FTP archive:
swat_2.0.7-1_i386.deb
to dists/potato/main/binary-i386/net/swat_2.0.7-1.deb
replacing swat_2.0.6-5.deb
swat_2.0.7-1_i386.deb
to dists/woody/main/binary-i386/net/swat_2.0.7-1.deb
replacing swat_2.0.6-5.deb
smbclient_2.0.7-1_i386.deb
to dists/potato/main/binary-i386/net/smbclient_2.0.7-1.deb
replacing smbclient_2.0.6-5.deb
smbclient_2.0.7-1_i386.deb
to dists/woody/main/binary-i386/net/smbclient_2.0.7-1.deb
replacing smbclient_2.0.6-5.deb
samba_2.0.7-1_i386.deb
to dists/potato/main/binary-i386/net/samba_2.0.7-1.deb
replacing samba_2.0.6-5.deb
samba_2.0.7-1_i386.deb
to dists/woody/main/binary-i386/net/samba_2.0.7-1.deb
replacing samba_2.0.6-5.deb
samba-doc_2.0.7-1_all.deb
to dists/potato/main/binary-all/net/samba-doc_2.0.7-1.deb
replacing samba-doc_2.0.6-5.deb
samba-doc_2.0.7-1_all.deb
to dists/woody/main/binary-all/net/samba-doc_2.0.7-1.deb
replacing samba-doc_2.0.6-5.deb
samba_2.0.7.orig.tar.gz
to dists/potato/main/source/net/samba_2.0.7.orig.tar.gz
replacing samba_2.0.6.orig.tar.gz
samba_2.0.7.orig.tar.gz
to dists/woody/main/source/net/samba_2.0.7.orig.tar.gz
replacing samba_2.0.6.orig.tar.gz
samba_2.0.7-1.diff.gz
to dists/potato/main/source/net/samba_2.0.7-1.diff.gz
replacing samba_2.0.6-5.diff.gz
samba_2.0.7-1.diff.gz
to dists/woody/main/source/net/samba_2.0.7-1.diff.gz
replacing samba_2.0.6-5.diff.gz
samba_2.0.7-1.dsc
to dists/potato/main/source/net/samba_2.0.7-1.dsc
replacing samba_2.0.6-5.dsc
samba_2.0.7-1.dsc
to dists/woody/main/source/net/samba_2.0.7-1.dsc
replacing samba_2.0.6-5.dsc
samba-common_2.0.7-1_i386.deb
to dists/potato/main/binary-i386/net/samba-common_2.0.7-1.deb
replacing samba-common_2.0.6-5.deb
samba-common_2.0.7-1_i386.deb
to dists/woody/main/binary-i386/net/samba-common_2.0.7-1.deb
replacing samba-common_2.0.6-5.deb
smbfs_2.0.7-1_i386.deb
to dists/potato/main/binary-i386/otherosfs/smbfs_2.0.7-1.deb
replacing smbfs_2.0.6-5.deb
smbfs_2.0.7-1_i386.deb
to dists/woody/main/binary-i386/otherosfs/smbfs_2.0.7-1.deb
replacing smbfs_2.0.6-5.deb
Note that this package is not part of the released stable Debian
distribution. It may have dependencies on other unreleased software,
or other instabilities. Please take care if you wish to install it.
The update will eventually make its way into the next released Debian
distribution.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 59411@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Eloy A. Paris <peloy@debian.org> (supplier of updated samba package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Format: 1.6
Date: Thu, 27 Apr 2000 16:07:45 -0400
Source: samba
Binary: samba-doc swat smbclient samba-common smbfs samba
Architecture: source i386 all
Version: 2.0.7-1
Distribution: frozen unstable
Urgency: low
Maintainer: Eloy A. Paris <peloy@debian.org>
Description:
samba - A LanManager like file and printer server for Unix.
samba-common - Samba common files used by both the server and the client.
samba-doc - Samba documentation.
smbclient - A LanManager like simple client for Unix.
smbfs - mount and umount commands for the smbfs (for kernels >= than 2.0.
swat - Samba Web Administration Tool
Closes: 37274 39818 43492 45931 48497 50479 50907 51752 52218 54383 54398 55028 56247 56699 56711 58616 58994 59411 62148 62185
Changes:
samba (2.0.7-1) frozen unstable; urgency=low
.
* New upstream version. Dear Release Manager: please allow this
package to go to frozen as it contains fixes to a _lot_ of problems.
You can take a look at all the problems fixed by this release in
the official upstream announcement at
http://us1.samba.org/samba/whatsnew/samba-2.0.7.html.
* Added --with-utmp to add utmp support to smbd (this is new in Samba
2.0.7)
* Closes: #62148 - samba not rotating filled logs.
* Closes: #56711: Samba doesn't manage well long share name (please note
that it's possible to connect to shares with names longer than
14 characters but the share will be listed with a name truncated to
13 characters.)
* Closes: #51752 - NT DOMAIN - NET USE * /HOME not mapping (error 67).
Closes: #50907 - logon path not working.
This is not a bug, it's just Samba doing the same thing an NT server
does. See WHATSNEW.txt and smb.conf's man page for details.
* Closes: #48497 - error executing smbsh in debian-potato. (smbwrapper
is not supported anymore.)
* Closes: #58994 swat: typo in swat description.
* Closes: #45931 - Samba dies with SIGILL on startup. (Hardware
problems, person that reported the bug never came back.)
Closes: #54398 - smbadduser fails, looks for ypcat.
* Fixed swat's man page to include Debian specific installation
instructions. There's not necessary to edit /etc/services or
/etc/inetd.conf.
(Closes: #58616 - incomplete install config && incorrect installation
instructions.)
* s/SBINDIR/\"/usr/sbin\"/g in source/web/startstop.c to prevent swat
to look for smbd and nmbd in the wrong place when requested to start or
stop smbd or nmbd.
(Closes: #55028 - swat can't start samba servers.)
* Closes: #37274: smbclient does not honour pot. (Tested and seems to be
working now.)
* Not confirmed, but should fix #56699, #62185, #56247, #52218, #43492,
#50479, #39818, #54383, #59411.
(please re-open any of this if the problem still exists - I was unable
to confirm any of this because I could never reproduce them.)
Closes: #56699 - Samba's nmbd causes random kernel oops several
times in a row.
Closes: #62185 - nmbd's forking until no more file descriptors are
available.
Closes: #56247 - session setup failed: ERRSRV - ERRbadpw.
Closes: #52218 - Either wins proxy does not work, or I don't understand
it.
Closes: #43492 - intermittent problem changing password.
Closes: #50479 - Can't access windows 2000 shares with samba.
Closes: #39818 - samba-common: Upgrading Samba from the Slink version.
Closes: #54383 - samba-common: Missing /etc/smb.conf.
Closes: #59411 - smbclient: cannot browse Win2k shares.
Files:
349451ec91486ee992e1182e0654e523 577 net optional samba_2.0.7-1.dsc
b5e61ea655d476072fd0365785fea2d0 4276392 net optional samba_2.0.7.orig.tar.gz
13f71c9d4e4e963d567ad610c01d79b7 59677 net optional samba_2.0.7-1.diff.gz
7d25947c469eefd34109ee46199b855c 1729296 docs optional samba-doc_2.0.7-1_all.deb
968b963f06ced52d890e23b90348c498 1036540 net optional samba_2.0.7-1_i386.deb
aab9cdb39f2c7ebc08b878ffba4c4e42 568810 net optional samba-common_2.0.7-1_i386.deb
8e656612fcdd07c314510ab173cbccbd 558830 net optional smbclient_2.0.7-1_i386.deb
9037a7f885417e187be3342f4892e01d 349458 net optional swat_2.0.7-1_i386.deb
86821af8a629fc7adf68925884d4bb7c 349842 otherosfs optional smbfs_2.0.7-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQBVAwUBOQi+B+2mHou9qyWBAQHfZgH+JxVVkC0+OvkxiFsILqmiicJ3Tb6AsIKZ
2FxMiuB8ii88GWv07rXYFloDlk8FkPRAdT2D7JqAskw78mzldsaFEg==
=gftP
-----END PGP SIGNATURE-----
Send a report that this bug log contains spam.
Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.