Re: SMB_ROUNDUP

2002-04-09 Thread Jeremy Allison
On Mon, Apr 08, 2002 at 07:12:57PM -0700, Shirish Kalele wrote: Hi, Is there a specific need to roundup the reported allocation size of a file using SMB_ROUNDUP or SMB_ROUNDUP_ALLOCATION? Samba seems to report the allocation size inconsistently: it uses a roundup in some places and

Re: SMB_ROUNDUP

2002-04-09 Thread Jeremy Allison
On Tue, Apr 09, 2002 at 08:00:26AM -0700, Shirish Kalele wrote: But the values we send don't even match up with NTFS allocation values. So what does getting it right mean? Doing what NT does :-). Also, it changes the behaviour of how NT will write into new space. This can be *very* efficient.

Re: FCNTL on Solaris

2002-04-22 Thread Jeremy Allison
On Mon, Apr 22, 2002 at 01:24:36PM -0400, David Collier-Brown wrote: David Collier-Brown wrote: I haven't looked at the code, but if it uses F_SETLKW you might want to do a trylock first, implemented via F_GETLK or F_SETLK, as this would allow subsequent

Re: Access and Corrupt DB

2002-04-22 Thread Jeremy Allison
On Mon, Apr 22, 2002 at 11:47:42AM -0400, William Jojo wrote: I'm posting this again. Jeremy, this seems very bad. We are running AIX 4.3.3 with 2.2.4-pre AND 5.1.0 with 2.2.4-pre. The problem is when you reopen a table you just created, MS-Access hurls and indicates the Visual

Re: Cannot rename dir from win2k with last cvs version

2002-04-23 Thread Jeremy Allison
On Tue, Apr 23, 2002 at 02:27:36PM +0200, Andreas Moroder wrote: Hello, I installed the cvs version from last friday. If a user on a win2k workstation tries to rename a directory in a samba share, he gets a error message. He can delete this directory or even create new ones. On a win98

Re: Problem with current 2.2.4-pre

2002-04-23 Thread Jeremy Allison
On Tue, Apr 23, 2002 at 07:11:41PM +0200, Beschorner Daniel wrote: Hi, if 2.2.4 is really at horizon, this bug in current CVS should be fixed. [2002/04/23 17:01:13, 0] smbd/open.c:open_file(179) Error doing fstat on open file kuhnert/NTUSER.DAT.tmp (No such file or directory)

Re: Access and Corrupt DB

2002-04-23 Thread Jeremy Allison
On Mon, Apr 22, 2002 at 02:02:05PM -0400, William Jojo wrote: It would be from [homes] h:\db#.mdb where # is the attempt number that we did at that time...are you checking the 222 and 223a versions of the logs? Yes, I'm looking at both these logs. The only difference I can see is

Re: [Samba] WinNT offline file attribute

2002-04-25 Thread Jeremy Allison
On Wed, Apr 24, 2002 at 07:47:29PM -0700, Shirish Kalele wrote: Jerry, csc policy is for client-side offline caching. I think Damir is looking for Samba to support files offlined by storage managers like HSM. Both are called offline files. One of the reasons the csc policy parameter was so

Re: Too Many Open Files on 2.2.4???

2002-05-14 Thread Jeremy Allison
On Tue, May 14, 2002 at 09:54:21AM +0930, Tristan Ball wrote: Guys, I'm getting the following in some of my logs: [2002/05/14 08:36:21, 0] lib/debug.c:reopen_logs(349) Unable to open new log file /var/log/samba/log.dancer: Too many open files [2002/05/14 08:36:21, 0]

Re: Buglist to fix before 2.2.5

2002-05-17 Thread Jeremy Allison
On Fri, May 17, 2002 at 01:25:52PM -0300, Ariel Mella wrote: i know that is part of the samba distribution but is away of the samba team but, could you include the recycle bin vfs module? Yes, we should add that to the rpms I think. Jeremy.

Re: Solaris and Samba Record Locking

2002-05-20 Thread Jeremy Allison
On Mon, May 20, 2002 at 01:19:31AM -0700, Anjaneya Sastry wrote: Hello Everybody, Can you help ? Our application is in RMCOBOL. We use Rmcobol Index files. These are located in Solaris 2.8. Using Samba 2.2 we created a share and accessing the directory from windows. From windows

Re: Proposed code cleanup

