Re: NT_Create: Anything special I need to know?

2003-02-25 Thread Yogesh Hy Kulkarni

Hi
  The field 'FileType' in the  NT_Create_ANDX is very sensitive. I have
observed
  NT cliens crashing if that field was set to a value 1. I refered the SNIA
document,
  and the description is missing :)

  Generally I have observed that if the create response is not correct, NT
client
 will crash ( BSOD ). W2K handles the same packet without crashing.

Hope this helps.

Yogesh.



NT_Create: Anything special I need to know?

2003-02-25 Thread Christopher R. Hertel
I'm going to do a very brief writeup of NT_CREATE_ANDX, but I remember
hearing rumors dark lurking daemons.  What do I need to know?  What is there
about this command that should be documented?

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/ -)-   [EMAIL PROTECTED]
OnLineBook -- http://ubiqx.org/cifs/-)-   [EMAIL PROTECTED]


Re: make clean clean cleaner

2003-02-25 Thread Martin Pool
On 25 Feb 2003, "Green, Paul" <[EMAIL PROTECTED]> wrote:
> Or maybe that should read "make make clean clean cleaner..."
> 
> "make clean" fails to clean up the files that were built by "make
> everything" over and above "make all". Hence, this patch to head.  Test here
> successfully.

That looks reasonable to me.

I really wish that you could do "make clean && make all" and not have
it barf due to missing prototype headers.

-- 
Martin 

Recovering from current external perceptions of Microsoft as a
paranoid, untrustworthy, greedy, petty, and politically inept
organization will take years.
-- Dave Stutz, Microsoft


Re: Bizarre limit alert.

2003-02-25 Thread Conrad Minshall
My first response was vague.  Now that I've reviewed code I'll try again...

I saw the same "packet drop" with an overlong WRITE_ANDX.  The maximum
buffer size an NT SP6 claims on the NEGOTIATE respone is 0x1104 (4356).
This limit is not on the data, the limit includes the SMB header (32 bytes)
and the SMB command.  Based upon the size of an ECHO command I'd expect you
could send 4319 bytes, not 4323, so on this topic you'll have to have the
last word... sorry.

Conrad Minshall
[EMAIL PROTECTED]

12:04 AM -0800 2/25/03, Christopher R. Hertel wrote:
>I've been testing the SMB Echo message and found a very odd thing.
>
>If I send an echo request message to NT4 SP6 with a payload of 4323 bytes
>NT4 responds just fine.  If the payload is 4324 bytes NT4 does not reply.
>
>Of interest, the payload of 4323 bytes generates one ECHO Request and two
>continuation messages on the (Ethernet) wire.  The ECHO Request and first
>continuation message are 1514 bytes in (total) length.  The last
>continuation message is 1498 bytes...16 bytes less than 1514.  Hmmm...
>
>I like weird stuff like this.
>
>Chris -)-
>
>PS.  W2K doesn't have the same problem.  I can send an ECHO Request with
> a payload as big as 16611 bytes.  Curiously, at 16612 bytes and above
> W2K will reset the connection.  "Connection reset by peer".
>
>--
>Samba Team -- http://www.samba.org/ -)-   Christopher R. Hertel
>jCIFS Team -- http://jcifs.samba.org/   -)-   ubiqx development, uninq.
>ubiqx Team -- http://www.ubiqx.org/ -)-   [EMAIL PROTECTED]
>OnLineBook -- http://ubiqx.org/cifs/-)-   [EMAIL PROTECTED]



--
Conrad Minshall ... [EMAIL PROTECTED] ... 408 974-2749
Alternative email addresses: [EMAIL PROTECTED] and [EMAIL PROTECTED]




trouble with rpcclient setdriver using Samba 2.2.7a on RH Linux 7.3

2003-02-25 Thread Christopher J. Tengi
Using Samba version 2.2.7a on a Red Had Linux 7.3 system (named ream, as in 
paper), I gave this command:


