[Samba] unable to browse samba server with Win98, but it works with WinXP

2006-04-19 Thread Istvan Köpe
Hello,

I have samba-3.0.10-1.4E.6 bundled with CentOS 4.3 x86_64 and I can't
browse it with Win98. I have a very simple setup, Share type, with
access to everyone.
If I double-click on the server name from Win98, I have this message:
\\server is not accessible.  This device does not exist on the
network.
If I type the whole path to the share(ex: \\server\transfer), in
Win98, it works.
In WinXP there is no problem.
In the log of the Win98 client connection I have this:

[2006/04/18 22:52:38, 0] lib/substitute.c:alloc_sub_basic(507)
  alloc_sub_basic: NULL source string!  This should not happen
[2006/04/18 22:52:38, 0] lib/fault.c:fault_report(36)
  ===
[2006/04/18 22:52:38, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 2724 (3.0.10-1.4E.6)
  Please read the appendix Bugs of the Samba HOWTO collection
[2006/04/18 22:52:38, 0] lib/fault.c:fault_report(39)
  ===
[2006/04/18 22:52:38, 0] lib/util.c:smb_panic2(1504)
  PANIC: internal error
[2006/04/18 22:52:38, 0] lib/util.c:smb_panic2(1512)
  BACKTRACE: 14 stack frames:
   #0 smbd(smb_panic2+0x6e) [0x552ac4d6fe]
   #1 smbd [0x552ac3ba01]
   #2 /lib64/tls/libc.so.6 [0x2a96a98380]
   #3 /lib64/tls/libc.so.6(strlen+0x30) [0x2a96ad9ed0]
   #4 smbd(push_ascii+0x39) [0x552ac39a89]
   #5 smbd [0x552ab0f590]
   #6 smbd(api_reply+0x270) [0x552ab14b60]
   #7 smbd(reply_trans+0x5e8) [0x552ab0b008]
   #8 smbd [0x552ab4f691]
   #9 smbd(process_smb+0x18f) [0x552ab4fa7f]
   #10 smbd(smbd_process+0x12c) [0x552ab506ec]
   #11 smbd(main+0x40b) [0x552acbe1db]
   #12 /lib64/tls/libc.so.6(__libc_start_main+0xdb) [0x2a96a864bb]
   #13 smbd [0x552aaf822a]

Do you have any ideas??

10x
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] unable to browse samba server with Win98, but it works with WinXP

2006-04-19 Thread Volker Lendecke
On Wed, Apr 19, 2006 at 10:26:19AM +0300, Istvan Köpe wrote:
 I have samba-3.0.10-1.4E.6 bundled with CentOS 4.3 x86_64 and I can't

Could you try a current version? If it also happens with
3.0.22, please send your smb.conf and a debug level 10 log,
the default does not give enough information.

Volker


pgpg8C7Flg1iT.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] unable to browse samba server with Win98, but it works with WinXP

2006-04-19 Thread Istvan Köpe
Yum for CentOS doesn't upgrade automatically Samba. The question is if
I upgrade manually will it affect the current setup?

On 4/19/06, Volker Lendecke [EMAIL PROTECTED] wrote:
 On Wed, Apr 19, 2006 at 10:26:19AM +0300, Istvan Köpe wrote:
  I have samba-3.0.10-1.4E.6 bundled with CentOS 4.3 x86_64 and I can't

 Could you try a current version? If it also happens with
 3.0.22, please send your smb.conf and a debug level 10 log,
 the default does not give enough information.

 Volker



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] unable to browse samba server with Win98, but it works with WinXP

2006-04-19 Thread Volker Lendecke
On Wed, Apr 19, 2006 at 11:40:56AM +0300, Istvan Köpe wrote:
 Yum for CentOS doesn't upgrade automatically Samba. The question is if
 I upgrade manually will it affect the current setup?

3.0.10 to 3.0.22 is quite a step. Depending on your
config it might affect you. Maybe you try it first with a
test server.

Volker


pgpAiBxCdyMVr.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] adddriver: too many files - string overflow

2006-04-19 Thread Pavel Lisý
Hello,

I need adddriver to samba network printer, but I have problem with too
many driver depend files in it. String with files is 1928 char long

I am receiving this message:

ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver
Windows NT x86 Canon PIXMA iP4000:CN]

this is my attempt:
rpcclient -U 'admin%passwd' -c 'adddriver Windows NT x86 Canon PIXMA
iP4000:CNMDR64.DLL:CNMCP64.DLL:CNMUI64.DLL:CNMMH64.HLP:NULL:NULL:CNMD564.DLL,CNMUR64.DLL,CNMSR64.DLL,CNMIN64.INI,CNMPI64.DLL,CNMSM64.EXE,CNMSS64.SMR,CNMSD64.EXE,CNMSQ64.EXE,CNMSH64.HLP,CNMSH64.CNT,CNMUB64.DLL,CNMOP64.DLL,CNMSB64.DLL,CNMMH64.CNT,CNB_2200.TBL,CNMP064.DAT,CNMP164.DAT,CNMP264.DAT,CNMFU64.DLL,CNMPV64.EXE,CNMPH64.HLP,CNMPH64.CNT,CNMW364.DLL,CNMUR640.405,CNMSR640.405,CNMMH640.405,CNMMT640.405,CNMSH640.405,CNMST640.405,CNMPH640.405,CNMPT640.405,CNMUR640.407,CNMSR640.407,CNMMH640.407,CNMMT640.407,CNMSH640.407,CNMST640.407,CNMPH640.407,CNMPT640.407,CNMUR640.406,CNMSR640.406,CNMMH640.406,CNMMT640.406,CNMSH640.406,CNMST640.406,CNMPH640.406,CNMPT640.406,CNMUR640.c0a,CNMSR640.c0a,CNMMH640.c0a,CNMMT640.c0a,CNMSH640.c0a,CNMST640.c0a,CNMPH640.c0a,CNMPT640.c0a,CNMUR640.40b,CNMSR640.40b,CNMMH640.40b,CNMMT640.40b,CNMSH640.40b,CNMST640.40b,CNMPH640.40b,CNMPT640.40b,CNMUR640.40c,CNMSR640.40c,CNMMH640.40c,CNMMT640.40c,CNMSH640.40c,CNMST640.40c,CNMPH640.40c,CNMPT640.40c,CNMUR640.408,CNMSR640.408,CNMMH640.408,CNMMT640.408,CNMSH640.408,CNMST640.408,CNMPH640.408,CNMPT640.408,CNMUR640.40e,CNMSR640.40e,CNMMH640.40e,CNMMT640.40e,CNMSH640.40e,CNMST640.40e,CNMPH640.40e,CNMPT640.40e,CNMUR640.410,CNMSR640.410,CNMMH640.410,CNMMT640.410,CNMSH640.410,CNMST640.410,CNMPH640.410,CNMPT640.410,CNMUR640.413,CNMSR640.413,CNMMH640.413,CNMMT640.413,CNMSH640.413,CNMST640.413,CNMPH640.413,CNMPT640.413,CNMUR640.414,CNMSR640.414,CNMMH640.414,CNMMT640.414,CNMSH640.414,CNMST640.414,CNMPH640.414,CNMPT640.414,CNMUR640.415,CNMSR640.415,CNMMH640.415,CNMMT640.415,CNMSH640.415,CNMST640.415,CNMPH640.415,CNMPT640.415,CNMUR640.816,CNMSR640.816,CNMMH640.816,CNMMT640.816,CNMSH640.816,CNMST640.816,CNMPH640.816,CNMPT640.816,CNMUR640.419,CNMSR640.419,CNMMH640.419,CNMMT640.419,CNMSH640.419,CNMST640.419,CNMPH640.419,CNMPT640.419,CNMUR640.41d,CNMSR640.41d,CNMMH640.41d,CNMMT640.41d,CNMSH640.41d,CNMST640.41d,CNMPH640.41d,CNMPT640.41d'
 printserver

Can I solve it somehow? Is it possible divide command to two parts?

Pavel

-- 
Pavel Lisý [EMAIL PROTECTED]
T-MAPY spol. s r.o.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] unable to browse samba server with Win98, but it works with WinXP

2006-04-19 Thread Istvan Köpe
I consulted the CentOS support and they don't recommend the upgrade.
Do you have any suggestion to solve this problem with this version?

Here is my smb.conf:
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2006/04/18 14:30:00

# Global parameters
[global]
workgroup = HIDRAULICA
server string = Server
security = SHARE
password server = None
guest account = smbguest
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
path = /data/samba
read only = No
guest ok = Yes
cups options = raw

[server]

[mb]
path = /data/mb


On 4/19/06, Volker Lendecke [EMAIL PROTECTED] wrote:
 On Wed, Apr 19, 2006 at 11:40:56AM +0300, Istvan Köpe wrote:
  Yum for CentOS doesn't upgrade automatically Samba. The question is if
  I upgrade manually will it affect the current setup?

 3.0.10 to 3.0.22 is quite a step. Depending on your
 config it might affect you. Maybe you try it first with a
 test server.

 Volker



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] unable to browse samba server with Win98, but it works with WinXP

2006-04-19 Thread Volker Lendecke
On Wed, Apr 19, 2006 at 01:38:27PM +0300, Istvan Köpe wrote:
 I consulted the CentOS support and they don't recommend the upgrade.
 Do you have any suggestion to solve this problem with this version?

No, not really. If CentOS does not recomment the update, I
would suggest that you ask them for support how to solve
this. They have the build environment to get you fixed
packages easily.

Volker


pgpx8uKp4azgK.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] unable to browse samba server with Win98, but it works with WinXP

2006-04-19 Thread Georgi Sotirov
Are you restart smbd and nmbd after make changes in the smb.conf ?
I have same problem under Fedora C3 and Samba version 3.0.10-1.fc3,
when I start for first time samba with default smb.conf.
(I don't  used samba service before on this computer).
Then I make same changes:
#vi /etc/samba/smb.conf
and expecting that service shares will work without restart the smbd
and nmbd (/etc/init.d/smb restart).
Because
#testparm
parse the shares and parameters of smb.conf without warnings.
I test locally with
#smbclient -L localhost
But shares is not shown in the output, only smbclient said that
Samba is running.
After I manually restart the demon smbd and nmbd, then the shares
starts working!!!

I hope this help.

On 4/19/06, Istvan Köpe [EMAIL PROTECTED] wrote:
 Hello,

 I have samba-3.0.10-1.4E.6 bundled with CentOS 4.3 x86_64 and I can't
 browse it with Win98. I have a very simple setup, Share type, with
 access to everyone.
 If I double-click on the server name from Win98, I have this message:
 \\server is not accessible.  This device does not exist on the
 network.
 If I type the whole path to the share(ex: \\server\transfer), in
 Win98, it works.
 In WinXP there is no problem.
 In the log of the Win98 client connection I have this:

 [2006/04/18 22:52:38, 0] lib/substitute.c:alloc_sub_basic(507)
   alloc_sub_basic: NULL source string!  This should not happen
 [2006/04/18 22:52:38, 0] lib/fault.c:fault_report(36)
   ===
 [2006/04/18 22:52:38, 0] lib/fault.c:fault_report(37)
   INTERNAL ERROR: Signal 11 in pid 2724 (3.0.10-1.4E.6)
   Please read the appendix Bugs of the Samba HOWTO collection
 [2006/04/18 22:52:38, 0] lib/fault.c:fault_report(39)
   ===
 [2006/04/18 22:52:38, 0] lib/util.c:smb_panic2(1504)
   PANIC: internal error
 [2006/04/18 22:52:38, 0] lib/util.c:smb_panic2(1512)
   BACKTRACE: 14 stack frames:
#0 smbd(smb_panic2+0x6e) [0x552ac4d6fe]
#1 smbd [0x552ac3ba01]
#2 /lib64/tls/libc.so.6 [0x2a96a98380]
#3 /lib64/tls/libc.so.6(strlen+0x30) [0x2a96ad9ed0]
#4 smbd(push_ascii+0x39) [0x552ac39a89]
#5 smbd [0x552ab0f590]
#6 smbd(api_reply+0x270) [0x552ab14b60]
#7 smbd(reply_trans+0x5e8) [0x552ab0b008]
#8 smbd [0x552ab4f691]
#9 smbd(process_smb+0x18f) [0x552ab4fa7f]
#10 smbd(smbd_process+0x12c) [0x552ab506ec]
#11 smbd(main+0x40b) [0x552acbe1db]
#12 /lib64/tls/libc.so.6(__libc_start_main+0xdb) [0x2a96a864bb]
#13 smbd [0x552aaf822a]

 Do you have any ideas??

 10x
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba



--
d[(-_-)]b~~~
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Cross-compiling failed for sh4 platform

2006-04-19 Thread André Goddard Rosa
When trying to compile samba 3.0.22 for the sh4 platform I got the
following error:

checking for open64... yes
checking for _open64... no
checking for __open64... yes
checking for creat64... yes
checking for prctl... yes
configure: error: cannot run test program while cross compiling
See `config.log' for more details.

In config.log I found the following error:

configure:19052: checking for _open64
configure:19109:
/usr/local/linkstation/gcc-3.4.4-glibc-2.3.5/mipsel-hdhlan-linux/bin/mipsel-hdhlan-linux-gcc
-o conftest -O -D_SAMBA_BUILD_
conftest.c -lnsl -ldl  5
/tmp/ccaUm9zZ.o(.text+0x18): In function `main':
: undefined reference to `_open64'
/tmp/ccaUm9zZ.o(.data.rel+0x0): undefined reference to `_open64'
collect2: ld returned 1 exit status
configure:19115: $? = 1
configure: failed program was:

Can someone help me? I have to integrate this on a build environment on x86.
I could run configure directly on the  sh4 platform.

Thanks in advance,
André
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba slow

2006-04-19 Thread Philippe Bastin
I have a Windows NT 4 domain on Windows servers.

I have no problems with my old Samba 2.x.

With my 2 Samba 3.x servers, I see that after some hours/days, the access to 
the Samba shares becomes very slow.

All my Samba servers runs Winbind to map Windows users on my Linux server.

I have Suse Enterprise 9 and Mandrake 10.1 distributions.

I have disable IPV6, but no changes.

Is someone having a idea where to investigate?

Philippe

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] adddriver: too many files - string overflow

2006-04-19 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pavel Lisý wrote:

 I need adddriver to samba network printer, but I 
 have problem with too many driver depend files
 in it. String with files is 1928 char long
 
 I am receiving this message:
 
 ERROR: string overflow by 1 (1024 - 1023) in 
 safe_strcpy [adddriver Windows NT x86 Canon
 PIXMA iP4000:CN]
...
 Can I solve it somehow? Is it possible divide command 
 to two parts?

Upload the driver from a Windows client.





cheers, jerry
=
I live in a Reply-to-All world.   ---
Samba--- http://www.samba.org
Centeris ---  http://www.centeris.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFERjG9IR7qMdg1EfYRApgMAJ9Or+dar/4qWHg/zavuYfyJWxvzNQCfRBME
L0yN3ls7GIhkHcQZqrE4LNM=
=NipB
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Joining Samba to ADS domain (win2k3)