2002-05-22 Thread Jeremy Allison
On Thu, May 23, 2002 at 01:01:05AM +1000, Andrew Bartlett wrote: (I was going to commit this, but decided that I should get some comment first) More code cleanup - this lot a bit more dodgy than the last: The aim is to trim pwd_cache down to size. Its overly complex, and a pain to

Sun finally ships Samba as standard on Solaris 9

2002-05-22 Thread Jeremy Allison
Well you won't find them shouting about it, but if you dig down in their web pages on Solaris 9 you'll find this : Common Linux applications, such as Samba, Apache, Linux (GNU) commands, etc., are included in the Solaris 9 Operating Environment. The Solaris Software Companion CD has an even more

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-23 Thread Jeremy Allison
On Thu, May 23, 2002 at 02:56:05PM -0400, Richard Bollinger wrote: Much thanks and praises to whomever diagnosed and fixed the timing problems with linux 2.0 and oplocks. On one busy 2.0.38 server, I had seen consistent oplock timeouts... especially when running an executable DOS program

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-23 Thread Jeremy Allison
On Thu, May 23, 2002 at 03:18:04PM -0400, Richard Bollinger wrote: I only ran a quick functionality test ... a very old version of Netbench (2.10). It always hung for 30 seconds when starting netbench.exe... until the oplock timed out. Seems fine now. Great ! Thanks - good news. This will

Re: zero size of mapped drives on samba2.2.4 with quotas

2002-05-23 Thread Jeremy Allison
On Thu, May 23, 2002 at 10:39:45PM +0400, Michail Vidiassov wrote: Dear Guru, I am running samba 2.2.4 on FreeBSD 4.5 The size of mapped drives with quota enabled is always shown as 0 by W2k. There was no such problem with samba 2.2.3a. As far as I undestand, th esource of the problem

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-24 Thread Jeremy Allison
On Fri, May 24, 2002 at 10:00:43AM -0400, Richard Bollinger wrote: How embarassing... still apparently broken / inconsistent :-( Client is win98 4.10.1998. [2002/05/24 08:36:40, 0] smbd/server.c:main(707) smbd version 2.2.5-pre started. Copyright Andrew Tridgell and the Samba Team

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-24 Thread Jeremy Allison
On Fri, May 24, 2002 at 02:05:12PM -0400, Richard Bollinger wrote: OK... time for a brain flush and refill... I went back and verified my test conditions and determined that the same failure can be demonstrated with every server platform we own running Samba 2.X with oplocks enabled and

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-24 Thread Jeremy Allison
On Fri, May 24, 2002 at 07:16:07PM -0400, Richard Bollinger wrote: Same exact failure with Linux 2.0.38 Linux 2.2.20 Linux 2.4.18 SunOS 5.6 I'll have to let you know Tuesday if it fails with just any old executable... but I'd expect it would. Well can you send me the

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-24 Thread Jeremy Allison
On Fri, May 24, 2002 at 02:05:12PM -0400, Richard Bollinger wrote: OK... time for a brain flush and refill... I went back and verified my test conditions and determined that the same failure can be demonstrated with every server platform we own running Samba 2.X with oplocks enabled and

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-24 Thread Jeremy Allison
On Fri, May 24, 2002 at 10:26:00PM -0400, Richard Bollinger wrote: Right... or if it times out because of the dead time setting... so it's shouldn't be that rare in the wild. I have a feeling that a lot of folks just disable oplocks to avoid the troubles. My test at work showed that the

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-25 Thread Jeremy Allison
On Fri, May 24, 2002 at 10:26:00PM -0400, Richard Bollinger wrote: Right... or if it times out because of the dead time setting... so it's shouldn't be that rare in the wild. I have a feeling that a lot of folks just disable oplocks to avoid the troubles. My test at work showed that the

Re: Microsoft's Dfs

2002-05-29 Thread Jeremy Allison
On Thu, May 30, 2002 at 06:06:52AM +0930, Richard Sharpe wrote: Has it been checked on FreeBSD? If not, if you give me the source, I will check it for you. It is GPL code. I don't think it can be used in the FreeBSD kernel (correct me if I'm wrong Steve). Jeremy.

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-29 Thread Jeremy Allison
On Sat, May 25, 2002 at 02:05:19PM -0700, Jeremy Allison wrote: Well, I've managed to get this to happen to a W2K server too, took me a while though. It's definately a client bug with the Win9x client, but we seem to trigger it all the time whereas Win2k seems to trigger it sometimes

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-29 Thread Jeremy Allison
On Wed, May 29, 2002 at 05:09:00PM -0400, Richard Bollinger wrote: Stoping the server service is a very unusual step. Disconnecting an individual connection, possibly via idle timeout, is not so unusual and I don't see the same behaviour with W2K server vs Samba. Something else must be

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-29 Thread Jeremy Allison
On Thu, May 30, 2002 at 08:10:22AM +1000, Andrew Bartlett wrote: Isn't there a way we can 'idle' the connection by tearing down the protocol? Actually issuing a 'you are idle, shutting down' to the client? Nope - would require a client change I'm afraid. There's nothing in the protocol

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-29 Thread Jeremy Allison
On Wed, May 29, 2002 at 04:48:27PM -0700, [EMAIL PROTECTED] wrote: And are you saying that Win2k will never 'idle' a client connection? I'm sure I've seen smbfs being 'idled' by NT before... I don't think it ever drops the TCP connection on purpose. Jeremy.

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-05-30 Thread Jeremy Allison
On Thu, May 30, 2002 at 09:35:38AM +0200, Volker Lendecke wrote: On Wed, May 29, 2002 at 04:55:20PM -0700, Jeremy Allison wrote: On Wed, May 29, 2002 at 04:48:27PM -0700, [EMAIL PROTECTED] wrote: And are you saying that Win2k will never 'idle' a client connection? I'm sure I've seen