rpcclient ream -c 'setdriver hp_233 "HP LaserJet 4050 Series PS"'


and got the following printed on my screen:


session setup ok
Domain=[CS] OS=[Unix] Server=[Samba 2.2.7a]
cmd = setdriver hp_233 "HP LaserJet 4050 Series PS"
setdriver hp_233 "HP LaserJet 4050 Series PS"
SetPrinter call failed!
result was NT_STATUS_ACCESS_DENIED


Here is what showed up in the log.smbd file:


[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(606)
  spoolss_io_devmode: Unknown specversion in devicemode [0x0]
[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(608)
  spoolss_io_devmode: please report to [EMAIL PROTECTED]
[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(704)
  spoolss_io_devmode: I've parsed all I know and there is still stuff left|
[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(705)
  spoolss_io_devmode: available_space = [-220], devmode_size = [0]!
[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(707)
  spoolss_io_devmode: please report to [EMAIL PROTECTED]
[2003/02/25 17:49:38, 0, pid=10207] rpc_server/srv_spoolss.c:api_spoolss_setpri
nter(600)
  spoolss_io_q_setprinter: unable to unmarshall SPOOL_Q_SETPRINTER.
[2003/02/25 17:49:38, 0, pid=10207] rpc_server/srv_pipe.c:api_rpcTNP(1200)
  api_rpcTNP: api_spoolss_rpc: SPOOLSS_SETPRINTER failed.


Note that rpcclient commands like "getprinter hp_233" seem to work OK.  
However enumdrivers and enumprinters do not return anything useful, even after 
I have successfully used an XP machine to put driver files in print$ (by 
browsing to my samba server, and following the instructions to install drivers 
in the "Printing Support in Samba 2.2.x" web pages).  Here is what I see:


ream 138> rpcclient ream -c enumdrivers
Enter Password: 
session setup ok
Domain=[CS] OS=[Unix] Server=[Samba 2.2.7a]
cmd = enumdrivers
enumdrivers
ream 139> ^drivers^printers
rpcclient ream -c enumprinters
Enter Password: 
session setup ok
Domain=[CS] OS=[Unix] Server=[Samba 2.2.7a]
cmd = enumprinters
enumprinters
result was NT_STATUS_BUFFER_TOO_SMALL


Nothing shows up in the log.smbd file after these "failures."


So, am I doing something wrong?  I'll include my smb.conf file below.  Note 
that I am using the lpr and lpq commands, rather than completely relying on 
CUPS, so that we can use printer instances to control feature (duplex, 
simplex, manual feed, etc) by queue name, rather than hope that each user gets 
it right.  It allows us to make duplex printing the default, and hard to 
over-ride (through some PPD magic).

Thanks,
/Chris


[global]
workgroup = CS
security = server
server string = CS Print Server - Samba %v
password server = bart lisa
wins server = 128.112.137.3
netbios name = ream
domain master = no
local master = no
preferred master = no
os level = 0
;
allow hosts = 
192.168.0.0/255.255.0.0,128.112.0.0/255.255.0.0,140.180.0.0/255.255.0.0,172.16.0.0/255.240.0.0
;
dead time = 30
debug level = 1
debug pid = yes
socket options = TCP_NODELAY
;
message command = /usr/local/bin/zwrite -q -c PRINTER -i samba:[EMAIL 
PROTECTED] < %s ; rm %s
;
; members of the ntadmin group should be able
; to add drivers and set printer properties
; root is implicitly a 'printer admin'
;
printer admin = cmmiller,elgersma,jrc,jmr,jonesy,tengi
add printer command = /bin/true
delete printer command = /bin/true
load printers = no
lpq cache time = 10
;
case sensitive = no

[print$]
path = /var/local/samba/printers
public = yes
browseable = yes
; since this share is configured as read only, then we need
; sure this account can copy files to the share.  If this
; is setup to a non-root account, then it should also exist
; as a 'printer admin'
write list = cmmiller,elgersma,jrc,jmr,jonesy,tengi

[lp]
comment = default print share
;
public = yes
;
browseable = no
create mask = 0700
map archive = no
writable = no
;
printable = yes
printing = cups
print command = /var/local/etc/strip_pjl < %s | /usr/bin/lpr -T %s -P%p; rm -f 
%s
lpq command = /usr/bin/lpq -P%p
;
default case = lower
mangle case = no
preserve case = yes
short preserve case = yes

; printer definitions from the invdb

[hp_030]
copy = lp
printer = hp_030
b

Re: smbd load of large numbers of client

2003-02-25 Thread William Jojo


well here's the thing. Samba does a great job of managing the PC's and
their romaing profiles. Two things you need to consider that I've found in
our 800 machine environment.

We had a problem with the number of small files and server
performance. This is not Samba's fault in any way. We have 5300 users and
they are spread over 8 filesystems with symlinks from /home. Some things
you can do is mod the uid by 8 and that's the filesystem they fall into.

anyway we had 8 million total student files. i just finished removing 2.4
million in IE and NS cache. Now things are much much smoother than the
last few weeks at login time.

that's number one. number two is build a fast i/o infrastructure. that
means both network and disk. we use 10k 36GB SSA disks from IBM. they're
*fast*. Microsofts use of roaming profiles is interesting in theory, but
the practical application of having one server do everything is an issue
especially when users cannot manage their profiles properly.

roaming profiles can reduce a $125,000 RS/6000 to a doorstop if you're not
careful. We are branching out and having one server for served software,
one for H: (homes) space and one for profiles (on order). The new 630 with
4-Power4+ cpus at 1.45GHz each and 8GB memory for $40,000 is going to do
nicely for us. (of course i have a really nice director who like to give
me money)

I'm in *NO* way indicating you will need to do this. We *need* to because
of what we call the "top of the hour" effect where students log off to go
to another class and login someplace else. this creates a tremendous
amount of i/o for about 20 minutes - 10 of to 10 past the hour.

our current server IBM-RS/6000-6H1 with 6 cpus and 6 GB memory can handle
the punishment of 550 workstations all logging in at the same time. I
cannot say for 800 since not all classrooms are full. Hope that helps.

BTW, we are a community college with 11,000 students and 5300 of which
actively use our 800 XP based PCs.

Keep up the great work Samba Team!!!

Bill


On Tue, 25 Feb 2003, Richard Sharpe wrote:

> Hi,
> 
> Is anyone running larges numbers of clients against Samba servers? Here I 
> am thinking of 1000+ clients, and wanting to get a feel for the load of 
> 1000+ smbds.
> 
> I already know that at least with the 2.2.x base, smbd maintains 29 open 
> file descriptors before it opens any files for users, but am wondering 
> about the memory load (which should not be too bad with copy-on-write on 
> modern UNIXen) and context switch load?
> 
> Regards
> -
> Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
> sharpe[at]ethereal.com, http://www.richardsharpe.com
> 
> 



smbd load of large numbers of client

2003-02-25 Thread Richard Sharpe
Hi,

Is anyone running larges numbers of clients against Samba servers? Here I 
am thinking of 1000+ clients, and wanting to get a feel for the load of 
1000+ smbds.

I already know that at least with the 2.2.x base, smbd maintains 29 open 
file descriptors before it opens any files for users, but am wondering 
about the memory load (which should not be too bad with copy-on-write on 
modern UNIXen) and context switch load?

Regards
-
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com



HEAD: client/client.c

2003-02-25 Thread Joe Meslovich

The function cmd_help is returning an integer value when it should be
returning the appropriate NTSTATUS message.

client/client.c: In function `cmd_help':
client/client.c:2172: incompatible types in return
client/client.c:2173: warning: control reaches end of non-void function


Joe


Joe Meslovich   [EMAIL PROTECTED]
Associate Network/Systems Engineer  IT Center
Tel: (540) 828 - 5343



Re: [PATCH] Re: 3.0a21: "net ads lookup" for a child domain gotmessy output

2003-02-25 Thread Chere Zhou
How about this new patch (as in the attachment).  The change I made from your 
patch, is to add the while loop in pull_c_zero_string which was adopted from 
pull_dotted_string.  Now my domains are all happy.  Otherwise, a grandchild 
domain complains.

I am posting this to samba-technical list, since I though it was what you 
intended to do, and we might get more testing of this.

Chere


On Monday 24 February 2003 01:21 pm, Anthony Liguori wrote:
> Lotus Notes won't let me send patches to the samba-technical list anymore
> (I've got to get a forwarding account it seems) but I haven't tested this
> patch enough to apply it to HEAD anyway.
>
> I know it works with your traffic though as I used your dumps as test data.
> This patch gives a _lot_ more information and makes various fixes.
>
> Note: the patch you submitted to the list doesn't actually work for domain
> controllers without forests.  The 0xc0 stuff are deliminators for these
> strings.
>
> Let me know how this patch works out for you:
>
> (See attached file: net_ads_lookup.patch)
>
> Anthony Liguori
> Linux/Active Directory Interoperability
> Linux Technology Center (LTC) - IBM Austin
> E-mail: [EMAIL PROTECTED]
> Phone: (512) 838-1208
> Tie Line: 678-1208
>
>
>
--- utils/net_ads_cldap.c.orig	Mon Feb 24 14:27:29 2003
+++ utils/net_ads_cldap.c	Tue Feb 25 11:27:50 2003
@@ -24,15 +24,25 @@
 #ifdef HAVE_ADS
 
 struct cldap_netlogon_reply {
-	uint32 version;
+	uint32 type;
 	uint32 flags;
 	GUID guid;
 	char *domain;
-	char *server_name;
-	char *domain_flatname;
-	char *server_flatname;
-	char *dns_name;
-	uint32 unknown2[2];
+
+	char *dns_domain;
+	uint8 domain_flag;
+	char *dns_hostname;
+	uint8 hostname_flag;
+	
+	char *netbios_domain;
+	char *netbios_hostname;
+
+	char *user_name;
+	char *site_name;
+
+	uint32 version;
+	uint16 lmnt_token;
+	uint16 lm20_token;
 };
 
 
@@ -76,6 +86,33 @@
 	return total_len + 1;
 }
 
+static unsigned pull_c_zero_string(char **ret, uint8 *flag, 
+   const unsigned char *p)
+{
+	unsigned len = 0, total_len=0;
+	char *s;
+
+	*ret = NULL;
+
+	/* TODO: see what happends when a domain controller name == 0xc0 */
+	while (*p != 0xc0) {
+		len = pull_len_string(&s, p);
+if (total_len) {
+char *s2;
+asprintf(&s2, "%s.%s", *ret, s);
+SAFE_FREE(*ret);
+(*ret) = s2;
+} else {
+(*ret) = s;
+}
+total_len += len;
+p += len;
+	}
+
+	*flag = p[1];
+
+	return (total_len + 2);
+}
 
 /*
   do a cldap netlogon query
@@ -190,19 +227,27 @@
 
 	p = os3.data;
 
-	reply->version = IVAL(p, 0); p += 4;
+	reply->type = IVAL(p, 0); p += 4;
 	reply->flags = IVAL(p, 0); p += 4;
+
 	memcpy(&reply->guid.info, p, GUID_SIZE);
 	p += GUID_SIZE;
 	p += pull_dotted_string(&reply->domain, p);
-	p += 2; /* 0xc018 - whats this? */
-	p += pull_len_string(&reply->server_name, p);
-	p += 2; /* 0xc018 - whats this? */
-	p += pull_len_string(&reply->domain_flatname, p);
-	p += 1;
-	p += pull_len_string(&reply->server_flatname, p);
-	p += 2;
-	p += pull_len_string(&reply->dns_name, p);
+
+	p += pull_c_zero_string(&reply->dns_domain, &reply->domain_flag, p);
+	p += pull_c_zero_string(&reply->dns_hostname, &reply->hostname_flag,p);
+
+	p += pull_dotted_string(&reply->netbios_domain, p);
+	p += pull_dotted_string(&reply->netbios_hostname, p);
+
+	p += pull_len_string(&reply->user_name, p);
+	p += pull_len_string(&reply->site_name, p);
+
+	p += 2; /* is this two empty strings? */
+
+	reply->version = IVAL(p, 0);
+	reply->lmnt_token = SVAL(p, 4);
+	reply->lm20_token = SVAL(p, 6);
 
 	data_blob_free(&os1);
 	data_blob_free(&os2);
@@ -219,10 +264,12 @@
 static void cldap_reply_free(struct cldap_netlogon_reply *reply)
 {
 	SAFE_FREE(reply->domain);
-	SAFE_FREE(reply->server_name);
-	SAFE_FREE(reply->domain_flatname);
-	SAFE_FREE(reply->server_flatname);
-	SAFE_FREE(reply->dns_name);
+	SAFE_FREE(reply->dns_domain);
+	SAFE_FREE(reply->dns_hostname);
+	SAFE_FREE(reply->netbios_domain);
+	SAFE_FREE(reply->netbios_hostname);
+	SAFE_FREE(reply->user_name);
+	SAFE_FREE(reply->site_name);
 }
 
 /*
@@ -246,7 +293,6 @@
 	if (ret != 0) {
 		return ret;
 	}
-
 	ret = recv_cldap_netlogon(sock, &reply);
 	close(sock);
 
@@ -254,15 +300,51 @@
 		return -1;
 	}
 
-	d_printf("Version: 0x%x\n", reply.version);
+	d_printf("Response Type: 0x%x\n", reply.type);
 	d_printf("GUID: "); 
 	print_guid(&reply.guid);
-	d_printf("Flags:   0x%x\n", reply.flags);
-	d_printf("Domain: %s\n", reply.domain);
-	d_printf("Server Name: %s\n", reply.server_name);
-	d_printf("Flatname: %s\n", reply.domain_flatname);
-	d_printf("Server Name2: %s\n", reply.server_flatname);
-	d_printf("DNS Name: %s\n", reply.dns_name);
+	d_printf("Flags:\n"
+		 "\tIs a PDC:   %s\n"
+		 "\tIs a GC of the forest:  %s\n"
+		 "\tIs an LDAP server:  %s\n"
+		 

vfs_recycle and create mode 770

2003-02-25 Thread Marcel Mohr
@List
I'd like to use the recycle as a per machine recycler using the option
'name = .recycle/%m' (because we have just some usernames
without passwords)
Works fine, but
if a directory is created it uses the rights 700, therefor  if a
subdirectory should be created by antother user it doesn't get the
permissions and the files will be purged.
Any suggestions how i can change the create mode to 770.

Marcel Mohr
---

Berliner Institut für
Vergleichende Sozialforschung
Wissenschaftlicher, gemeinnütziger Verein
Mitglied im Europäischen Migrationszentrum

Postal Adress: Schliemannstraße 23, D-10437 Berlin
Phone: +49-30 - 44 65 10 65  Fax: +49-30 - 444 10 85
E-mail: [EMAIL PROTECTED]
Homepage: http://www.emz-berlin.de




smbmount: support lfs and unicode options

2003-02-25 Thread Ronan Waide
Hi folks,

this is an updated version of Urban Widmark's smbmount patch to enable
lfs and unicode options to be switched on the command line. It's
diff'd against current CVS HEAD.

Cheers,
Waider.

Index: source/client/smbmount.c
===
RCS file: /cvsroot/samba/source/client/smbmount.c,v
retrieving revision 1.65
diff -a -u -r1.65 smbmount.c
--- source/client/smbmount.c15 Feb 2003 00:29:20 -  1.65
+++ source/client/smbmount.c25 Feb 2003 14:01:43 -
@@ -51,6 +51,8 @@
 static BOOL use_kerberos;
 /* TODO: Add code to detect smbfs version in kernel */
 static BOOL status32_smbfs = False;
+static BOOL smbfs_has_unicode = False;
+static BOOL smbfs_has_lfs = False;
 
 static void usage(void);
 
@@ -212,6 +214,12 @@
c->force_dos_errors = True;
}
 
+   if (!smbfs_has_lfs)
+ c->capabilities &= ~CAP_LARGE_FILES;
+
+   if (!smbfs_has_unicode)
+ c->capabilities &= ~CAP_UNICODE;
+
if (!cli_session_setup(c, username, 
   password, strlen(password),
   password, strlen(password),
@@ -828,6 +836,10 @@
mount_ro = 0;
} else if(!strcmp(opts, "ro")) {
mount_ro = 1;
+   } else if(!strcmp(opts, "unicode")) {
+   smbfs_has_unicode = True;
+   } else if(!strcmp(opts, "lfs")) {
+   smbfs_has_lfs = True;
} else {
strncpy(p, opts, sizeof(pstring) - (p - options) - 1);
p += strlen(opts);

-- 
[EMAIL PROTECTED] / Yes, it /is/ very personal of me.
#!/bin/perl -sp0777i

any news on BDC and trust relationship progress?

2003-02-25 Thread Andreas
Are there any news regarding:

1. Samba (2.2 or 3.0alpha) working as a BDC? Or just the net rpc vampire
   command for now?
   Should net rpc vampire work with a win2k PDC or just NT4?

2. Samba (2.2 or 3.0alpha) with trust relationships with an NT4 PDC? Or
   win2k?

Thanks.



make clean clean cleaner

2003-02-25 Thread Green, Paul
Or maybe that should read "make make clean clean cleaner..."

"make clean" fails to clean up the files that were built by "make
everything" over and above "make all". Hence, this patch to head.  Test here
successfully.

Thanks
PG
--
Paul Green, Senior Technical Consultant,
Stratus Technologies, Maynard, MA USA
Voice: +1 978-461-7557; FAX: +1 978-461-3610
Speaking from Stratus not for Stratus


diff -urp old/samba/source/Makefile.in new/samba/source/Makefile.in
--- old/samba/source/Makefile.inMon Feb 24 13:46:47 2003
+++ new/samba/source/Makefile.inMon Feb 24 13:54:05 2003
@@ -126,6 +126,10 @@ TORTURE_PROGS = bin/[EMAIL PROTECTED]@ b
 
 BIN_PROGS = $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3) @EXTRA_BIN_PROGS@
 
+EVERYTHING_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ bin/[EMAIL 
PROTECTED]@
+
+EVERYTHING_SBIN = bin/[EMAIL PROTECTED]@ bin/libsmbclient.a
+
 SHLIBS = @SHLIB_PROGS@ @LIBSMBCLIENT@
 
 SCRIPTS = $(srcdir)/script/smbtar $(srcdir)/script/addtosmbpass 
$(srcdir)/script/convert_smbpasswd \
@@ -1131,7 +1135,8 @@ TOPFILES=dynconfig.o dynconfig.po
 
 clean: delheaders python_clean
-rm -f core */*~ *~ */*.o */*.po */*.po32 */[EMAIL PROTECTED]@ \
-   $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(MODULES) $(TORTURE_PROGS) 
.headers.stamp
+   $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(MODULES) $(TORTURE_PROGS) \
+   $(EVERYTHING_PROGS) $(EVERYTHING_SBIN) .headers.stamp
 
 # Making this target will just make sure that the prototype files
 # exist, not necessarily that they are up to date.  Since they're
@@ -1221,7 +1226,7 @@ ctags:
ctags `find $(srcdir) -name "*.[ch]" | grep -v /CVS/`
 
 realclean: clean delheaders
-   -rm -f config.log $(BIN_PROGS) $(MODULES) $(SBIN_PROGS) bin/.dummy 
script/findsmb
+   -rm -f config.log bin/.dummy script/findsmb
 
 distclean: realclean
-rm -f include/stamp-h


Re: Samba on 2 domains?

2003-02-25 Thread Miroslav Zubcic
Richard Sharpe <[EMAIL PROTECTED]> writes:

> On Fri, 21 Feb 2003, Keith Hamilton wrote:
>
>> Hey,
>> 
>>  Is it possible to configure Samba to run as a PDC on 2 domains?
>
> If you run two separate copies of Samba :-)


We are running 6 samba PDCs (2.2.7a) on SUN Ultra 5500 with Solaris 8.
Separate locks/logs/pid dirs and config files. Works fine. ;-)


-- 
The Network is the Filesystem



Re: Bizarre limit alert.

2003-02-25 Thread Conrad Minshall
I don't use ECHO yet, but I debugged much the same symptom on a 
WRITE.  I recall the conclusion was that maximum buffer size includes 
the NB wrapper, but I'd have to revisit the code changed to be sure. 
NT dropping the WRITE had bad consequences of course :(

I've been testing the SMB Echo message and found a very odd thing.

If I send an echo request message to NT4 SP6 with a payload of 4323 bytes
NT4 responds just fine.  If the payload is 4324 bytes NT4 does not reply.
Of interest, the payload of 4323 bytes generates one ECHO Request and two
continuation messages on the (Ethernet) wire.  The ECHO Request and first
continuation message are 1514 bytes in (total) length.  The last
continuation message is 1498 bytes...16 bytes less than 1514.  Hmmm...
I like weird stuff like this.

Chris -)-

PS.  W2K doesn't have the same problem.  I can send an ECHO Request with
 a payload as big as 16611 bytes.  Curiously, at 16612 bytes and above
 W2K will reset the connection.  "Connection reset by peer".
--
Samba Team -- http://www.samba.org/ -)-   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)-   [EMAIL PROTECTED]
OnLineBook -- http://ubiqx.org/cifs/-)-   [EMAIL PROTECTED]
--
--
Conrad Minshall h:408-446-2323 [EMAIL PROTECTED] / w:408-974-2749 [EMAIL PROTECTED]
Sig Humor: This email may or may not be a forgery.  It may or may not have
been modified in transit.  It may or may not represent the opinions of the
alleged author.  There is no such thing as PGP.  Rot13 and DMCA will do ya.


Bizarre limit alert.

2003-02-25 Thread Christopher R. Hertel
I've been testing the SMB Echo message and found a very odd thing.

If I send an echo request message to NT4 SP6 with a payload of 4323 bytes
NT4 responds just fine.  If the payload is 4324 bytes NT4 does not reply.

Of interest, the payload of 4323 bytes generates one ECHO Request and two
continuation messages on the (Ethernet) wire.  The ECHO Request and first
continuation message are 1514 bytes in (total) length.  The last
continuation message is 1498 bytes...16 bytes less than 1514.  Hmmm...

I like weird stuff like this.

Chris -)-

PS.  W2K doesn't have the same problem.  I can send an ECHO Request with
 a payload as big as 16611 bytes.  Curiously, at 16612 bytes and above
 W2K will reset the connection.  "Connection reset by peer".

-- 
Samba Team -- http://www.samba.org/ -)-   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)-   [EMAIL PROTECTED]
OnLineBook -- http://ubiqx.org/cifs/-)-   [EMAIL PROTECTED]