2006-04-19 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charles Guest wrote:

 [2006/04/18 12:02:15, 0] libads/ldap.c:ads_add_machine_acct(1414)
   ads_add_machine_acct: Host account for mainproxy already exists -
 modifying old account
 Using short domain name -- DOMAIN
 Joined 'TESTSERV' to realm 'DOMAIN'
 *** glibc detected *** net: free(): invalid pointer: 0x00cca7f0 ***
 === Backtrace: =
 /lib/libc.so.6[0x1da424]
 /lib/libc.so.6(__libc_free+0x77)[0x1da95f]
 /lib/libcom_err.so.2(remove_error_table+0x4b)[0x13eabb]
 /usr/lib/libkrb5.so.3[0xc68823]
 /usr/lib/libkrb5.so.3[0xc685c7]
 /usr/lib/libkrb5.so.3[0xcb93ba]
 /lib/ld-linux.so.2[0x875058]
 /lib/libc.so.6(exit+0xc5)[0x1a1c69]
 /lib/libc.so.6(__libc_start_main+0xce)[0x18bdee]
 net[0x59c091]

Charles,

This is a bug in the e2fsprogs.





cheers, jerry
=
I live in a Reply-to-All world.   ---
Samba--- http://www.samba.org
Centeris ---  http://www.centeris.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFERjIWIR7qMdg1EfYRAnz7AKCUQN7rMmgS3bID22tIyiheECtGOwCePYax
b5KJ/hizj6WZtsUIhz5+qZQ=
=Loau
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] How to map locked user Administrator in AD domain to guest ?

2006-04-19 Thread Buozis, Martynas
 Hello

So maybe somebody can advice if it is possible to configure SAMBA so,
that user Administrator would map to guest even if it is locked in
domain ? Or it is definitely not possible ?

Also it is strange, that without password it is working, while it is not
working when password is specified ! 

# smbclient //smb/admin$ -U Administrator%
Anonymous login successful
Domain=[DOM] OS=[Unix] Server=[Samba 3.0.20]
smb: \ 

# smbclient //smb/admin$ -U Administrator%dummy
session setup failed: NT_STATUS_ACCOUNT_LOCKED_OUT
dfrsec02:~/dumps#

Why second case can't be handled as first one ?


With best regards
Martynas 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Buozis, Martynas
Sent: Tuesday, April 18, 2006 2:30 PM
To: [EMAIL PROTECTED]
Subject: [Samba] How to map locked user Administrator in AD domain to
guest ?

Hello

I have Samba running as AD member. In addition there is a support of
quest user connections to shares, that allow guest connections to
shares, where access is restricted on IP addresses base. 

Problem is, that Administrator is not mapped to guest, because
Administrator in AD domain is locked. Samba gets respond
NT_STATUS_ACCOUNT_LOCKED_OUT and denies connection. While computers,
that are not AD members want use Samba shares that are guest allowed and
can't do that while logged in as Administrator. If Administrator is
unlocked - option map to guest on bad password is working perfect.

Is there a way to say, that user Administrator must be guest even if it
is locked ?


With best regards
Martynas Buozis
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Domains and Windows Update

2006-04-19 Thread Ben Walton
Mike Petersen has created some updated policy templates to work with XP.
These happen to include settings to force auto update and allow you to
use an SUS/WUS server if you've got one.  There are some other nice
settings in there too.  Use that template (optionally in combination
with the winnt.adm and common.adm as shipped with the policy editor for
w2k) to create an NTConfig.pol file.  Drop that in your netlogon share
and away you go.

http://www.pcc-services.com/projects.html

It's working well for me here.

Hope that helps.
-Ben

On Tue, 2006-04-18 at 09:02 -0500, Adam Williams wrote:
 I've got several dozen Windows XP Pro computers in a Samba/Windows 
 Domain.  The problem is that with them being in the domain, automatic 
 updates does not work on these computers.  I think its because the 
 people log into the computers with the default windows domain 
 restrictions (you know, can't install anything, can't adjust the time on 
 the clock, can't update drivers, etc).  Having staff use IE to go to 
 http://windowsupdate.microsoft.com does not work either, due to 
 permissions.  Are there any solutions to this so that automatic updates 
 can run?
 
-- 
Ben Walton
Systems Programmer
Office of Planning  IT
Faculty of Arts  Science
University of Toronto
Cell: 416.407.5610
PGP Key Id: 8E89F6D2


signature.asc
Description: This is a digitally signed message part
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] quota on xfs on lvm doesn't work(?)

2006-04-19 Thread Christoph Peus

Hi,

I have a strange problem with user quotas enabled on a xfs filesystem 
and samba 3.0.21c: When a standard block device (e.g. /dev/sdc1) is used 
for the fs, quota works like expected:


/dev/sdc1 on /mnt/tmp type xfs (rw,usrquota)

output from level quota:10 debug:

[2006/04/19 14:38:48, 10] lib/sysquotas.c:sys_get_quota(394)
  sys_get_quota() uid(4004, 4004)
[2006/04/19 14:38:48, 10] lib/sysquotas_xfs.c:sys_get_xfs_quota(93)
  sys_get_xfs_quota: path[/mnt/tmp] bdev[/dev/sdc1] SMB_USER_QUOTA_TYPE 
uid[4004]

[2006/04/19 14:38:48, 10] lib/sysquotas.c:sys_get_quota(404)
  sys_get_xfs_quota() called for mntpath[/mnt/tmp] bdev[/dev/sdc1] 
qtype[2] id[4004].



But when a logical volume is used for the fs, it doesn't work, and the 
clients windows explorer reports the size of the complete fs instead of 
the users quota:


/dev/export/lvol0 on /mnt/tmp type xfs (rw,usrquota)

output from level quota:10 debug:

[2006/04/19 14:33:57, 10] lib/sysquotas.c:sys_get_quota(394)
  sys_get_quota() uid(4004, 4004)
[2006/04/19 14:33:57, 10] lib/sysquotas_xfs.c:sys_get_xfs_quota(93)
  sys_get_xfs_quota: path[/mnt/tmp] bdev[/dev/export/lvol0] 
SMB_USER_QUOTA_TYPE uid[4004]

[2006/04/19 14:33:57, 3] lib/sysquotas.c:sys_get_quota(401)
  sys_get_xfs_quota() failed for mntpath[/mnt/tmp] 
bdev[/dev/export/lvol0] qtype[2] id[4004]: Permission denied.

[2006/04/19 14:33:57, 10] lib/sysquotas.c:sys_get_quota(394)
  sys_get_quota() uid(4004, 4004)
[2006/04/19 14:33:57, 10] lib/sysquotas_xfs.c:sys_get_xfs_quota(101)
  sys_get_xfs_quota: path[/mnt/tmp] bdev[/dev/export/lvol0] 
SMB_GROUP_QUOTA_TYPE gid[4000]

[2006/04/19 14:33:57, 3] lib/sysquotas.c:sys_get_quota(401)
  sys_get_xfs_quota() failed for mntpath[/mnt/tmp] 
bdev[/dev/export/lvol0] qtype[4] id[4000]: Permission denied.



What may be the cause for this Permission denied message? Permissions 
for /mnt/tmp are 777. Shouldn't samba operate independently of the 
filesystems underlying device?

Thanks for your support!

Christoph

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Reduntant Samba servers?

2006-04-19 Thread Linus Hedström

Hi,

I am trying to setup two redundant Samba Servers.

The file shares are on both servers and needs to be synced.
My best solution is to run an rsync between them every 5 min ?
Are there any smarter solution to this?

Another problem is how I could solve the kerberos authentication in the 
best possible way?

We have a Windows AD server and authenticate through kerberos.

If server1 is down I want to switch to server2 but use the same DNS / 
Computer name because all users have it mapped. It also saves the profiles.


I have tried to set up a DNS alias on the AD server's DNS and my idea 
was that I just could switch the alias to the server I want to use.


But that doesn't work because it is the alias name that tries to 
authenticate to kerberos and I then get: Server not found in Kerberos 
database on the kerberos server.



I hope someone has a smart solution to this?

/
Linus

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] adddriver: too many files - string overflow

2006-04-19 Thread Pavel Lisý
Pavel Lisý píše v St 19. 04. 2006 v 12:31 +0200:
 Hello,
 
 I need adddriver to samba network printer, but I have problem with too
 many driver depend files in it. String with files is 1928 char long
 
 I am receiving this message:
 
 ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver
 Windows NT x86 Canon PIXMA iP4000:CN]
 
 this is my attempt:
 rpcclient -U 'admin%passwd' -c 'adddriver Windows NT x86 Canon PIXMA
 iP4000:CNMDR64.DLL:CNMCP64.DLL:CNMUI64.DLL:CNMMH64.HLP:NULL:NULL:CNMD564.DLL,CNMUR64.DLL,CNMSR64.DLL,CNMIN64.INI,CNMPI64.DLL,CNMSM64.EXE,CNMSS64.SMR,CNMSD64.EXE,CNMSQ64.EXE,CNMSH64.HLP,CNMSH64.CNT,CNMUB64.DLL,CNMOP64.DLL,CNMSB64.DLL,CNMMH64.CNT,CNB_2200.TBL,CNMP064.DAT,CNMP164.DAT,CNMP264.DAT,CNMFU64.DLL,CNMPV64.EXE,CNMPH64.HLP,CNMPH64.CNT,CNMW364.DLL,CNMUR640.405,CNMSR640.405,CNMMH640.405,CNMMT640.405,CNMSH640.405,CNMST640.405,CNMPH640.405,CNMPT640.405,CNMUR640.407,CNMSR640.407,CNMMH640.407,CNMMT640.407,CNMSH640.407,CNMST640.407,CNMPH640.407,CNMPT640.407,CNMUR640.406,CNMSR640.406,CNMMH640.406,CNMMT640.406,CNMSH640.406,CNMST640.406,CNMPH640.406,CNMPT640.406,CNMUR640.c0a,CNMSR640.c0a,CNMMH640.c0a,CNMMT640.c0a,CNMSH640.c0a,CNMST640.c0a,CNMPH640.c0a,CNMPT640.c0a,CNMUR640.40b,CNMSR640.40b,CNMMH640.40b,CNMMT640.40b,CNMSH640.40b,CNMST640.40b,CNMPH640.40b,CNMPT640.40b,CNMUR640.40c,CNMSR640.40c,CNMMH640.40c,CNMMT640.40c,CNMSH640.40c,CNMST640.40c,CNMPH640.40c,CNMPT640.40c,CNMUR640.408,CNMSR640.408,CNMMH640.408,CNMMT640.408,CNMSH640.408,CNMST640.408,CNMPH640.408,CNMPT640.408,CNMUR640.40e,CNMSR640.40e,CNMMH640.40e,CNMMT640.40e,CNMSH640.40e,CNMST640.40e,CNMPH640.40e,CNMPT640.40e,CNMUR640.410,CNMSR640.410,CNMMH640.410,CNMMT640.410,CNMSH640.410,CNMST640.410,CNMPH640.410,CNMPT640.410,CNMUR640.413,CNMSR640.413,CNMMH640.413,CNMMT640.413,CNMSH640.413,CNMST640.413,CNMPH640.413,CNMPT640.413,CNMUR640.414,CNMSR640.414,CNMMH640.414,CNMMT640.414,CNMSH640.414,CNMST640.414,CNMPH640.414,CNMPT640.414,CNMUR640.415,CNMSR640.415,CNMMH640.415,CNMMT640.415,CNMSH640.415,CNMST640.415,CNMPH640.415,CNMPT640.415,CNMUR640.816,CNMSR640.816,CNMMH640.816,CNMMT640.816,CNMSH640.816,CNMST640.816,CNMPH640.816,CNMPT640.816,CNMUR640.419,CNMSR640.419,CNMMH640.419,CNMMT640.419,CNMSH640.419,CNMST640.419,CNMPH640.419,CNMPT640.419,CNMUR640.41d,CNMSR640.41d,CNMMH640.41d,CNMMT640.41d,CNMSH640.41d,CNMST640.41d,CNMPH640.41d,CNMPT640.41d'
  printserver
 
 Can I solve it somehow? Is it possible divide command to two parts?

I have solved it by installation through Printer Wizard from windows.
BTW: it sets much less driver files for download then when I wanted
download it from Win PC with printer attached locally. It is
interesting, isn't?

Pavel
-- 
Pavel Lisý [EMAIL PROTECTED]
T-MAPY spol. s r.o.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Reduntant Samba servers?

2006-04-19 Thread Matt Lung

Linux HA might work for you.

Linus Hedström wrote:

Hi,

I am trying to setup two redundant Samba Servers.

The file shares are on both servers and needs to be synced.
My best solution is to run an rsync between them every 5 min ?
Are there any smarter solution to this?

Another problem is how I could solve the kerberos authentication in 
the best possible way?

We have a Windows AD server and authenticate through kerberos.

If server1 is down I want to switch to server2 but use the same DNS / 
Computer name because all users have it mapped. It also saves the 
profiles.


I have tried to set up a DNS alias on the AD server's DNS and my idea 
was that I just could switch the alias to the server I want to use.


But that doesn't work because it is the alias name that tries to 
authenticate to kerberos and I then get: Server not found in Kerberos 
database on the kerberos server.



I hope someone has a smart solution to this?

/
Linus



--
Matt Lung

Midwest Tool  Die, Corp.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] two domains / shares

2006-04-19 Thread ict
hi, 

i would like to know if its possible to make a share on one domain
available to another, currently we have 2 domains a windows 2000 server
and a samba server both as domain masters, is it possible to make a
share available on the samba server available to windows 2000 server.

basically i would like to make the files available to users of the 2000
server from the samba server, this is part of a migration path and would
make things a lot easier.

i am thinking of moving the content of a couple of the partitions to the
new linux server, but want the contents still accessible to the rest of
the network which has not yet moved across.

any suggestions advice or pointers are helpful :)

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] unable to browse samba server with Win98, but it works with WinXP

2006-04-19 Thread Istvan Köpe
I solved the problem but I didn't know what caused it. Here is the new
smb.conf which works:
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2006/04/18 14:30:00

# Global parameters
[global]
workgroup = HIDRAULICA
server string = Server
security = SHARE
log file = /var/log/samba/%m.log
max log size = 50
read only = No
guest ok = Yes

[server]
path = /data/samba
[mb]
path = /data/mb

I suspect 2 things:
1. path = /data/samba, was in the [global] section, insead of [server] section
2. guest account = smbguest, where smbguest user was created by me.