Re: [PATCH] Clean up samba-3.0 for POSIX-96

2002-05-31 Thread Jeremy Allison
On Fri, May 31, 2002 at 06:47:00PM -0400, [EMAIL PROTECTED] wrote: The attached set of patches cleans up samba-3.0-alpha17 for systems such as Stratus VOS that implement POSIX-1996 but do not provide full Unix compatibility. I would be most grateful if this patch could be applied against

Re: Thanks for fixing oplock.c for Linux 2.0 in 2_2 CVS

2002-06-01 Thread Jeremy Allison
On Fri, May 31, 2002 at 05:50:58PM -0700, Matt Seitz wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] The only thing would be to completely disallow connection timeouts for Win9x clients - I'm not sure this is what we want. Perhaps timeouts could be prevented for a 9x client

Re: [PATCH] Clean up samba-2.2 for POSIX-96

2002-06-03 Thread Jeremy Allison
On Sat, Jun 01, 2002 at 02:52:00PM -0400, [EMAIL PROTECTED] wrote: At Jeremy's request, here is a version of the POSIX-96 cleanup patches for the Samba 2.2 branch. Applied, thanks ! Jeremy.

Re: Access control to SAM / _samr_query_sec_obj

2002-06-05 Thread Jeremy Allison
On Wed, Jun 05, 2002 at 07:51:53PM +0200, Kai Krueger wrote: This is the first version of the patch to implement access control to SAM. It implements checks of the desired access in all open functions (those that create handles) against the appropriate default SDs of the previous patch and

Re: known BUG multi-byte character set in usernames

2002-06-05 Thread Jeremy Allison
On Sun, Jun 02, 2002 at 07:44:02PM +0200, Juergen Hasch wrote: Hi Jerry, Am Sonntag, 2. Juni 2002 03:15 schrieb Gerald Carter: On Fri, 31 May 2002, Juergen Hasch wrote: Now I never would have brought this up because I don't care to much for 2.2 and I was just curious when I made the

Re: known BUG multi-byte character set in usernames

2002-06-05 Thread Jeremy Allison
On Thu, Jun 06, 2002 at 12:12:45AM +0200, Juergen Hasch wrote: the patch works fine for except for one thing. In the acl security selection list (showing a list of all available users and groups) the german umlaut characters are wrong. This is because the unix charset is sent to the

Re: known BUG multi-byte character set in usernames

2002-06-06 Thread Jeremy Allison
On Thu, Jun 06, 2002 at 09:03:05PM +0200, Juergen Hasch wrote: The conversion in srv_samr_nt.c is needed to show the correct group list in the ACL-add dialogue. The conversion in lsa_srv_nt.c is needed to set a new ACL entry in unix codepage after selecting it from the list. The change in

Re: Samba 2_2 CVS w/ Linux 2.4.18 Oplock Hangup... Help!

2002-06-06 Thread Jeremy Allison
On Thu, Jun 06, 2002 at 03:39:59PM -0400, Richard Bollinger wrote: Test scenerio: Server: Samba 2_2 CVS as of morning of 6/4/2002. Linux 2.4.18 ext2 file system. AMD Athlon processor. On PC... net use f: \\server\share type hi.txt On Server... smbstatusshows

Re: Problem copying files from Win2k Novell client to Samba (repost)

2002-06-06 Thread Jeremy Allison
On Thu, Jun 06, 2002 at 12:40:46PM -0400, Dan Barrett wrote: The problem I reported would occur with Samba 2.2.4, but not 2.2.2. set_sd() in 2.2.4 returns False if the sd_len passed by the client is 0. This would be okay, except Novell clients apparently set sd_len=0. To fix the novell

Re: Problem copying files from Win2k Novell client to Samba (repost)

2002-06-07 Thread Jeremy Allison
On Fri, Jun 07, 2002 at 09:36:12AM -0400, Dan Barrett wrote: Jeremy, I only observed sd_len==0 from our Novell clietn for NT_TRANSACT_CREATE. My first attempt at a fix was in call_nt_transact_create(), and it worked for my problem. So NT_TRANSACT_CREATE was the sd_len==0 for our

Re: 2.2.5pre1: unlink design flaw

2002-06-13 Thread Jeremy Allison
On Thu, Jun 13, 2002 at 08:28:08PM +0200, Simo Sorce wrote: I can't remember just now, but can you rename it while open? Under POSIX, yes. If you can, then you may rename the file on unlink to a very rare name and then delete oin close(). This is what NFS does. I have no idea what

Re: passdb TODO list

2002-06-14 Thread Jeremy Allison
On Fri, Jun 14, 2002 at 05:02:58PM +0300, Toomas Soome wrote: I cave an question regarding to pdb_ interface. in 2.2 pdb_nisplus code I translated some strings from dos to unix and vice-versa. this translation helped to manage information correctly from windows side and from unix side.

Re: passdb TODO list

2002-06-14 Thread Jeremy Allison
On Sat, Jun 15, 2002 at 12:25:42AM +1000, Andrew Bartlett wrote: Otherwise, all strings are 'unix strings'. But what character set is a unix string ? What if we get an incoming UCS2 string that doesn't map ? We need to use utf8 in all the backends. This is a good chance to fix this mess

SMB signing.

2002-06-18 Thread Jeremy Allison
to be expected I guess :-) :-). I'd appreciate any data points from people actually running with this turned on. Thanks, Jeremy Allison, Samba Team.

Re: Winbind problem or my problem:)

2002-06-20 Thread Jeremy Allison
On Thu, Jun 20, 2002 at 12:28:18PM -0500, Esh, Andrew wrote: Suggest the following fix: Index: winbindd_rpc.c === RCS file: /cvsroot/samba/source/nsswitch/winbindd_rpc.c,v retrieving revision 1.22.2.7 diff -u -c

Re: Some additional questions about benchmarking CIFS servers

2002-06-21 Thread Jeremy Allison
On Sat, Jun 22, 2002 at 02:25:41AM +0930, Richard Sharpe wrote: To what extent do people feel that these are relevant to a CIFS benchmark, and what other areas have I missed. Well in defense of NetBench (I can't believe I'm saying this :-) it doesn't attempt to give full coverage of SMB,

Re: advice for quick hack on _old_ code?

2002-06-21 Thread Jeremy Allison
On Fri, Jun 21, 2002 at 01:47:04PM -0700, Ben Johnson wrote: As far as I know we do publish the open source code we use. I don't know where or how it is published, but there is so much open source code in it that I can't imagine we'd make that kind of mistake. It's build around a Linux

Re: VFS on 2.2.5 and FreeBSD -stable

2002-06-26 Thread Jeremy Allison
On Wed, Jun 26, 2002 at 11:53:59AM -0500, David W. Chapman Jr. wrote: Some users are reported as getting these errors in the logs when using samba 2.2.5 and the recycle bin on FreeBSD, any ideas? http://www.freebsd.org/cgi/query-pr.cgi?pr=39850 smbd must be compiled so that it is exporting

Re: FW: samba woes

2002-06-26 Thread Jeremy Allison
On Wed, Jun 26, 2002 at 01:43:54PM -0400, Johnston, Christopher (DCSA) wrote: Quote from Redhat: Hi, I have an update on your issue! A direct quote from engineering on your issue: As I understand it, smbsh can not work on the recent glibc versions as they no longer support the

Re: [Samba] RE: FW: samba woes