On 4/19/06, Istvan Köpe [EMAIL PROTECTED] wrote:
 I consulted the CentOS support and they don't recommend the upgrade.
 Do you have any suggestion to solve this problem with this version?

 Here is my smb.conf:
 # Samba config file created using SWAT
 # from 0.0.0.0 (0.0.0.0)
 # Date: 2006/04/18 14:30:00

 # Global parameters
 [global]
 workgroup = HIDRAULICA
 server string = Server
 security = SHARE
 password server = None
 guest account = smbguest
 log file = /var/log/samba/%m.log
 max log size = 50
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 printcap name = /etc/printcap
 dns proxy = No
 idmap uid = 16777216-33554431
 idmap gid = 16777216-33554431
 path = /data/samba
 read only = No
 guest ok = Yes
 cups options = raw

 [server]

 [mb]
 path = /data/mb


 On 4/19/06, Volker Lendecke [EMAIL PROTECTED] wrote:
  On Wed, Apr 19, 2006 at 11:40:56AM +0300, Istvan Köpe wrote:
   Yum for CentOS doesn't upgrade automatically Samba. The question is if
   I upgrade manually will it affect the current setup?
 
  3.0.10 to 3.0.22 is quite a step. Depending on your
  config it might affect you. Maybe you try it first with a
  test server.
 
  Volker
 
 
 

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Reduntant Samba servers?

2006-04-19 Thread Jonas Jochum
Am Mittwoch, 19. April 2006 15:25 schrieb Linus Hedström:
 I am trying to setup two redundant Samba Servers.

 The file shares are on both servers and needs to be synced.
 My best solution is to run an rsync between them every 5 min ?
 Are there any smarter solution to this?

 Another problem is how I could solve the kerberos authentication in the
 best possible way?
 We have a Windows AD server and authenticate through kerberos.

 If server1 is down I want to switch to server2 but use the same DNS /
 Computer name because all users have it mapped. It also saves the profiles.

 I have tried to set up a DNS alias on the AD server's DNS and my idea
 was that I just could switch the alias to the server I want to use.

 But that doesn't work because it is the alias name that tries to
 authenticate to kerberos and I then get: Server not found in Kerberos
 database on the kerberos server.
 I hope someone has a smart solution to this?

drbd and carp. that should imho even work with kerberos. not sure, though :)

HTH,
 Jonas Jochum
 archIT - Faculty of Architecture - University of Karlsruhe


pgpIEF63C3mAE.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

RE: [Samba] Managed to make some progress, stuck again.

2006-04-19 Thread Simon Renshaw
What packages should I look for? All those I listed or a few specifics?

As long as they are for Redhat EL 4, I'll be ok.

I started to look for them but I'm not sure what I need.

(Sorry about that, I'm a Windows guy.)

Simon

-Original Message-
From: Jeremy Allison [mailto:[EMAIL PROTECTED] 
Sent: 18 avril, 2006 19:38
To: Simon Renshaw
Cc: Jeremy Allison; samba@lists.samba.org
Subject: Re: [Samba] Managed to make some progress, stuck again.

On Tue, Apr 18, 2006 at 04:25:50PM -0400, Simon Renshaw wrote:
 OK, I'll try to upgrade it.
 
 I just downloaded MIT Kerberos 1.4.3.
 
 I ran rpm -qa|grep krb and got:
 
 krb5-server-1.3.4-27
 krb5-auth-dialog-0.2-1
 krb5-libs-1.3.4-27
 krbafs-1.2.2-6
 krb5-devel-1.3.4-27
 krbafs-devel-1.2.2-6
 krbafs-utils-1.2.2-6
 krb5-workstation-1.3.4-27
 pam_krb5-2.1.8-1
 
 Should I uninstall everything krb related before compiling 1.4.3?

Look for updated kerberos rpms rather than compiling it
yourself.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

RE: [Samba] Managed to make some progress, stuck again.

2006-04-19 Thread Gautier, B \(Bob\)
I am using those packages with Win2k3 so I guess they support all
necessary enctypes.

Bob G 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]
] On Behalf Of Simon Renshaw
 Sent: 19 April 2006 16:24
 To: Jeremy Allison
 Cc: samba@lists.samba.org
 Subject: RE: [Samba] Managed to make some progress, stuck again.
 
 What packages should I look for? All those I listed or a few 
 specifics?
 
 As long as they are for Redhat EL 4, I'll be ok.
 
 I started to look for them but I'm not sure what I need.
 
 (Sorry about that, I'm a Windows guy.)
 
 Simon
 
 -Original Message-
 From: Jeremy Allison [mailto:[EMAIL PROTECTED]
 Sent: 18 avril, 2006 19:38
 To: Simon Renshaw
 Cc: Jeremy Allison; samba@lists.samba.org
 Subject: Re: [Samba] Managed to make some progress, stuck again.
 
 On Tue, Apr 18, 2006 at 04:25:50PM -0400, Simon Renshaw wrote:
  OK, I'll try to upgrade it.
  
  I just downloaded MIT Kerberos 1.4.3.
  
  I ran rpm -qa|grep krb and got:
  
  krb5-server-1.3.4-27
  krb5-auth-dialog-0.2-1
  krb5-libs-1.3.4-27
  krbafs-1.2.2-6
  krb5-devel-1.3.4-27
  krbafs-devel-1.2.2-6
  krbafs-utils-1.2.2-6
  krb5-workstation-1.3.4-27
  pam_krb5-2.1.8-1
  
  Should I uninstall everything krb related before compiling 1.4.3?
 
 Look for updated kerberos rpms rather than compiling it yourself.
 
 Jeremy.
 
_

This email (including any attachments to it) is confidential, legally 
privileged, subject to copyright and is sent for the personal attention of the 
intended recipient only. If you have received this email in error, please 
advise us immediately and delete it. You are notified that disclosing, copying, 
distributing or taking any action in reliance on the contents of this 
information is strictly prohibited. Although we have taken reasonable 
precautions to ensure no viruses are present in this email, we cannot accept 
responsibility for any loss or damage arising from the viruses in this email or 
attachments. We exclude any liability for the content of this email, or for the 
consequences of any actions taken on the basis of the information provided in 
this email or its attachments, unless that information is subsequently 
confirmed in writing. If this email contains an offer, that should be 
considered as an invitation to treat.
_
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] W2K Domain Users in Samba

2006-04-19 Thread jim_mosbey
Looking for a poniter in the right direction

My current configuration is 
NT4 PDC (Solaris PCnetlink) 
Samba Member server (Solaris 9 Samba ver 3.0.20b)for file and print 
sharing
WinXp Pro Clients SP2

My problem is with the Domain Users. I am able to share out file systems 
to the XP clients from my Samba server OK. I am also able to modify the 
permissions for the files in the share in Solaris using the chmod, chgrp 
and chown. This seems to work OK. When I am on the WinXp client and I look 
at the security permissions tab on the folder properties that I own, I 
cannot see the NT4 Domain Users, all I see are the \\localmachine\user 
when what I want is the  \\domain\user. When I try to add a domain user in 
the secrutiy properties page I see the domain and the list of users but 
when I select a user or group and select add it does not add it to the 
folder properties. I am new to Samba -- am I missing some simple 
configuration parameter or is this how it is suppose to work.

alb-smb(test)# ./testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section [printers]
Processing section [R]
Processing section [logs]
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions

[global]
workgroup = TESTDOM
server string = %h - Samba Server %v
security = DOMAIN
password server = test-net
log level = 4
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
wins server = 10.0.0.1

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[R]
comment = R Drive
path = /share/R
public = yes
writable = yes
create mask = 0755
guest ok = Yes
nt acl support = true

[logs]
comment = Testing logs
path = /share/logs
public = yes
writable = yes
create mask = 0755
guest ok = Yes



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Sysprep Samba

2006-04-19 Thread msmith
Hi,

I'm using Samba version 3.0.14a-r2 on Gentoo Linux as a PDC for a
classroom environment. The server and the classroom are in different
subnets, but on the same local LAN. The broadcast messages are not
forwarded, so I have enabled a single machine in the classroom subnet to
act as a WINS proxy. I am using Ghost to image the classroom machines
which uses sysprep to prepare the image-rollout. I have my sysprep.inf
setup so it will prompt for a computer name and then automatically join
our domain. When mini-setup attempts to join the domain, it gives me an
error message saying The user name could not be found. Would you like to
proceed for now and try joining a domain later? In my Samba logs
directory I can see it trying to add a workstation user with the original
computer name of the sysprep'd computer:

[2006/04/19 11:43:16, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2324)
  _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
'mmb9-m21'' gave 9
[2006/04/19 11:43:28, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2324)
  _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
'mmb9-m21'' gave 9
[2006/04/19 11:43:40, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2324)
  _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
'mmb9-m21'' gave 9
[2006/04/19 11:43:52, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2324)
  _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w
'mmb9-m21'' gave 9

I tried removing the mmb9-m21$ user with smbldap-userdel, and then allow
sysprep to attempt again. This time it adds the workstation under the
original name, but it continues to give the above messages and displays
the same error message in mini-setup on the workstation. The workstation
that is being imaged/sysprep'd is Windows XP Professional w/ SP2.

Ultimately I would like to make sysprep use the new computer name and
automatically join the domain with that new computer name.

Please let me know if you need any additional information.

Thank you for your time.


--Marc

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] W2K Domain Users in Samba

2006-04-19 Thread Travis Bullock
You will want to bring yourself up to speed on winbind I think. This is what
I use to allow Domain membership accounts to be added to my Samba shares. Is
your NT4 PDC a true Microsoft PDC machine? If so then winbind should work
fine, but I noticed you had Solaris beside your NT4 PDC listing so if that
is the case then I am not sure what you will need to do.

If it is a Windows NT4 PDC though, winbind will solve all your problems.

Cheers,

Travis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: April 19, 2006 10:26 AM
To: samba@lists.samba.org
Subject: [Samba] W2K Domain Users in Samba

Looking for a poniter in the right direction

My current configuration is 
NT4 PDC (Solaris PCnetlink) 
Samba Member server (Solaris 9 Samba ver 3.0.20b)for file and print 
sharing
WinXp Pro Clients SP2

My problem is with the Domain Users. I am able to share out file systems 
to the XP clients from my Samba server OK. I am also able to modify the 
permissions for the files in the share in Solaris using the chmod, chgrp 
and chown. This seems to work OK. When I am on the WinXp client and I look 
at the security permissions tab on the folder properties that I own, I 
cannot see the NT4 Domain Users, all I see are the \\localmachine\user 
when what I want is the  \\domain\user. When I try to add a domain user in 
the secrutiy properties page I see the domain and the list of users but 
when I select a user or group and select add it does not add it to the 
folder properties. I am new to Samba -- am I missing some simple 
configuration parameter or is this how it is suppose to work.

alb-smb(test)# ./testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section [printers]
Processing section [R]
Processing section [logs]
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions

[global]
workgroup = TESTDOM
server string = %h - Samba Server %v
security = DOMAIN
password server = test-net
log level = 4
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
wins server = 10.0.0.1

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[R]
comment = R Drive
path = /share/R
public = yes
writable = yes
create mask = 0755
guest ok = Yes
nt acl support = true

[logs]
comment = Testing logs
path = /share/logs
public = yes
writable = yes
create mask = 0755
guest ok = Yes



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Joining Samba to ADS domain (win2k3)

2006-04-19 Thread Charles Guest
On 4/19/06, Gerald (Jerry) Carter [EMAIL PROTECTED] wrote:



 This is a bug in the e2fsprogs.




Is there a work-around for this bug?

Thanks,
Charles
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba turning

2006-04-19 Thread Gardiner Leverett
I have a two networks (across the country from each other) that are
connected
via ipsec through a Cicso pix.  There is samba running on a Linux machine
in the main office (call it office A) and users at the other office (B) need

to get to it.  After about three levels down, the response time back from
the server is very slow (as it appears to be caching the directory listing).

After as much as 60 seconds, the directory list appears. Going down further
sometimes causes another delay, but not all the time. Going back up the
tree may cause a delay as well.  Of the items I've been finding on line, 
the problem is probably the tuning of the server in office A.  Local 
users in office A see no problems.  The version I'm using is 3.0.21b-1
on RedHat 9.   

Here is the smb.conf (global part) for that server (I have adding items to 
the socket options list).  I have been experimenting with making this a 
pdc, but I haven't implemented it yet.  If anyone has some suggestions 
on how to fix this, I'd appreciate it.  

---

[global]
name resolve order = wins lmhosts bcast
winbind enable local accounts = no
hosts allow = 192.168.0.0/24  192.168.5.0/24  192.168.10.0/24
127.0.0.1
passwd program = /usr/bin/passwd %u
dns proxy = no
netbios name = KIDROCK
logon script = netlogin.bat
local master = yes
workgroup = XX
debug level = 1
os level = 255
socket address = 192.168.0.153
hosts deny = 0.0.0.0/0
security = user
add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s
/bin/false -M %u
max log size = 50
log file = /var/log/samba/log.smbd
socket options = IPTOS_THROUGHPUT TCP_NODELAY SO_SNDBUF=8192
SO_RCVBUF=8192
keepalive = 30
logon drive = H:
interfaces = eth0 lo
domain master = yes
username map = /etc/samba/smbusers
encrypt passwords = yes
wins proxy = no
logon home = \\%L\profiles\%u\
wins support = yes
server string = mobius microsystem file server
#kernel oplocks = false
unix password sync = yes
logon path = \\%L\profiles\%u\
preferred master = yes
bind interfaces only = yes
domain logons = no


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] W2K Domain Users in Samba

2006-04-19 Thread Sean P. Elble

Jim,

My comments are within your original post to the mailing list.

--
+-+
|  Sean Elble |
|  Virginia Tech  |
|  Computer Engineering, Class of 2008|
|  Vice President, VTLUUG |
|  E-Mail:   [EMAIL PROTECTED]|
+-+

On Wed, 19 Apr 2006, [EMAIL PROTECTED] wrote:


Looking for a poniter in the right direction

My current configuration is
NT4 PDC (Solaris PCnetlink)
Samba Member server (Solaris 9 Samba ver 3.0.20b)for file and print
sharing
WinXp Pro Clients SP2

My problem is with the Domain Users. I am able to share out file systems
to the XP clients from my Samba server OK. I am also able to modify the
permissions for the files in the share in Solaris using the chmod, chgrp
and chown. This seems to work OK. When I am on the WinXp client and I look
at the security permissions tab on the folder properties that I own, I
cannot see the NT4 Domain Users, all I see are the \\localmachine\user
when what I want is the  \\domain\user. When I try to add a domain user in
the secrutiy properties page I see the domain and the list of users but
when I select a user or group and select add it does not add it to the
folder properties. I am new to Samba -- am I missing some simple
configuration parameter or is this how it is suppose to work.


My first question to you is how have you setup the users on this Solaris 
file server? For file sharing to work properly,I'd imagine you either are 
running Winbind for the user database on the server, OR you are using 
username mapping, with local users on the file server as well. If you are 
not, well, that is your problem right there. Samba needs to know which 
UNIX user owns the files, and has the various permissions: Knowing which 
user in the Windows domain would not do Samba any good, as it doesn't 
maintain a permissions database for files separate of the UNIX file 
permissions scheme (someone please correct me if I am wrong here).


This is quite unlike Sun's PC Netlink, which, IIRC, is a product developed 
under a source code license from Microsoft, allowing for full Windows NT 
4.0 PDC functionality from a Solaris server (versions were produced for 
other versions of UNIX as well). However, it maintains its own database 
for file permissions, and it does not require local UNIX users for every 
Windows user in the domain.


As such, my recommendation would be to run Winbind on the file server, 
which will allow you to authenticate local UNIX users via the PC Netlink 
PDC, and allow you to do file permissions and other such things on the 
UNIX level quite easily. I cannot say for sure that this is where your 
problem lies, but I'd put some money on it (if I were not a poor college 
student, that is :-)).




alb-smb(test)# ./testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section [printers]
Processing section [R]
Processing section [logs]
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions

[global]
   workgroup = TESTDOM
   server string = %h - Samba Server %v
   security = DOMAIN
   password server = test-net
   log level = 4
   log file = /var/log/samba/log.%m
   max log size = 50
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   printcap name = /etc/printcap
   dns proxy = No
   wins server = 10.0.0.1

[printers]
   comment = All Printers
   path = /var/spool/samba
   printable = Yes
   browseable = No

[R]
   comment = R Drive
   path = /share/R
   public = yes
   writable = yes
   create mask = 0755
   guest ok = Yes
   nt acl support = true

[logs]
   comment = Testing logs
   path = /share/logs
   public = yes
   writable = yes
   create mask = 0755
   guest ok = Yes



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Dropped frames streaming video to samba

2006-04-19 Thread Matt London
Hi,

We've got a setup here with a samba server in front of a fibrechannel array. 
It's a pretty vanilla samba setup exporting an xfs filesystem.

The box is an opteron 265 with 4G RAM and a QLogic QLA2312 HBA running SLES9.

We can dd an 8G file to a share from a windows workstation in just over 2 
minutes (about 65MB/s) and dd back in about 4 minutes.

Local disk performance in the machine gives about 195MB/s to disk and 120MB/s 
from disk.

The problem comes when trying to capture video using Adobe Premiere 6.5 and 
write straight to the share - we get a *lot* of dropped frames (somewhere in 
the region of 25%+). Yet the same job to an Adaptec Snap server (which is samba 
on adaptec's guardianOS) works fine, even through it can only sustain 10MB/s.

Any ideas would be much appreciated.

Best regards,


--Matt London
Alliance Technologies
Tel: (416) 385 3255 x232
Fax: (416) 385 1774

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Dropped frames streaming video to samba

2006-04-19 Thread Jeremy Allison
On Wed, Apr 19, 2006 at 05:31:50PM -0400, Matt London wrote:
 Hi,
 
 We've got a setup here with a samba server in front of a fibrechannel array. 
 It's a pretty vanilla samba setup exporting an xfs filesystem.
 
 The box is an opteron 265 with 4G RAM and a QLogic QLA2312 HBA running SLES9.
 
 We can dd an 8G file to a share from a windows workstation in just over 2 
 minutes (about 65MB/s) and dd back in about 4 minutes.
 
 Local disk performance in the machine gives about 195MB/s to disk and 120MB/s 
 from disk.
 
 The problem comes when trying to capture video using Adobe Premiere 6.5 and 
 write straight to the share - we get a *lot* of dropped frames (somewhere in 
 the region of 25%+). Yet the same job to an Adaptec Snap server (which is 
 samba on adaptec's guardianOS) works fine, even through it can only sustain 
 10MB/s.
 

Well it's the same codebase so it should be just as fast :-).
Firstly, what version of Samba are you running ? Secondly,
what do you have in your smb.conf ?

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Dropped frames streaming video to samba

2006-04-19 Thread Matt London
Hi,

Oops, I meant to include that info, obviously I forgot :)

SLES9's samba-3.0.20b-3.4

smb.conf as follows:

[global]
   workgroup = ENCODING
   printing = cups
   printcap name = cups
   printcap cache time = 750
   cups options = raw
   map to guest = Bad User
   include = /etc/samba/dhcp.conf
   logon path = \\%L\profiles\.msprofile
   logon home = \\%L\%U\.9xprofile
   logon drive = P:
   security = user
   encrypt passwords = yes
   ldap suffix = dc=example,dc=com
   domain logons = no
   ldap idmap suffix = ou=Idmap
   ldap machine suffix = ou=Computers
   local master = yes
   passdb backend = smbpasswd
   wins support = yes
   netbios name = ENCODING
   add machine script =
   preferred master = auto
   load printers = no
[data]
   browsable = yes
   comment = Data Share
   guest ok = yes
   path = /data
   writeable = yes
   browseable = yes
   printable = no



--Matt London
Alliance Technologies
Tel: (416) 385 3255 x232
Fax: (416) 385 1774

 On Wed, Apr 19, 2006 at  5:45 pm, in message
[EMAIL PROTECTED], Jeremy Allison [EMAIL PROTECTED] wrote: 
 On Wed, Apr 19, 2006 at 05:31:50PM - 0400, Matt London wrote:
 Hi,
 
 We've got a setup here with a samba server in front of a fibrechannel array. 
 It's a pretty vanilla samba setup exporting an xfs filesystem.
 
 The box is an opteron 265 with 4G RAM and a QLogic QLA2312 HBA running 
 SLES9.
 
 We can dd an 8G file to a share from a windows workstation in just over 2 
 minutes (about 65MB/s) and dd back in about 4 minutes.
 
 Local disk performance in the machine gives about 195MB/s to disk and 
 120MB/s from disk.
 
 The problem comes when trying to capture video using Adobe Premiere 6.5 and 
 write straight to the share -  we get a *lot* of dropped frames (somewhere in 
 the region of 25%+). Yet the same job to an Adaptec Snap server (which is 
 samba on adaptec's guardianOS) works fine, even through it can only sustain 
 10MB/s.
 
 
 Well it's the same codebase so it should be just as fast :- ).
 Firstly, what version of Samba are you running ? Secondly,
 what do you have in your smb.conf ?
 
 Jeremy.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] performance regression between 30.14a and 3.0.20

2006-04-19 Thread Greg Dickie

Hi Jeremy,

  Bad news I'm afraid. Doesn't seem to be much of a difference between
that svn checkout and 3.0.20. Thats just the first run on it, we'll try
and poke it some more.

Thanks alot for your work on this,
Greg

On Tue, 2006-04-18 at 11:20 -0700, Jeremy Allison wrote:
 On Fri, Apr 07, 2006 at 01:05:43PM -0400, Greg Dickie wrote:
  
  Hey Jeremy,
  
I think that just means 3 runs 1 reads, 1 writes and one 50-50. I
  could have sworn I sent the config file already but here it is again
  along with the binaries.
  
  Thanks alot,
  Greg
 
 Greg - is it possible for you to test the current code in the
 svn branch SAMBA_3_0 with this application and your test
 case ? I've been doing a lot of work on this issue (it's very
 important obviously :-) and would like to get some feedback if possible.
 
 Thanks,
 
   Jeremy.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: Stable Network Down

2006-04-19 Thread EHines



jamrock wrote:

EHines [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

I eventually cleared the problem by rebooting the Samba
server--everything is running properly, now. However, rebooting seems
excessive. In future, what sorts of things typically go wrong to produce
this type of failure? For what should I be looking?

Thanks

Eric Hines

Did you apply an updates to the computer recently?
  

I updated OOo to 2.0.2, but that has to be a coincidence.

Eric Hines

--
I don’t give ‘em hell.  I just tell the truth on ‘em, and they think it’s hell.
—Harry Truman

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] performance regression between 30.14a and 3.0.20

2006-04-19 Thread Jeremy Allison
On Wed, Apr 19, 2006 at 07:26:16PM -0400, Greg Dickie wrote:
 
 Hi Jeremy,
 
   Bad news I'm afraid. Doesn't seem to be much of a difference between
 that svn checkout and 3.0.20. Thats just the first run on it, we'll try
 and poke it some more.
 
 Thanks alot for your work on this,

No problem. But I'm testing here on a Linux ram disk
with ext2 as a target to remove any possible variance
caused by disk activity and with iometer get equal
performance (within noise values) between 3.0.14a and
SVN SAMBA_3_0.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Shared Samba locking system

2006-04-19 Thread Sh4d03

Hi all,

I'm wondering whether it would be feasible to share the Samba lock file 
between two Samba servers. My implementation will be similar to this:


I have two sites each with its own OpenBSD 3.8 Samba Server connected 
via OpenVPN over a not-so-good link. Ultimately, the link isn't too 
bad however the users are often calling on large file and crashing 
Mircrosoft Programs as they're not designed to wait that long. My plan 
is to run rsync between the two servers (in both directions) to 
synchronise the data. This will probably be done on a 5 minute basis, or 
maybe 15. My issue from here is that when file foo is opened on Server 
A, there will be no lock in place on Server B to prevent simultaneous 
editing. Obviously, the effect of this is that I have two versions of 
the same file and rsync will simply blow one away with the newer one, 
despite the older one possibly having new data.


My intention was to share the Samba lock file live across the VPN 
using maybe NFS or some other means. I've been reading up on the locking 
system of Samba in an attempt to ascertain the ability to do this but 
would like to open it to you guys for advice. 

Alternatively, if there is another option that people can suggest for 
doing what I need I'm open for suggestions.


Kind regards and thank you in advance,

Sh4d03
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Shared Samba locking system

2006-04-19 Thread Jeremy Allison
On Thu, Apr 20, 2006 at 10:43:15AM +, Sh4d03 wrote:
 Hi all,
 
 I'm wondering whether it would be feasible to share the Samba lock file 
 between two Samba servers. My implementation will be similar to this:
 
 I have two sites each with its own OpenBSD 3.8 Samba Server connected 
 via OpenVPN over a not-so-good link. Ultimately, the link isn't too 
 bad however the users are often calling on large file and crashing 
 Mircrosoft Programs as they're not designed to wait that long. My plan 
 is to run rsync between the two servers (in both directions) to 
 synchronise the data. This will probably be done on a 5 minute basis, or 
 maybe 15. My issue from here is that when file foo is opened on Server 
 A, there will be no lock in place on Server B to prevent simultaneous 
 editing. Obviously, the effect of this is that I have two versions of 
 the same file and rsync will simply blow one away with the newer one, 
 despite the older one possibly having new data.
 
 My intention was to share the Samba lock file live across the VPN 
 using maybe NFS or some other means. I've been reading up on the locking 
 system of Samba in an attempt to ascertain the ability to do this but 
 would like to open it to you guys for advice. 
 
 Alternatively, if there is another option that people can suggest for 
 doing what I need I'm open for suggestions.

This is never going to work. The locking databases need full POSIX
mmap and fcntl semantics and don't work so well even on distributed
filesystems using gigabit. Using a not-so-good link isn't possible :-).

I'd look into replicating the actual data files via rsync if you must share 
stuff 
between the two  sites.

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Dropped frames streaming video to samba

2006-04-19 Thread Jeremy Allison
On Wed, Apr 19, 2006 at 06:26:23PM -0400, Matt London wrote:
 Hi,
 
 Oops, I meant to include that info, obviously I forgot :)
 
 SLES9's samba-3.0.20b-3.4
 
 smb.conf as follows:
 
 [global]
workgroup = ENCODING
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
security = user
encrypt passwords = yes
ldap suffix = dc=example,dc=com
domain logons = no
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
local master = yes
passdb backend = smbpasswd
wins support = yes
netbios name = ENCODING
add machine script =
preferred master = auto
load printers = no
 [data]
browsable = yes
comment = Data Share
guest ok = yes
path = /data
writeable = yes
browseable = yes
printable = no

I have my suspicions about contacting the cups daemon
periodically. Can you try disabling the Samba to cups
parameters this server whilst streaming a video just
to remove my paranoia ? :-).

Thanks,

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] PDC + File Sharing without password

2006-04-19 Thread Mimi Siu
Hello:

I have set up a PDC using samba (3.0.11) with openldap
(2.2.23) on RH9. 

I have a shared directory set in smb.conf and there
will be a huge access of directory in copying many
files from client-side (windows XP) to the PDC.

And I got a problem that the openldap is not
responding and my client who has login the the domain
can't access the file on the shared directory.

I hope that the login client are not required to 
authenticate again when they access the share
directory. (which is like the setting of
security=share in smb.conf). But of course, I can't
set this as my samba server is the PDC.

I read about the hosts equiv directive and I am
failed to implement it..

I have set guest ok, but I check the log file that
it stills bind to the ldap server to authenticate the
user first.

Any suggestion?

Mimi

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] group members from trusted domain

2006-04-19 Thread dm
Hi @all

How can I list members of the group from trusted AD domain?
For my domain I can do:
net rpc group MEMBERS group -U login%password -S dc
Yes, I can change DC with -S switch to list information from DC of trusted 
domain, but usually there is no direct access to that DC.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] access to samba dir's without acl's

2006-04-19 Thread Tirard Stéphane
Hello,
 
Is anyone aware of a bug VB/Samba related to the DIR command when a
directory is empty ?
 
 
Thanks for your answer

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.3/316 - Release Date: 17/04/2006
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] How to set mysql backend for samba; Urgent pls

2006-04-19 Thread balijepalli srikrishnamohan
Hello group,

I Just joined the group and this is the first message
to this group.

I am facing a problem while configuring mysql backend
to samba.
I am using samba 2.2.7,
mysql 5.0, pam-mysql-0.5 and RH9.
Is it possible to set mysql backend for samba2.2.7?
Pls explain the way to configure mysql to samba as
backend.

Regards
Krishnam.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] connecting From unix solaris to windows system

2006-04-19 Thread Sheriff Mohammed
 Hi 
 
 Can you please give us steps for connecting from UNIX solaris  to
WINDOWS  directory .
 
 Actually our samba is installed in UNIX mpsaptst and it has to connect
to windows MPSAPDEV path \usr\sap\trans.
 
 IF you have any documentation  or notes plaese send us.
 
Thanking you 
 sheriff
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Help with net groupmap, users of groups don't have permits

2006-04-19 Thread Ricardo Chamorro
In a Sarge Kernel 2,6 running Samba 3 as PDC security=user, I turned with net 
groupmap modify... the English language of the names of the groups of dominio 
NT to the Spanish, so these are compatible with the Spanish version of each W9x.
Everything it did without problems with script downloaded from Internet.  But 
in the list of users and groups of the window Share... in each client 
Windows, all the existing groups do not see themselves.  In addition, although 
the group Admins. del Dominio (in spanish) sees itself, the users of that 
group (Administrators of the Domain) cannot accede to the shared resources with 
them  What can happen? 
Regards
Ricardo
Buenos Aires
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] hosts equiv

2006-04-19 Thread Mimi Siu
Any one is able to use hosts equiv directive
successfully?

Mimi

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: svn commit: samba r15131 - in branches/SAMBA_4_0/source/torture: .

2006-04-19 Thread Stefan (metze) Metzmacher
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] schrieb:
 Author: jpeach
 Date: 2006-04-19 03:06:50 + (Wed, 19 Apr 2006)
 New Revision: 15131
 
 WebSVN: 
 http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15131
 
 Log:
 Tidy help output. When printing the list of tests, group them by prefix
 to make it easier to see what tests are available.

Hi James!

thanks! that looks really nice!

metze

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFERfeFm70gjA5TCD8RAjQeAKDP1TamcoQGr/sFECuwVh0gMzgSrwCeINKa
TVTGGAwASoSaZKlHlgcGXr0=
=ziXw
-END PGP SIGNATURE-


svn commit: samba r15132 - branches/SAMBA_3_0/source/nsswitch trunk/source/nsswitch

2006-04-19 Thread vlendec
Author: vlendec
Date: 2006-04-19 13:14:14 + (Wed, 19 Apr 2006)
New Revision: 15132

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15132

Log:
Fix some shadowed variable warnings
Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
   branches/SAMBA_3_0/source/nsswitch/winbindd_reconnect.c
   trunk/source/nsswitch/winbindd_cache.c
   trunk/source/nsswitch/winbindd_reconnect.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
===
--- branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2006-04-19 03:06:50 UTC 
(rev 15131)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2006-04-19 13:14:14 UTC 
(rev 15132)
@@ -774,7 +774,7 @@
centry_free(centry);
 }
 
-static void wcache_save_password_policy(struct winbindd_domain *domain, 
NTSTATUS status, SAM_UNK_INFO_1 *password_policy)
+static void wcache_save_password_policy(struct winbindd_domain *domain, 
NTSTATUS status, SAM_UNK_INFO_1 *policy)
 {
struct cache_entry *centry;
 
@@ -782,11 +782,11 @@
if (!centry)
return;
 
-   centry_put_uint16(centry, password_policy-min_length_password);
-   centry_put_uint16(centry, password_policy-password_history);
-   centry_put_uint32(centry, password_policy-password_properties);
-   centry_put_nttime(centry, password_policy-expire);
-   centry_put_nttime(centry, password_policy-min_passwordage);
+   centry_put_uint16(centry, policy-min_length_password);
+   centry_put_uint16(centry, policy-password_history);
+   centry_put_uint32(centry, policy-password_properties);
+   centry_put_nttime(centry, policy-expire);
+   centry_put_nttime(centry, policy-min_passwordage);
 
centry_end(centry, PWD_POL/%s, domain-name);

@@ -1735,7 +1735,7 @@
 /* get lockout policy */
 static NTSTATUS lockout_policy(struct winbindd_domain *domain,
   TALLOC_CTX *mem_ctx,
-  SAM_UNK_INFO_12 *lockout_policy){
+  SAM_UNK_INFO_12 *policy){
struct winbind_cache *cache = get_cache(domain);
struct cache_entry *centry = NULL;
NTSTATUS status;
@@ -1748,9 +1748,9 @@
if (!centry)
goto do_query;
  
-   lockout_policy-duration = centry_nttime(centry);
-   lockout_policy-reset_count = centry_nttime(centry);
-   lockout_policy-bad_attempt_lockout = centry_uint16(centry);
+   policy-duration = centry_nttime(centry);
+   policy-reset_count = centry_nttime(centry);
+   policy-bad_attempt_lockout = centry_uint16(centry);
  
status = centry-status;
  
@@ -1761,7 +1761,7 @@
return status;
  
 do_query:
-   ZERO_STRUCTP(lockout_policy);
+   ZERO_STRUCTP(policy);
  
/* Return status value returned by seq number check */
 
@@ -1771,11 +1771,11 @@
DEBUG(10,(lockout_policy: [Cached] - doing backend query for info for 
domain %s\n,
domain-name ));
  
-   status = domain-backend-lockout_policy(domain, mem_ctx, 
lockout_policy); 
+   status = domain-backend-lockout_policy(domain, mem_ctx, policy); 
  
/* and save it */
refresh_sequence_number(domain, False);
-   wcache_save_lockout_policy(domain, status, lockout_policy);
+   wcache_save_lockout_policy(domain, status, policy);
  
return status;
 }
@@ -1783,7 +1783,7 @@
 /* get password policy */
 static NTSTATUS password_policy(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
-   SAM_UNK_INFO_1 *password_policy)
+   SAM_UNK_INFO_1 *policy)
 {
struct winbind_cache *cache = get_cache(domain);
struct cache_entry *centry = NULL;
@@ -1797,11 +1797,11 @@
if (!centry)
goto do_query;
 
-   password_policy-min_length_password = centry_uint16(centry);
-   password_policy-password_history = centry_uint16(centry);
-   password_policy-password_properties = centry_uint32(centry);
-   password_policy-expire = centry_nttime(centry);
-   password_policy-min_passwordage = centry_nttime(centry);
+   policy-min_length_password = centry_uint16(centry);
+   policy-password_history = centry_uint16(centry);
+   policy-password_properties = centry_uint32(centry);
+   policy-expire = centry_nttime(centry);
+   policy-min_passwordage = centry_nttime(centry);
 
status = centry-status;
 
@@ -1812,7 +1812,7 @@
return status;
 
 do_query:
-   ZERO_STRUCTP(password_policy);
+   ZERO_STRUCTP(policy);
 
/* Return status value returned by seq number check */
 
@@ -1822,11 +1822,11 @@
DEBUG(10,(password_policy: [Cached] - doing backend query for info for 
domain %s\n,
domain-name ));
 
-   status = domain-backend-password_policy(domain, mem_ctx, 

svn commit: samba r15133 - branches/SAMBA_3_0/source/param branches/SAMBA_3_0/source/smbd trunk/source/param trunk/source/smbd trunk/source/tdb

2006-04-19 Thread vlendec
Author: vlendec
Date: 2006-04-19 14:11:51 + (Wed, 19 Apr 2006)
New Revision: 15133

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15133

Log:
in_server is not used anywhere
Modified:
   branches/SAMBA_3_0/source/param/loadparm.c
   branches/SAMBA_3_0/source/smbd/server.c
   trunk/source/param/loadparm.c
   trunk/source/smbd/server.c
   trunk/source/tdb/tdb.c


Changeset:
Modified: branches/SAMBA_3_0/source/param/loadparm.c
===
--- branches/SAMBA_3_0/source/param/loadparm.c  2006-04-19 13:14:14 UTC (rev 
15132)
+++ branches/SAMBA_3_0/source/param/loadparm.c  2006-04-19 14:11:51 UTC (rev 
15133)
@@ -54,7 +54,6 @@
 #include includes.h
 
 BOOL in_client = False;/* Not in the client by default */
-BOOL in_server = False;/* Not in the server by default */
 BOOL bLoaded = False;
 
 extern userdom_struct current_user_info;

Modified: branches/SAMBA_3_0/source/smbd/server.c
===
--- branches/SAMBA_3_0/source/smbd/server.c 2006-04-19 13:14:14 UTC (rev 
15132)
+++ branches/SAMBA_3_0/source/smbd/server.c 2006-04-19 14:11:51 UTC (rev 
15133)
@@ -731,7 +731,6 @@
 
  int main(int argc,const char *argv[])
 {
-   extern BOOL in_server;
/* shall I run as a daemon */
static BOOL is_daemon = False;
static BOOL interactive = False;
@@ -755,8 +754,6 @@
{ NULL }
};
 
-   in_server = True;
-
load_case_tables();
 
 #ifdef HAVE_SET_AUTH_PARAMETERS

Modified: trunk/source/param/loadparm.c
===
--- trunk/source/param/loadparm.c   2006-04-19 13:14:14 UTC (rev 15132)
+++ trunk/source/param/loadparm.c   2006-04-19 14:11:51 UTC (rev 15133)
@@ -54,7 +54,6 @@
 #include includes.h
 
 BOOL in_client = False;/* Not in the client by default */
-BOOL in_server = False;/* Not in the server by default */
 BOOL bLoaded = False;
 
 extern userdom_struct current_user_info;

Modified: trunk/source/smbd/server.c
===
--- trunk/source/smbd/server.c  2006-04-19 13:14:14 UTC (rev 15132)
+++ trunk/source/smbd/server.c  2006-04-19 14:11:51 UTC (rev 15133)
@@ -731,7 +731,6 @@
 
  int main(int argc,const char *argv[])
 {
-   extern BOOL in_server;
/* shall I run as a daemon */
static BOOL is_daemon = False;
static BOOL interactive = False;
@@ -755,8 +754,6 @@
{ NULL }
};
 
-   in_server = True;
-
load_case_tables();
 
 #ifdef HAVE_SET_AUTH_PARAMETERS

Modified: trunk/source/tdb/tdb.c
===
--- trunk/source/tdb/tdb.c  2006-04-19 13:14:14 UTC (rev 15132)
+++ trunk/source/tdb/tdb.c  2006-04-19 14:11:51 UTC (rev 15133)
@@ -74,7 +74,7 @@
return 0;
 
if (!TDB_DEAD(r)  hash==r-full_hash  
key.dsize==r-key_len) {
-   char *k;
+   void *k;
/* a very likely hit - read the key */
k = tdb_alloc_read(tdb, rec_ptr + sizeof(*r), 
   r-key_len);



svn commit: samba r15134 - in trunk/source/tdb: .

2006-04-19 Thread vlendec
Author: vlendec
Date: 2006-04-19 14:13:11 + (Wed, 19 Apr 2006)
New Revision: 15134

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15134

Log:
Revert an accidential commit
Modified:
   trunk/source/tdb/tdb.c


Changeset:
Modified: trunk/source/tdb/tdb.c
===
--- trunk/source/tdb/tdb.c  2006-04-19 14:11:51 UTC (rev 15133)
+++ trunk/source/tdb/tdb.c  2006-04-19 14:13:11 UTC (rev 15134)
@@ -74,7 +74,7 @@
return 0;
 
if (!TDB_DEAD(r)  hash==r-full_hash  
key.dsize==r-key_len) {
-   void *k;
+   char *k;
/* a very likely hit - read the key */
k = tdb_alloc_read(tdb, rec_ptr + sizeof(*r), 
   r-key_len);



svn commit: samba r15135 - in branches/SAMBA_3_0_RELEASE: examples examples/LDAP examples/VFS examples/libmsrpc/test/sam examples/libsmbclient examples/misc examples/pdb examples/perfcounter examples/

2006-04-19 Thread jerry
Author: jerry
Date: 2006-04-19 14:16:38 + (Wed, 19 Apr 2006)
New Revision: 15135

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15135

Log:
working on 3.0.23pre1; sync to SAMBA_3_0 r15132
Added:
   branches/SAMBA_3_0_RELEASE/examples/pam_winbind/
   branches/SAMBA_3_0_RELEASE/source/include/debugparse.h
   branches/SAMBA_3_0_RELEASE/source/include/event.h
   branches/SAMBA_3_0_RELEASE/source/include/gpo.h
   branches/SAMBA_3_0_RELEASE/source/iniparser/
   branches/SAMBA_3_0_RELEASE/source/lib/audit.c
   branches/SAMBA_3_0_RELEASE/source/lib/display_sec.c
   branches/SAMBA_3_0_RELEASE/source/lib/events.c
   branches/SAMBA_3_0_RELEASE/source/lib/repdir.c
   branches/SAMBA_3_0_RELEASE/source/lib/sharesec.c
   branches/SAMBA_3_0_RELEASE/source/libads/gpo.c
   branches/SAMBA_3_0_RELEASE/source/libads/gpo_util.c
   branches/SAMBA_3_0_RELEASE/source/libads/krb5_errs.c
   branches/SAMBA_3_0_RELEASE/source/libsmb/dcerpc_err.c
   branches/SAMBA_3_0_RELEASE/source/libsmb/gpo.c
   branches/SAMBA_3_0_RELEASE/source/nsswitch/winbindd_cred_cache.c
   branches/SAMBA_3_0_RELEASE/source/nsswitch/winbindd_creds.c
   branches/SAMBA_3_0_RELEASE/source/passdb/util_unixsids.c
   branches/SAMBA_3_0_RELEASE/source/passdb/util_wellknown.c
   branches/SAMBA_3_0_RELEASE/source/script/installbin.sh.in
   branches/SAMBA_3_0_RELEASE/source/script/tests/dlopen.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/selftest.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/test_functions.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/test_posix_s3.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/test_smbclient_s3.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/test_smbtorture_s3.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/tests_all.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/timelimit.c
   branches/SAMBA_3_0_RELEASE/source/script/uninstallbin.sh.in
   branches/SAMBA_3_0_RELEASE/source/smbd/dmapi.c
   branches/SAMBA_3_0_RELEASE/source/smbd/map_username.c
   branches/SAMBA_3_0_RELEASE/source/smbd/notify_fam.c
   branches/SAMBA_3_0_RELEASE/source/smbd/share_access.c
   branches/SAMBA_3_0_RELEASE/source/tests/os2_delete.c
   branches/SAMBA_3_0_RELEASE/source/utils/debugparse.c
   branches/SAMBA_3_0_RELEASE/source/utils/net_ads_gpo.c
   branches/SAMBA_3_0_RELEASE/source/utils/net_rpc_audit.c
   branches/SAMBA_3_0_RELEASE/source/utils/net_rpc_sh_acct.c
   branches/SAMBA_3_0_RELEASE/source/utils/net_rpc_shell.c
   branches/SAMBA_3_0_RELEASE/source/utils/net_sam.c
   branches/SAMBA_3_0_RELEASE/source/utils/net_usershare.c
   branches/SAMBA_3_0_RELEASE/source/utils/net_util.c
   branches/SAMBA_3_0_RELEASE/source/utils/netlookup.c
Removed:
   branches/SAMBA_3_0_RELEASE/examples/pdb/mysql/
   branches/SAMBA_3_0_RELEASE/examples/pdb/sambapdb.dtd
   branches/SAMBA_3_0_RELEASE/source/lib/util_getent.c
   branches/SAMBA_3_0_RELEASE/source/lib/util_smbd.c
   branches/SAMBA_3_0_RELEASE/source/nsswitch/winbindd_ldap.c
   branches/SAMBA_3_0_RELEASE/source/passdb/pdb_guest.c
   branches/SAMBA_3_0_RELEASE/source/passdb/pdb_mysql.c
   branches/SAMBA_3_0_RELEASE/source/passdb/pdb_pgsql.c
   branches/SAMBA_3_0_RELEASE/source/passdb/pdb_sql.c
   branches/SAMBA_3_0_RELEASE/source/passdb/pdb_xml.c
   branches/SAMBA_3_0_RELEASE/source/passdb/util_sam_sid.c
   branches/SAMBA_3_0_RELEASE/source/rpcclient/display_sec.c
   branches/SAMBA_3_0_RELEASE/source/script/installbin.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/functions
   branches/SAMBA_3_0_RELEASE/source/script/tests/runtests.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/t_001.sh
   branches/SAMBA_3_0_RELEASE/source/script/tests/t_002.sh
   branches/SAMBA_3_0_RELEASE/source/script/uninstallbin.sh
   branches/SAMBA_3_0_RELEASE/source/smbd/tdbutil.c
   branches/SAMBA_3_0_RELEASE/source/ubiqx/
   branches/SAMBA_3_0_RELEASE/source/wrepld/
Modified:
   branches/SAMBA_3_0_RELEASE/examples/LDAP/samba.schema
   branches/SAMBA_3_0_RELEASE/examples/VFS/Makefile.in
   branches/SAMBA_3_0_RELEASE/examples/VFS/skel_opaque.c
   branches/SAMBA_3_0_RELEASE/examples/VFS/skel_transparent.c
   branches/SAMBA_3_0_RELEASE/examples/libmsrpc/test/sam/samenum.c
   branches/SAMBA_3_0_RELEASE/examples/libsmbclient/get_auth_data_fn.h
   branches/SAMBA_3_0_RELEASE/examples/libsmbclient/testbrowse.c
   branches/SAMBA_3_0_RELEASE/examples/misc/adssearch.pl
   branches/SAMBA_3_0_RELEASE/examples/pdb/test.c
   branches/SAMBA_3_0_RELEASE/examples/perfcounter/perf_writer.c
   
branches/SAMBA_3_0_RELEASE/examples/scripts/shares/perl/modify_samba_config.pl
   branches/SAMBA_3_0_RELEASE/packaging/Debian/debian-sarge/rules
   branches/SAMBA_3_0_RELEASE/packaging/Debian/debian-unstable/rules
   branches/SAMBA_3_0_RELEASE/packaging/Debian/debian-woody/rules
   branches/SAMBA_3_0_RELEASE/packaging/RHEL/makerpms.sh.tmpl
   branches/SAMBA_3_0_RELEASE/packaging/RHEL/samba.spec.tmpl
   branches/SAMBA_3_0_RELEASE/packaging/RedHat-9/samba.spec.tmpl
   

svn commit: samba-web r958 - in trunk/projects: .

2006-04-19 Thread deryck
Author: deryck
Date: 2006-04-19 14:34:10 + (Wed, 19 Apr 2006)
New Revision: 958

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=958

Log:
Add summer of code 06 page.
Just a place holder for now... 
developers will need to add project ideas.

deryck


Added:
   trunk/projects/summercode06.html


Changeset:
Added: trunk/projects/summercode06.html
===
--- trunk/projects/summercode06.html2006-04-14 16:06:19 UTC (rev 957)
+++ trunk/projects/summercode06.html2006-04-19 14:34:10 UTC (rev 958)
@@ -0,0 +1,33 @@
+!--#include virtual=/samba/header.html --
+  titleSamba -- Summer of Code Projects/title
+!--#include virtual=/samba/header_columns.html --
+
+h2Summer of Code Projects/h2
+
+div class=request style=margin:0 0 35px 0
+pThe following is an outline of potential projects for those interested in
+working on Samba through a href=http://code.google.com/soc/;Google's 
+Summer of Code/a program./p
+
+pThis is just a holding area for project ideas.  The projects listed here
+may be updated as developers refine a project's outline.  Questions about 
+Samba's participation in the program can be mailed to 
+a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a./p
+/div
+
+table class=real
+  trthSamba 3/th/tr
+  trtd/td/tr
+
+  trthSamba 4/th/tr
+  trtd/td/tr
+
+  trthLinux CIFS FS/th/tr
+  trtd/td/tr
+
+  trthProject Infrastructure/th/tr
+  trtd/td/tr
+
+/table
+
+!--#include virtual=/samba/footer.html --



svn commit: samba r15136 - branches/SAMBA_3_0/source/utils trunk/source/utils

2006-04-19 Thread vlendec
Author: vlendec
Date: 2006-04-19 15:38:43 + (Wed, 19 Apr 2006)
New Revision: 15136

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15136

Log:
Fix join consistency check
Modified:
   branches/SAMBA_3_0/source/utils/net_ads.c
   branches/SAMBA_3_0/source/utils/net_rpc.c
   trunk/source/utils/net_ads.c
   trunk/source/utils/net_rpc.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_ads.c
===
--- branches/SAMBA_3_0/source/utils/net_ads.c   2006-04-19 14:16:38 UTC (rev 
15135)
+++ branches/SAMBA_3_0/source/utils/net_ads.c   2006-04-19 15:38:43 UTC (rev 
15136)
@@ -721,7 +721,7 @@
const char *short_domain_name = NULL;
TALLOC_CTX *ctx = NULL;
 
-   if ((lp_server_role() != ROLE_DOMAIN_MEMBER) || 
+   if ((lp_server_role() != ROLE_DOMAIN_MEMBER) 
(lp_server_role() != ROLE_DOMAIN_BDC)) {
d_printf(can only join as domain member or as BDC\n);
return -1;

Modified: branches/SAMBA_3_0/source/utils/net_rpc.c
===
--- branches/SAMBA_3_0/source/utils/net_rpc.c   2006-04-19 14:16:38 UTC (rev 
15135)
+++ branches/SAMBA_3_0/source/utils/net_rpc.c   2006-04-19 15:38:43 UTC (rev 
15136)
@@ -389,7 +389,7 @@
 
 int net_rpc_join(int argc, const char **argv) 
 {
-   if ((lp_server_role() != ROLE_DOMAIN_MEMBER) || 
+   if ((lp_server_role() != ROLE_DOMAIN_MEMBER) 
(lp_server_role() != ROLE_DOMAIN_BDC)) {
d_printf(can only join as domain member or as BDC\n);
return -1;

Modified: trunk/source/utils/net_ads.c
===
--- trunk/source/utils/net_ads.c2006-04-19 14:16:38 UTC (rev 15135)
+++ trunk/source/utils/net_ads.c2006-04-19 15:38:43 UTC (rev 15136)
@@ -721,7 +721,7 @@
const char *short_domain_name = NULL;
TALLOC_CTX *ctx = NULL;
 
-   if ((lp_server_role() != ROLE_DOMAIN_MEMBER) || 
+   if ((lp_server_role() != ROLE_DOMAIN_MEMBER) 
(lp_server_role() != ROLE_DOMAIN_BDC)) {
d_printf(can only join as domain member or as BDC\n);
return -1;

Modified: trunk/source/utils/net_rpc.c
===
--- trunk/source/utils/net_rpc.c2006-04-19 14:16:38 UTC (rev 15135)
+++ trunk/source/utils/net_rpc.c2006-04-19 15:38:43 UTC (rev 15136)
@@ -389,7 +389,7 @@
 
 int net_rpc_join(int argc, const char **argv) 
 {
-   if ((lp_server_role() != ROLE_DOMAIN_MEMBER) || 
+   if ((lp_server_role() != ROLE_DOMAIN_MEMBER) 
(lp_server_role() != ROLE_DOMAIN_BDC)) {
d_printf(can only join as domain member or as BDC\n);
return -1;



svn commit: samba r15137 - branches/SAMBA_3_0/source/utils trunk/source/utils

2006-04-19 Thread vlendec
Author: vlendec
Date: 2006-04-19 15:43:48 + (Wed, 19 Apr 2006)
New Revision: 15137

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15137

Log:
Refuse to join if our netbios name is longer than 15 chars. I think this is
sufficient to fix bug #3659.

Volker

Modified:
   branches/SAMBA_3_0/source/utils/net_ads.c
   branches/SAMBA_3_0/source/utils/net_rpc.c
   trunk/source/utils/net_ads.c
   trunk/source/utils/net_rpc.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_ads.c
===
--- branches/SAMBA_3_0/source/utils/net_ads.c   2006-04-19 15:38:43 UTC (rev 
15136)
+++ branches/SAMBA_3_0/source/utils/net_ads.c   2006-04-19 15:43:48 UTC (rev 
15137)
@@ -727,6 +727,12 @@
return -1;
}
 
+   if (strlen(global_myname())  15) {
+   d_printf(Our netbios name can only be 15 chars long, \%s\
+ is %d chars long\n,
+global_myname(), strlen(global_myname()));
+   return -1;
+   }
 
if (argc  0) {
org_unit = argv[0];

Modified: branches/SAMBA_3_0/source/utils/net_rpc.c
===
--- branches/SAMBA_3_0/source/utils/net_rpc.c   2006-04-19 15:38:43 UTC (rev 
15136)
+++ branches/SAMBA_3_0/source/utils/net_rpc.c   2006-04-19 15:43:48 UTC (rev 
15137)
@@ -395,6 +395,13 @@
return -1;
}
 
+   if (strlen(global_myname())  15) {
+   d_printf(Our netbios name can only be 15 chars long, \%s\
+ is %d chars long\n,
+global_myname(), strlen(global_myname()));
+   return -1;
+   }
+
if ((net_rpc_perform_oldjoin(argc, argv) == 0))
return 0;


Modified: trunk/source/utils/net_ads.c
===
--- trunk/source/utils/net_ads.c2006-04-19 15:38:43 UTC (rev 15136)
+++ trunk/source/utils/net_ads.c2006-04-19 15:43:48 UTC (rev 15137)
@@ -727,6 +727,12 @@
return -1;
}
 
+   if (strlen(global_myname())  15) {
+   d_printf(Our netbios name can only be 15 chars long, \%s\
+ is %d chars long\n,
+global_myname(), strlen(global_myname()));
+   return -1;
+   }
 
if (argc  0) {
org_unit = argv[0];

Modified: trunk/source/utils/net_rpc.c
===
--- trunk/source/utils/net_rpc.c2006-04-19 15:38:43 UTC (rev 15136)
+++ trunk/source/utils/net_rpc.c2006-04-19 15:43:48 UTC (rev 15137)
@@ -395,6 +395,13 @@
return -1;
}
 
+   if (strlen(global_myname())  15) {
+   d_printf(Our netbios name can only be 15 chars long, \%s\
+ is %d chars long\n,
+global_myname(), strlen(global_myname()));
+   return -1;
+   }
+
if ((net_rpc_perform_oldjoin(argc, argv) == 0))
return 0;




svn commit: samba r15138 - in branches/SAMBA_3_0/source/smbd: .

2006-04-19 Thread jra
Author: jra
Date: 2006-04-19 18:48:14 + (Wed, 19 Apr 2006)
New Revision: 15138

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15138

Log:
Teach Samba the difference between exclusive and batch oplocks.
Pass Samba4 oplock test (with kernel oplocks off).
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/open.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/open.c
===
--- branches/SAMBA_3_0/source/smbd/open.c   2006-04-19 15:43:48 UTC (rev 
15137)
+++ branches/SAMBA_3_0/source/smbd/open.c   2006-04-19 18:48:14 UTC (rev 
15138)
@@ -608,7 +608,7 @@
  * 3) Only level2 around: Grant level2 and do nothing else.
  */
 
-static BOOL delay_for_oplocks(struct share_mode_lock *lck, files_struct *fsp)
+static BOOL delay_for_oplocks(struct share_mode_lock *lck, files_struct *fsp, 
int pass_number)
 {
int i;
struct share_mode_entry *exclusive = NULL;
@@ -630,9 +630,16 @@
/* At least one entry is not an invalid or deferred entry. */
valid_entry = True;
 
-   if (EXCLUSIVE_OPLOCK_TYPE(lck-share_modes[i].op_type)) {
-   SMB_ASSERT(exclusive == NULL);  
-   exclusive = lck-share_modes[i];
+   if (pass_number == 1) {
+   if (BATCH_OPLOCK_TYPE(lck-share_modes[i].op_type)) {
+   SMB_ASSERT(exclusive == NULL);  
+   exclusive = lck-share_modes[i];
+   }
+   } else {
+   if (EXCLUSIVE_OPLOCK_TYPE(lck-share_modes[i].op_type)) 
{
+   SMB_ASSERT(exclusive == NULL);  
+   exclusive = lck-share_modes[i];
+   }
}
 
if (lck-share_modes[i].op_type == LEVEL_II_OPLOCK) {
@@ -1024,6 +1031,42 @@
 
 }
 
+static void schedule_defer_open(struct share_mode_lock *lck, struct timeval 
request_time)
+{
+   struct deferred_open_record state;
+
+   /* This is a relative time, added to the absolute
+  request_time value to get the absolute timeout time.
+  Note that if this is the second or greater time we enter
+  this codepath for this particular request mid then
+  request_time is left as the absolute time of the *first*
+  time this request mid was processed. This is what allows
+  the request to eventually time out. */
+
+   struct timeval timeout;
+
+   /* Normally the smbd we asked should respond within
+* OPLOCK_BREAK_TIMEOUT seconds regardless of whether
+* the client did, give twice the timeout as a safety
+* measure here in case the other smbd is stuck
+* somewhere else. */
+
+   timeout = timeval_set(OPLOCK_BREAK_TIMEOUT*2, 0);
+
+   /* Nothing actually uses state.delayed_for_oplocks
+  but it's handy to differentiate in debug messages
+  between a 30 second delay due to oplock break, and
+  a 1 second delay for share mode conflicts. */
+
+   state.delayed_for_oplocks = True;
+   state.dev = lck-dev;
+   state.inode = lck-ino;
+
+   if (!request_timed_out(request_time, timeout)) {
+   defer_open(lck, request_time, timeout, state);
+   }
+}
+
 /
  Open a file with a share mode.
 /
@@ -1310,7 +1353,6 @@
}
 
if (file_existed) {
-
dev = psbuf-st_dev;
inode = psbuf-st_ino;
 
@@ -1324,41 +1366,9 @@
return NULL;
}
 
-   if (delay_for_oplocks(lck, fsp)) {
-   struct deferred_open_record state;
-
-   /* This is a relative time, added to the absolute
-  request_time value to get the absolute timeout time.
-  Note that if this is the second or greater time we 
enter
-  this codepath for this particular request mid then
-  request_time is left as the absolute time of the 
*first*
-  time this request mid was processed. This is what 
allows
-  the request to eventually time out. */
-
-   struct timeval timeout;
-
-   /* Normally the smbd we asked should respond within
-* OPLOCK_BREAK_TIMEOUT seconds regardless of whether
-* the client did, give twice the timeout as a safety
-* measure here in case the other smbd is stuck
-* somewhere else. */
-
-   timeout = timeval_set(OPLOCK_BREAK_TIMEOUT*2, 0);
-
-  

svn commit: samba r15139 - in trunk/source/smbd: .

2006-04-19 Thread jra
Author: jra
Date: 2006-04-19 18:48:17 + (Wed, 19 Apr 2006)
New Revision: 15139

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15139

Log:
Teach Samba the difference between exclusive and batch oplocks.
Pass Samba4 oplock test (with kernel oplocks off).
Jeremy.

Modified:
   trunk/source/smbd/open.c


Changeset:
Modified: trunk/source/smbd/open.c
===
--- trunk/source/smbd/open.c2006-04-19 18:48:14 UTC (rev 15138)
+++ trunk/source/smbd/open.c2006-04-19 18:48:17 UTC (rev 15139)
@@ -608,7 +608,7 @@
  * 3) Only level2 around: Grant level2 and do nothing else.
  */
 
-static BOOL delay_for_oplocks(struct share_mode_lock *lck, files_struct *fsp)
+static BOOL delay_for_oplocks(struct share_mode_lock *lck, files_struct *fsp, 
int pass_number)
 {
int i;
struct share_mode_entry *exclusive = NULL;
@@ -630,9 +630,16 @@
/* At least one entry is not an invalid or deferred entry. */
valid_entry = True;
 
-   if (EXCLUSIVE_OPLOCK_TYPE(lck-share_modes[i].op_type)) {
-   SMB_ASSERT(exclusive == NULL);  
-   exclusive = lck-share_modes[i];
+   if (pass_number == 1) {
+   if (BATCH_OPLOCK_TYPE(lck-share_modes[i].op_type)) {
+   SMB_ASSERT(exclusive == NULL);  
+   exclusive = lck-share_modes[i];
+   }
+   } else {
+   if (EXCLUSIVE_OPLOCK_TYPE(lck-share_modes[i].op_type)) 
{
+   SMB_ASSERT(exclusive == NULL);  
+   exclusive = lck-share_modes[i];
+   }
}
 
if (lck-share_modes[i].op_type == LEVEL_II_OPLOCK) {
@@ -1024,6 +1031,42 @@
 
 }
 
+static void schedule_defer_open(struct share_mode_lock *lck, struct timeval 
request_time)
+{
+   struct deferred_open_record state;
+
+   /* This is a relative time, added to the absolute
+  request_time value to get the absolute timeout time.
+  Note that if this is the second or greater time we enter
+  this codepath for this particular request mid then
+  request_time is left as the absolute time of the *first*
+  time this request mid was processed. This is what allows
+  the request to eventually time out. */
+
+   struct timeval timeout;
+
+   /* Normally the smbd we asked should respond within
+* OPLOCK_BREAK_TIMEOUT seconds regardless of whether
+* the client did, give twice the timeout as a safety
+* measure here in case the other smbd is stuck
+* somewhere else. */
+
+   timeout = timeval_set(OPLOCK_BREAK_TIMEOUT*2, 0);
+
+   /* Nothing actually uses state.delayed_for_oplocks
+  but it's handy to differentiate in debug messages
+  between a 30 second delay due to oplock break, and
+  a 1 second delay for share mode conflicts. */
+
+   state.delayed_for_oplocks = True;
+   state.dev = lck-dev;
+   state.inode = lck-ino;
+
+   if (!request_timed_out(request_time, timeout)) {
+   defer_open(lck, request_time, timeout, state);
+   }
+}
+
 /
  Open a file with a share mode.
 /
@@ -1310,7 +1353,6 @@
}
 
if (file_existed) {
-
dev = psbuf-st_dev;
inode = psbuf-st_ino;
 
@@ -1324,41 +1366,9 @@
return NULL;
}
 
-   if (delay_for_oplocks(lck, fsp)) {
-   struct deferred_open_record state;
-
-   /* This is a relative time, added to the absolute
-  request_time value to get the absolute timeout time.
-  Note that if this is the second or greater time we 
enter
-  this codepath for this particular request mid then
-  request_time is left as the absolute time of the 
*first*
-  time this request mid was processed. This is what 
allows
-  the request to eventually time out. */
-
-   struct timeval timeout;
-
-   /* Normally the smbd we asked should respond within
-* OPLOCK_BREAK_TIMEOUT seconds regardless of whether
-* the client did, give twice the timeout as a safety
-* measure here in case the other smbd is stuck
-* somewhere else. */
-
-   timeout = timeval_set(OPLOCK_BREAK_TIMEOUT*2, 0);
-
-   /* Nothing actually uses state.delayed_for_oplocks

svn commit: samba r15140 - in branches/SAMBA_3_0_RELEASE: .

2006-04-19 Thread jerry
Author: jerry
Date: 2006-04-19 22:58:05 + (Wed, 19 Apr 2006)
New Revision: 15140

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15140

Log:
first draft of 3.0.23pre1 release notes
Modified:
   branches/SAMBA_3_0_RELEASE/WHATSNEW.txt


Changeset:
Modified: branches/SAMBA_3_0_RELEASE/WHATSNEW.txt
===
--- branches/SAMBA_3_0_RELEASE/WHATSNEW.txt 2006-04-19 18:48:17 UTC (rev 
15139)
+++ branches/SAMBA_3_0_RELEASE/WHATSNEW.txt 2006-04-19 22:58:05 UTC (rev 
15140)
@@ -1,3 +1,336 @@
+   ==
+   Release Notes for Samba 3.0.23pre1
+   Apr 20, 2006
+   ==
+
+This is a preview release of the Samba 3.0.23 code base and
+is provided for testing only.  This release is *not* intended
+for production servers.  There has been a substantial amount
+of development since the 3.0.21 series of stable releases.
+We would like to ask the Samba community for help in testing
+these changes as we work towards the next significant production
+upgrade Samba 3.0 release.
+
+There has been a substantial amount of cleanup work done 
+during this development cycle.  Two weeks of development time
+was dedicated to fixing bugs reported by the Coverity source 
+code scans.  Details can be found at in the following two 
+articles:
+
+   http://news.samba.org/#coverity_zero_bugs 
+   http://news.samba.org/#zdnet_quick_response
+
+
+
+Common bugs fixed in 3.0.23pre1 include:
+
+New features introduced in 3.0.23pre1 include:
+
+
+##
+Changes
+###
+
+Changes since 3.0.21/22
+---
+
+smb.conf changes
+
+
+Parameter Name  Action
+--  --
+acl group control  Deprecated
+add port command   New
+dos filemode   Modified behavior
+enable asu support New default (no)
+enable privileges  New default (yes)
+host msdfs New default (yes)
+msdfs root New default (yes)
+open files database hash size  New
+strict locking New default (auto)
+winbind enum users New default (no)
+winbind enum groupsNew default (no)
+winbind nested groups  New default (yes)
+winbind max idle children  Removed
+
+
+commits
+---
+o   Jeremy Allison [EMAIL PROTECTED]
+* BUG 3467: Fix delete on close semantics needed by WinXP Media 
+  Center Ed. for simultaneous recording and playback (thanks to 
+  Jason Qian for the debugging assistance).
+* BUG 3347: Save the Unix user token used to set the 
+  delete-on-close flag.
+* Fix parsing of SAMR_Q_CONNECT_ANON.
+* Add in support for userinfo26 structure and re-enable 
+  userinfo25 
+* Schannel server fixes.  Fix the credentials chaining across 
+  \netlogon pipe disconnects.
+* Replace ubqix code in nmbd with an internal tdb.
+* Fix struct timespec checks in configure.in.
+* Add in server support for the NetSamLogonEx().
+* Add support for LsaLookupSids2() and LsaLookupSids3().
+* Add LsaLookupNames[2-4]().
+* Add support for 'net usershare'.
+* BUG 3522: Fix error code return on SMBmkdir(foo) when foo 
+  already exists (thanks to Sandeep Tamhankar).
+* BUG 3510: Fix 'net rpc join' against a server when 
+  schannel is disabled.
+* Get rid of poor errno mapping table. Bounce through NTSTATUS 
+  instead.
+* Check for SeMachineAccountPrivilege when deleting machine 
+  accounts.
+* Fix a logic bug with multiple oplock contention.
+* Add the replacements for opendir/readdir etc from SAMBA_4_0.
+  Attempt to fix the broken directory handling in the *BSD.
+* Allow run time tuning of the locking tdb hash size for
+  very busy servers.
+* BUG 3642: Ensure we don't call FD_SET on read with 
+  fd == -1.
+* BUG 3569: Work around linear posix locking issue on AIX
+  which was causing high loads due to the tdb CLEAR_IF_FIRST
+  flag (based on work from William JoJo).
+* Fix OS/2 directory delete bug found by kukks.
+* Match the Windows 2003 NTLMSSP signature.
+* Performance tuning work in core read  write file serving 
+  paths.
+* Change default to 'strict locking' to better reflect 
+  real world clients.
+* Fix error return on session setup. Ensure no data blob is 
+  added if the logon call failed so that Windows clients 
+  interpret the NT_STATUS code correctly.
+
+
+
+o   Alexander Bokovoy [EMAIL PROTECTED]
+* Fix 'smbcontrol shutdown' messages for nmbd and winbindd.
+
+
+o   Max N. 

Build status as of Thu Apr 20 00:00:02 2006

2006-04-19 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2006-04-19 
00:00:03.0 +
+++ /home/build/master/cache/broken_results.txt 2006-04-20 00:00:40.0 
+
@@ -1,17 +1,17 @@
-Build status as of Wed Apr 19 00:00:01 2006
+Build status as of Thu Apr 20 00:00:02 2006
 
 Build counts:
 Tree Total  Broken Panic 
-ccache   5  0  0 
-distcc   7  1  0 
-lorikeet-heimdal 13 13 0 
-ppp  17 0  0 
-rsync33 1  0 
+ccache   6  0  0 
+distcc   8  1  0 
+lorikeet-heimdal 14 14 0 
+ppp  18 0  0 
+rsync34 1  0 
 samba2  0  0 
 samba-docs   0  0  0 
-samba4   38 23 2 
-samba_3_034 8  0 
-smb-build25 0  0 
-talloc   4  3  0 
-tdb  31 3  0 
+samba4   39 22 2 
+samba_3_035 8  0 
+smb-build27 0  0 
+talloc   5  3  0 
+tdb  32 3  0 
 


svn commit: samba r15141 - in branches/SAMBA_3_0/source/client: .

2006-04-19 Thread jra
Author: jra
Date: 2006-04-20 00:47:46 + (Thu, 20 Apr 2006)
New Revision: 15141

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15141

Log:
Fix for #3592 inspired by Justin Best [EMAIL PROTECTED].
Ignore a file in a tar output if the first read fails. Also
cope with 2GB read fail.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/client/clitar.c


Changeset:
Modified: branches/SAMBA_3_0/source/client/clitar.c
===
--- branches/SAMBA_3_0/source/client/clitar.c   2006-04-19 22:58:05 UTC (rev 
15140)
+++ branches/SAMBA_3_0/source/client/clitar.c   2006-04-20 00:47:46 UTC (rev 
15141)
@@ -561,15 +561,15 @@
return True;
 }
 
-static int padit(char *buf, int bufsize, int padsize)
+static int padit(char *buf, SMB_BIG_UINT bufsize, SMB_BIG_UINT padsize)
 {
int berr= 0;
int bytestowrite;
   
-   DEBUG(5, (Padding with %d zeros\n, padsize));
-   memset(buf, 0, bufsize);
+   DEBUG(5, (Padding with %0.f zeros\n, (double)padsize));
+   memset(buf, 0, (size_t)bufsize);
while( !berr  padsize  0 ) {
-   bytestowrite= MIN(bufsize, padsize);
+   bytestowrite= (int)MIN(bufsize, padsize);
berr = dotarbuf(tarhandle, buf, bytestowrite) != bytestowrite;
padsize -= bytestowrite;
}
@@ -682,12 +682,11 @@
DEBUG(4, (skipping %s - hidden bit is set\n, finfo.name));
shallitime=0;
} else {
+   BOOL wrote_tar_header = False;
+
DEBUG(3,(getting file %s of size %.0f bytes as a tar file %s,
finfo.name, (double)finfo.size, lname));
   
-   /* write a tar header, don't bother with mode - just set to 
100644 */
-   writetarheader(tarhandle, rname, finfo.size, finfo.mtime, 
100644 \0, ftype);
-
while (nread  finfo.size  !close_done) {
  
DEBUG(3,(nread=%.0f\n,(double)nread));
@@ -701,6 +700,13 @@
  
nread += datalen;
 
+   /* Only if the first read succeeds, write out the tar 
header. */
+   if (!wrote_tar_header) {
+   /* write a tar header, don't bother with mode - 
just set to 100644 */
+   writetarheader(tarhandle, rname, finfo.size, 
finfo.mtime, 100644 \0, ftype);
+   wrote_tar_header = True;
+   }
+
/* if file size has increased since we made file size 
query, truncate
read so tar header for this file will be 
correct.
*/
@@ -727,20 +733,25 @@
datalen=0;
}
 
-   /* pad tar file with zero's if we couldn't get entire file */
-   if (nread  finfo.size) {
-   DEBUG(0, (Didn't get entire file. size=%.0f, 
nread=%d\n,
-   (double)finfo.size, 
(int)nread));
-   if (padit(data, sizeof(data), finfo.size - nread))
-   DEBUG(0,(Error writing tar file - %s\n, 
strerror(errno)));
-   }
+   if (wrote_tar_header) {
+   /* pad tar file with zero's if we couldn't get entire 
file */
+   if (nread  finfo.size) {
+   DEBUG(0, (Didn't get entire file. size=%.0f, 
nread=%d\n,
+   (double)finfo.size, 
(int)nread));
+   if (padit(data, (SMB_BIG_UINT)sizeof(data), 
finfo.size - nread))
+   DEBUG(0,(Error writing tar file - 
%s\n, strerror(errno)));
+   }
 
-   /* round tar file to nearest block */
-   if (finfo.size % TBLOCK)
-   dozerobuf(tarhandle, TBLOCK - (finfo.size % TBLOCK));
+   /* round tar file to nearest block */
+   if (finfo.size % TBLOCK)
+   dozerobuf(tarhandle, TBLOCK - (finfo.size % 
TBLOCK));
   
-   ttarf+=finfo.size + TBLOCK - (finfo.size % TBLOCK);
-   ntarf++;
+   ttarf+=finfo.size + TBLOCK - (finfo.size % TBLOCK);
+   ntarf++;
+   } else {
+   DEBUG(4, (skipping %s - initial read failed (file was 
locked ?)\n, finfo.name));
+   shallitime=0;
+   }
}
   
cli_close(cli, fnum);



svn commit: samba r15142 - in trunk/source/client: .

2006-04-19 Thread jra
Author: jra
Date: 2006-04-20 00:47:48 + (Thu, 20 Apr 2006)
New Revision: 15142

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15142

Log:
Fix for #3592 inspired by Justin Best [EMAIL PROTECTED].
Ignore a file in a tar output if the first read fails. Also
cope with 2GB read fail.
Jeremy.

Modified:
   trunk/source/client/clitar.c


Changeset:
Modified: trunk/source/client/clitar.c
===
--- trunk/source/client/clitar.c2006-04-20 00:47:46 UTC (rev 15141)
+++ trunk/source/client/clitar.c2006-04-20 00:47:48 UTC (rev 15142)
@@ -561,15 +561,15 @@
return True;
 }
 
-static int padit(char *buf, int bufsize, int padsize)
+static int padit(char *buf, SMB_BIG_UINT bufsize, SMB_BIG_UINT padsize)
 {
int berr= 0;
int bytestowrite;
   
-   DEBUG(5, (Padding with %d zeros\n, padsize));
-   memset(buf, 0, bufsize);
+   DEBUG(5, (Padding with %0.f zeros\n, (double)padsize));
+   memset(buf, 0, (size_t)bufsize);
while( !berr  padsize  0 ) {
-   bytestowrite= MIN(bufsize, padsize);
+   bytestowrite= (int)MIN(bufsize, padsize);
berr = dotarbuf(tarhandle, buf, bytestowrite) != bytestowrite;
padsize -= bytestowrite;
}
@@ -682,12 +682,11 @@
DEBUG(4, (skipping %s - hidden bit is set\n, finfo.name));
shallitime=0;
} else {
+   BOOL wrote_tar_header = False;
+
DEBUG(3,(getting file %s of size %.0f bytes as a tar file %s,
finfo.name, (double)finfo.size, lname));
   
-   /* write a tar header, don't bother with mode - just set to 
100644 */
-   writetarheader(tarhandle, rname, finfo.size, finfo.mtime, 
100644 \0, ftype);
-
while (nread  finfo.size  !close_done) {
  
DEBUG(3,(nread=%.0f\n,(double)nread));
@@ -701,6 +700,13 @@
  
nread += datalen;
 
+   /* Only if the first read succeeds, write out the tar 
header. */
+   if (!wrote_tar_header) {
+   /* write a tar header, don't bother with mode - 
just set to 100644 */
+   writetarheader(tarhandle, rname, finfo.size, 
finfo.mtime, 100644 \0, ftype);
+   wrote_tar_header = True;
+   }
+
/* if file size has increased since we made file size 
query, truncate
read so tar header for this file will be 
correct.
*/
@@ -727,20 +733,25 @@
datalen=0;
}
 
-   /* pad tar file with zero's if we couldn't get entire file */
-   if (nread  finfo.size) {
-   DEBUG(0, (Didn't get entire file. size=%.0f, 
nread=%d\n,
-   (double)finfo.size, 
(int)nread));
-   if (padit(data, sizeof(data), finfo.size - nread))
-   DEBUG(0,(Error writing tar file - %s\n, 
strerror(errno)));
-   }
+   if (wrote_tar_header) {
+   /* pad tar file with zero's if we couldn't get entire 
file */
+   if (nread  finfo.size) {
+   DEBUG(0, (Didn't get entire file. size=%.0f, 
nread=%d\n,
+   (double)finfo.size, 
(int)nread));
+   if (padit(data, (SMB_BIG_UINT)sizeof(data), 
finfo.size - nread))
+   DEBUG(0,(Error writing tar file - 
%s\n, strerror(errno)));
+   }
 
-   /* round tar file to nearest block */
-   if (finfo.size % TBLOCK)
-   dozerobuf(tarhandle, TBLOCK - (finfo.size % TBLOCK));
+   /* round tar file to nearest block */
+   if (finfo.size % TBLOCK)
+   dozerobuf(tarhandle, TBLOCK - (finfo.size % 
TBLOCK));
   
-   ttarf+=finfo.size + TBLOCK - (finfo.size % TBLOCK);
-   ntarf++;
+   ttarf+=finfo.size + TBLOCK - (finfo.size % TBLOCK);
+   ntarf++;
+   } else {
+   DEBUG(4, (skipping %s - initial read failed (file was 
locked ?)\n, finfo.name));
+   shallitime=0;
+   }
}
   
cli_close(cli, fnum);



svn commit: samba r15143 - in branches/SAMBA_4_0/source: build/m4 lib/tdb

2006-04-19 Thread jpeach
Author: jpeach
Date: 2006-04-20 01:16:04 + (Thu, 20 Apr 2006)
New Revision: 15143

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15143

Log:
Pull in GNU extensions right at the start of the configure process. This
prevents a warning on comparison_fn_t redefinition every time replace.h
is included.

Modified:
   branches/SAMBA_4_0/source/build/m4/env.m4
   branches/SAMBA_4_0/source/lib/tdb/config.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/env.m4
===
--- branches/SAMBA_4_0/source/build/m4/env.m4   2006-04-20 00:47:48 UTC (rev 
15142)
+++ branches/SAMBA_4_0/source/build/m4/env.m4   2006-04-20 01:16:04 UTC (rev 
15143)
@@ -29,6 +29,8 @@
echo BUILD REVISION: ${SAMBA_VERSION_SVN_REVISION}
 fi
 
+AC_DEFINE([_GNU_SOURCE],[],[Pull in GNU extensions])
+
 sinclude(build/m4/check_path.m4)
 sinclude(build/m4/check_perl.m4)
 sinclude(build/m4/check_cc.m4)

Modified: branches/SAMBA_4_0/source/lib/tdb/config.m4
===
--- branches/SAMBA_4_0/source/lib/tdb/config.m4 2006-04-20 00:47:48 UTC (rev 
15142)
+++ branches/SAMBA_4_0/source/lib/tdb/config.m4 2006-04-20 01:16:04 UTC (rev 
15143)
@@ -1,8 +1,6 @@
 AC_CHECK_FUNCS(mmap pread pwrite getpagesize utime)
 AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h)
 
-AC_DEFINE([_GNU_SOURCE],[],[Pull in GNU extensions])
-
 AC_HAVE_DECL(pread, [#include unistd.h])
 AC_HAVE_DECL(pwrite, [#include unistd.h])
 



svn commit: samba r15144 - in branches/SAMBA_3_0_RELEASE: . source/client source/param source/smbd source/utils

2006-04-19 Thread jerry
Author: jerry
Date: 2006-04-20 01:59:17 + (Thu, 20 Apr 2006)
New Revision: 15144

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15144

Log:
final code changes for 3.0.23pre1 (SAMBA_3_0 r15141)
Modified:
   branches/SAMBA_3_0_RELEASE/WHATSNEW.txt
   branches/SAMBA_3_0_RELEASE/source/client/clitar.c
   branches/SAMBA_3_0_RELEASE/source/param/loadparm.c
   branches/SAMBA_3_0_RELEASE/source/smbd/open.c
   branches/SAMBA_3_0_RELEASE/source/smbd/server.c
   branches/SAMBA_3_0_RELEASE/source/utils/net_ads.c
   branches/SAMBA_3_0_RELEASE/source/utils/net_rpc.c


Changeset:
Modified: branches/SAMBA_3_0_RELEASE/WHATSNEW.txt
===
--- branches/SAMBA_3_0_RELEASE/WHATSNEW.txt 2006-04-20 01:16:04 UTC (rev 
15143)
+++ branches/SAMBA_3_0_RELEASE/WHATSNEW.txt 2006-04-20 01:59:17 UTC (rev 
15144)
@@ -20,13 +20,25 @@
http://news.samba.org/#coverity_zero_bugs 
http://news.samba.org/#zdnet_quick_response
 
+New features introduced in 3.0.23pre1 include:
 
+  o New offline mode in winbindd.
+  o New kerberos support for pam_winbind.so.
+  o New handling of unmapped users and groups. 
+  o New non-root share management tools.
+  o Improved support for local and BUILTIN groups.
 
-Common bugs fixed in 3.0.23pre1 include:
 
-New features introduced in 3.0.23pre1 include:
+User and Group changes
+==
 
+The user and group internal management routines have been rewritten
+to prevent overlaps of assigned Relative Identifiers (RIDs).  
+Unmapped users are assigned a SID in the S-1-22-1 domain now and
+unmapped groups are assigned a SID in the S-1-22-2 domain.
 
+
+
 ##
 Changes
 ###
@@ -100,9 +112,12 @@
 * Fix error return on session setup. Ensure no data blob is 
   added if the logon call failed so that Windows clients 
   interpret the NT_STATUS code correctly.
+* Teach Samba the difference between exclusive and batch 
+  oplocks.
+* BUG 3592: Ignore a file in a smbtar output if the first 
+  read fails (inspired by Justin Best).
 
 
-
 o   Alexander Bokovoy [EMAIL PROTECTED]
 * Fix 'smbcontrol shutdown' messages for nmbd and winbindd.
 
@@ -215,7 +230,6 @@
   in /etc/security/pam_winbind.conf.
 
 
-
 o   Mathias Dietz [EMAIL PROTECTED]
 * EPERM can be a valid return from getting an xattr. 
   Don't disable if we get it.
@@ -261,6 +275,8 @@
   the SAMBA_4_0 tree.
 * Unsure that the global SAM SID is initialized before any
   dependent routines are called.
+* Enhance consistency checks on local configuration when joining
+  a domain.
 
 
 o   Derrell Lipman [EMAIL PROTECTED]

Modified: branches/SAMBA_3_0_RELEASE/source/client/clitar.c
===
--- branches/SAMBA_3_0_RELEASE/source/client/clitar.c   2006-04-20 01:16:04 UTC 
(rev 15143)
+++ branches/SAMBA_3_0_RELEASE/source/client/clitar.c   2006-04-20 01:59:17 UTC 
(rev 15144)
@@ -561,15 +561,15 @@
return True;
 }
 
-static int padit(char *buf, int bufsize, int padsize)
+static int padit(char *buf, SMB_BIG_UINT bufsize, SMB_BIG_UINT padsize)
 {
int berr= 0;
int bytestowrite;
   
-   DEBUG(5, (Padding with %d zeros\n, padsize));
-   memset(buf, 0, bufsize);
+   DEBUG(5, (Padding with %0.f zeros\n, (double)padsize));
+   memset(buf, 0, (size_t)bufsize);
while( !berr  padsize  0 ) {
-   bytestowrite= MIN(bufsize, padsize);
+   bytestowrite= (int)MIN(bufsize, padsize);
berr = dotarbuf(tarhandle, buf, bytestowrite) != bytestowrite;
padsize -= bytestowrite;
}
@@ -682,12 +682,11 @@
DEBUG(4, (skipping %s - hidden bit is set\n, finfo.name));
shallitime=0;
} else {
+   BOOL wrote_tar_header = False;
+
DEBUG(3,(getting file %s of size %.0f bytes as a tar file %s,
finfo.name, (double)finfo.size, lname));
   
-   /* write a tar header, don't bother with mode - just set to 
100644 */
-   writetarheader(tarhandle, rname, finfo.size, finfo.mtime, 
100644 \0, ftype);
-
while (nread  finfo.size  !close_done) {
  
DEBUG(3,(nread=%.0f\n,(double)nread));
@@ -701,6 +700,13 @@
  
nread += datalen;
 
+   /* Only if the first read succeeds, write out the tar 
header. */
+   if (!wrote_tar_header) {
+   /* write a tar header, don't bother with mode - 
just set to 100644 */
+   writetarheader(tarhandle, rname, finfo.size, 
finfo.mtime, 100644 \0, ftype);
+   wrote_tar_header = True;
+   }
+
/* if file 

svn commit: samba r15145 - in branches/SAMBA_3_0_RELEASE: .

2006-04-19 Thread jerry
Author: jerry
Date: 2006-04-20 02:14:15 + (Thu, 20 Apr 2006)
New Revision: 15145

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15145

Log:
add some more to the release notes (please review)
Modified:
   branches/SAMBA_3_0_RELEASE/WHATSNEW.txt


Changeset:
Modified: branches/SAMBA_3_0_RELEASE/WHATSNEW.txt
===
--- branches/SAMBA_3_0_RELEASE/WHATSNEW.txt 2006-04-20 01:59:17 UTC (rev 
15144)
+++ branches/SAMBA_3_0_RELEASE/WHATSNEW.txt 2006-04-20 02:14:15 UTC (rev 
15145)
@@ -36,7 +36,17 @@
 to prevent overlaps of assigned Relative Identifiers (RIDs).  
 Unmapped users are assigned a SID in the S-1-22-1 domain now and
 unmapped groups are assigned a SID in the S-1-22-2 domain.
+This means that it is possible on upgraded Samba domain controllers
+that this could cause problems with the ACLs assigned to files or 
+directories copied from a file share to a local NTFS formatted disk 
+partition.  Upgrading procedures are still under development.
 
+There has also been a minor update the Samba LDAP schema file.
+A substring matching rule has been added to the sambaSID
+attribute definition.  This will require, for example, the addition 
+of 'index sambaSID sub' to an OpenLDAP server's slapd.conf 
+configuration file.  It will be necessary to run slapindex after 
+making this change.
 
 
 ##
@@ -53,16 +63,27 @@
 --  --
 acl group control  Deprecated
 add port command   New
+dmapi support  New
 dos filemode   Modified behavior
 enable asu support New default (no)
 enable privileges  New default (yes)
+enable rid algorithm   Removed
+fam change notify  New
 host msdfs New default (yes)
 msdfs root New default (yes)
 open files database hash size  New
 strict locking New default (auto)
+usershare max shares   New
+usershare owner only   New
+usershare path New
+usershare prefix allow listNew
+usershare prefix deny list New
+usershare template share   New
 winbind enum users New default (no)
 winbind enum groupsNew default (no)
 winbind nested groups  New default (yes)
+winbind offline logon  New
+winbind refesh tickets New
 winbind max idle children  Removed
 
 



svn commit: samba-docs r937 - in trunk/smbdotconf/misc: .

2006-04-19 Thread jpeach
Author: jpeach
Date: 2006-04-20 03:15:20 + (Thu, 20 Apr 2006)
New Revision: 937

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=937

Log:
Document the fam change notify and dmapi support parameters.

Added:
   trunk/smbdotconf/misc/dmapisupport.xml
   trunk/smbdotconf/misc/famchangenotify.xml


Changeset:
Added: trunk/smbdotconf/misc/dmapisupport.xml
===
--- trunk/smbdotconf/misc/dmapisupport.xml  2006-04-17 22:35:57 UTC (rev 
936)
+++ trunk/smbdotconf/misc/dmapisupport.xml  2006-04-20 03:15:20 UTC (rev 
937)
@@ -0,0 +1,29 @@
+samba:parameter name=dmapi support
+ context=S
+type=boolean
+ advanced=1 developer=1
+ xmlns:samba=http://www.samba.org/samba/DTD/samba-doc;
+description
+   paraThis parameter specifies whether Samba should use DMAPI to
+   determine whether a file is offline or not. This would typically
+   be used in conjunction with a hierarchical storage system that
+   automatically migrates files to tape.
+   /para
+
+   paraNote that Samba infers the status of a file by examining the
+   events that a DMAPI application has registered interest in. This
+   heuristic is satisfactory for a number of hierarchical storage
+   systems, but there may be system for which it will fail. In this
+   case, Samba may erroneously report files to be offline.
+   /para
+
+   paraThis parameter is only available if a supported DMAPI
+   implementation was found at compilation time. It will only be used
+   if DMAPI is found to enabled on the system at run time.
+   /para
+
+   para
+   /para
+/description
+value type=defaultno/value
+/samba:parameter

Added: trunk/smbdotconf/misc/famchangenotify.xml
===
--- trunk/smbdotconf/misc/famchangenotify.xml   2006-04-17 22:35:57 UTC (rev 
936)
+++ trunk/smbdotconf/misc/famchangenotify.xml   2006-04-20 03:15:20 UTC (rev 
937)
@@ -0,0 +1,20 @@
+samba:parameter name=fam change notify
+ context=G
+type=boolean
+ advanced=1 developer=1
+ xmlns:samba=http://www.samba.org/samba/DTD/samba-doc;
+description
+   paraThis parameter specifies whether Samba should ask the 
+   FAM daemon change notifications in directories so that
+   SMB clients can refresh whenever the data on the server changes.
+   /para
+
+   paraThis parameter is only used when your system supports 
+   change notification to user programs, using the FAM daemon. If the FAM
+   daemon is not running, this parameter is automatically disabled. The
+   parameter moreinfo=nonekernel change notify/parameter
+   parameter will take precedence if it is also enabled.
+   /para
+/description
+value type=defaultyes/value
+/samba:parameter