2002-06-26 Thread Jeremy Allison
On Wed, Jun 26, 2002 at 02:06:39PM -0400, Johnston, Christopher (DCSA) wrote: Jeremy, Thanks.. is there a fix for this sometime in the future? or is this something that has to do with GLIBC not allowing these symbols or functions to be used anymore? It is a GLIBC issue as far as I'm aware.

Re: [Samba] RE: FW: samba woes

2002-06-26 Thread Jeremy Allison
On Wed, Jun 26, 2002 at 02:25:56PM -0400, Johnston, Christopher (DCSA) wrote: That stinks.. so smbsh is pretty much usueless at this point unless those symbols get put back into glibc.. On Linux, yes. It still works on Solaris I think. Jeremy.

Re: [Samba] RE: FW: samba woes

2002-06-26 Thread Jeremy Allison
On Wed, Jun 26, 2002 at 01:30:03PM -0500, Steve Langasek wrote: Dave C-B has previously posted here details of an smbsh redesign that would allow preloading of libsmbwrapper.so to work under Linux in spite of the glibc changes. In fact, it would work better, as his design doesn't require

Re: [Samba] RE: FW: samba woes

2002-06-26 Thread Jeremy Allison
On Wed, Jun 26, 2002 at 02:30:44PM -0400, Johnston, Christopher (DCSA) wrote: Yea we have it working on Solaris 2.8 with no problems at all.. just need it on Linux.. since that is the big push from management.. Since I got you hot on this email.. winbindd.. has there been any plans in to

Re: VFS on 2.2.5 and FreeBSD -stable

2002-06-26 Thread Jeremy Allison
On Wed, Jun 26, 2002 at 05:57:24PM -0500, Christopher R. Hertel wrote: Jeremy Allison wrote: : Oh don't tell me we've run into the *BSD of the month club :-). Thank goodness Slackware and Debian and Mandrake and SuSE and RedHat and Caldera and Redmond and Trinux and Yellowdog are all

Re: [Security Problem] --with-tdbsam

2002-07-01 Thread Jeremy Allison
On Mon, Jul 01, 2002 at 09:39:46PM +0900, Yasuma Takeda wrote: In Samba-JP, buffer overflow problem was reported. If samba is configured with --with-tdbsam, init_sam_from_buffer function contains a buffer overflow vulnerability. In a certain case, user can use this vulnerability by

Re: [Security Problem] --with-tdbsam

2002-07-01 Thread Jeremy Allison
On Mon, Jul 01, 2002 at 02:08:03PM -0700, Jeremy Allison wrote: Can you send more details please to [EMAIL PROTECTED], and CC: [EMAIL PROTECTED] I don't immediately see the problem this patch is fixing and need to understand it before I can apply it. Never mind - I see the problem now

Re: patch for lpq output parsing for LPRng

2002-07-08 Thread Jeremy Allison
On Mon, Jul 08, 2002 at 04:26:26PM +0800, James Henstridge wrote: [please keep me in the CC line for replies, as I am not subscribed to this list] Since upgrading one of our servers that handles a number of print queues to Red Hat 7.3, I started getting complaints about jobs not getting

Re: Auditing with VFS

2002-07-09 Thread Jeremy Allison
On Tue, Jul 09, 2002 at 05:07:30PM +0100, Daniel Niasoff wrote: When auditing with VFS the pathname recorded is only the relative path for the share not the the full path all the way from root. Are there any plans to change this as I want to use auditing as a method of backing up (i:e:

Re: [Draft #2] Samba 3.0 roadmap...idmap storage central idmap repository

2002-07-09 Thread Jeremy Allison
On Tue, Jul 09, 2002 at 03:32:50PM -0400, Michael Sweet wrote: In addition, no matter what Unicode representation is used, you still have to deal with different representations of the same character (is it a single character a with an umlat, or a plus a combining umlat character?, etc.)

Re: Draft of branch maintainence and release plans....

2002-07-10 Thread Jeremy Allison
On Wed, Jul 10, 2002 at 03:41:36PM -0400, ZINKEVICIUS,MATT (HP-Loveland,ex1) wrote: Yep, that's my code. I had been working with Jeremy to get this integrated but we hit a legal issue. It was recently overcome though he probably doesn't know it yet :-) No I didn't ! Tell me more please ! :-).

Re: How does Samba Solve this problem?

2002-07-22 Thread Jeremy Allison
On Mon, Jul 22, 2002 at 02:48:48PM +0800, [EMAIL PROTECTED] wrote: As we know, in linux, there's no the concept of DENY MODE. In M$ windows, when open a file, you use the API CreateFile (LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES