Re: [Samba] smbd in hybrid mode

2008-04-18 Thread Christian Perrier
Quoting Weiser, Johann ([EMAIL PROTECTED]):
 There is this really fancy sentence in the smb.conf man page: It is
 possible to use smbd in a hybrid mode where it is offers both user and
 share level security under different NetBIOS aliases. 
  
 There are a number of question here in this mailing list around this
 sentence and the answers are usually to use map to guest parameter.
 However this parameter does not work e.g. with SECURITY = server. 
 
 Therefore I would be really interested in a solution as described with
 this sentence above with different NetBIOS aliases. Does such a solution
 really exist, or should this sentence be removed from the man page?

This can be done roughly the following way:



smb.conf:

[global]
netbios aliases = foo bar
include = /etc/samba/%L.conf


/etc/samba/foo.conf:
security=share
.../...

/etc/samba/bar.conf
security=user
.../...



The server will appear twice in the network neighbourhood. When
clients connect to foo, the server will be in share mode. When
clients connect to bar, the server will be in user mode.

To my experience (but that was long ago), there may be some drawbacks
as there is still one samba server running and sharing its data files
between the two personalities.

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


[Samba] Samba hangs for a minuate then works fine

2008-04-18 Thread Rajiv Nair
Hi.

My Fedora 5, Samba version 3.0.21b-2 hangs for a minuate then working fine.
Do not have any idea why it happen.  There are 10 Windows XP connected to
the samba server for file access, but it not happening frequently.  Can
anyone help me?  My settings are:

[global]

encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
max log size = 0
volume = Fedroa

map to guest = Bad user
security = share
workgroup = xxx
server string = PD
netbios name = 
log file = /var/log/samba/%m.log
# guest account = smbguest
# smb passwd file = /etc/samba/smbpasswd
hosts allow = 192.168.1., 127.

send file = no

readwrite = no

[home]
comment = Home
path= /data/home
browseable = yes
read only = no
writable = yes
public = yes
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] LVM + xfs + Shadow copy

2008-04-18 Thread Adam Roland

hi Dave,

first of all, thanx the reply :)

so, if i make this change;

SNAPNAME=`date +%Y.%m.%d-%H.%M.%S`

the whole thing gonna be fine :)
i see previous versions, so sun lights upon my face ...

the xfs_freeze -f /home/ command does make the process hangup at lvcreating, so 
i doesn't use,
by the way, i really don't understand whats the purpose of xfs_freeze,
does it matter when i use snapshotting at 500GB size of partition, but don't 
care about xfs_freeze?

have a nice day,

Roli

David Disseldorp [EMAIL PROTECTED] írta: 


 On Thu, 17 Apr 2008 13:14:20 +0200 (CEST)
 Adam Roland [EMAIL PROTECTED] wrote:
 
  
  
  hi there,
  
  i begin to install shadow copy VFS mod function in samba 3.0.24-6etch9, 
  after i see  the same function at win2003srv, 
  i think it could be very useful, if i gonna make it under DEB,
  
  but at the moment i'm really get stucked,
  
  i try to describe what's the point now;
  
  1 - load shadow_copy mod in smb.conf
   vfs objects = shadow_copy
  2 - install shadow copy client in WinXPProf
  3 - write script to make snapshot to my LVM2 + XFS system
   SNAPNAME=`date+%Y.%m.%d_%H.%M.%S`  
 
 SNAPNAME=`date +%Y.%m.%d-%H.%M.%S`
 
 also should probably do a `xfs_freeze -f /home` here if lvcreate doesn't.
 
   lvcreate -v -L10M -s -n $SNAPNAME /dev/lvmgroup1/home  
   xfs_freeze -u  /home 
   mkdir /home/@GMT-$SNAPNAME 
   mount /dev/mapper/lvmgroup1-$SNAPNAME /home/@GMT-$SNAPNAME -onouuid,ro
  4 - everything seems to be fine, but when i open previous version window 
  under WinXP, it's blank ...
  
  so what else, i have no more idea,
  
  can anyone help me?
 
 whats your smb.conf look like?
 
 Also add `log level = 10` to smb.conf and attatch the output from:
 # grep shadow /var/log/samba/log.smbd
 
 Cheers, Dave

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


[Samba] [3.0.28,1/smb.conf] Can't hide dot files

2008-04-18 Thread Gilles
Hello

I set up Samba 3.0.28,1 on a FreeBSD 6.3 host. I'd like users _not_
to see the hidden dot files in directories, but hide dot files
doesn't work, no matter whether I put it in [global] or [homes]:

==
[global]
workgroup = WORKGROUP
netbios name = Samba
hosts allow = 192.168.0. 127.
log file = /var/log/samba/log.%m
max log size = 50
socket options = SO_RCVBUF=8192 SO_SNDBUF=8192
hide dot files = yes

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
hide dot files = yes
==

Any idea why?

Thank you.

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


Re: [Samba] [3.0.28,1/smb.conf] Can't hide dot files

2008-04-18 Thread [EMAIL PROTECTED]

   veto files = /.??*/


Gilles wrote:

Hello

I set up Samba 3.0.28,1 on a FreeBSD 6.3 host. I'd like users _not_
to see the hidden dot files in directories, but hide dot files
doesn't work, no matter whether I put it in [global] or [homes]:

==
[global]
workgroup = WORKGROUP
netbios name = Samba
hosts allow = 192.168.0. 127.
log file = /var/log/samba/log.%m
max log size = 50
socket options = SO_RCVBUF=8192 SO_SNDBUF=8192
hide dot files = yes

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
hide dot files = yes
==

Any idea why?

Thank you.

  


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


[Samba] Samba and Vista profile probs

2008-04-18 Thread Collen Blijenberg

Hi all, I've got some problems with vista sp1 + samba 3.0.28a

vista will not save the profiles nor load them. !
I'm all familiar with the .V2 thing.
vista however does create the profilename.V2 directory, but does not
populate it with the data

Xp machines work like a charm however.
profiles path's are: \\server\profiles\testuser
so the problem with the .V2 part is not share related, coz they are a 
dir in a share.
we do get logged in with a temp profile. so authentication works (little 
slow do...)


do i need to alter the vista policy's or something ??
if i browse manually to the profile share, i will be able to create dirs 
and files


- smb.conf

[profiles]
   path = /Jordanet/profiles
   guest ok = yes
   browseable = no
   nt acl support = yes
   csc policy = disable
   read only =no

#create mode = 0600
#directory mode = 0700
  
#profile acls = yes

#writable = yes
#inherit permissions = no
#inherit acls = no
#nt acl support = no
#map acl inherit = No

--

Cheers, Collen

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


[Samba] Re: Samba + terminal services

2008-04-18 Thread Jamrock

Andy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello everyone,

 I was wondering if there is any support for samba and terminal services? I
 currently have two windows boxes, one with terminal services installed and
 the other with active directory.  From what I have seen terminal services
 relies heavily upon AD and DNS.  Could anyone point me in the direction of
 any informative sources that will help me get my Terminal services box
 pulling credential information from a samba PDC.

 Is it as simple as moving my terminal services box from my windows domain
to
 the samba domain? Or is there some deeper integration between AD, DNS and
 terminal services.
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba


We just add the terminal services machine to the Samba domain.  We have not
had any issues.



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


Re: [Samba] Samba 3: bad read performance

2008-04-18 Thread Jeremy Allison
On Thu, Apr 17, 2008 at 03:46:56PM +0400, Dmitry V Shurupov wrote:
 Hi all!
 
 
 We use Samba 3 server for some video stuff (editing, rendering, and so
 on) -- that's why performance is critical. We've tried a lot smb.conf
 options, but Samba can't satisfy our requirements.
 
 
 Our server configuration is as following:
 * Hard drive: RAID5 (8 x Seagate 7200.10), 3ware 9550SX-8LP controller
 * NICs (trunked): 2 x Broadcom NetXtreme BCM5704
 * Processor: Opteron 270
 * RAM: 4 Gb
 * File system: XFS
 * Operating system: Gentoo Linux (kernel 2.6.24-r3)
 * Samba version: 3.0.28, 3.0.28a
 
 Our client configuration is as following:
 * Processor: 2 x Opteron 270
 * RAM: 4 Gb
 * NICs (trunked): 2 x Broadcom NetXtreme BCM5704, 4 x NIC Intel
 Corporation 82546GB.
 * Operating system: Gentoo Linux (kernel 2.6.23-r9)
 
 (We test Samba with our router to get better results.)
 
 Our server  client are connected with Allied Telesis AT-9448T/SP.
 
 
 And... Our testing results (MByte/s):
 
Read   Write
  disk   190 135
  ftp111 111
  samba   23  90
 
 (With 5 connections we get the same: 5 x 23 MByte/s.)
 
 We've tested our Samba server with:
 
 1) time cat file  /dev/null (on mounted SMB directory)
 2) bonnie  bonnie++ (on mounted SMB directory)
 3) time cp file /tmp/file (on mounted SMB directory)
 4) smbclient
 
 We've tried SMBFS and CIFS, different oplock and socket options (read
 performance varies from 17 to 25 MByte/s).

Can you test the latest CIFSFS code from Steve French, as well
as the latest Samba 3.2 code ? We've added the ability for
CIFSFS to do 16mb streaming read/writes, which should significantly
help a set up like yours.

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


[Samba] Winbind authenticated users lose connection over telnet or login

2008-04-18 Thread Oliver Weinmann
Dear All,


We are running Samba 3.0.28a under Solaris 8. Everything is fine so far except 
logins trough telnet or directly on console (login). I know telnet is unsafe 
and we should not use it but some old software needs the ability to use 
telnet/rsh/rlogin etc. the problem that occurs is that after a few minutes the 
telnet session is dropped. The same for a login session. That only happens when 
we are using pam_winbind.so.1 in /etc/pam.conf. I posted this question a few 
weeks ago and no one really knew a solution to this problem. I know found out 
what could be the reason. I installed openssh and now when I login using ssh 
instead of telnet i don't lose the connection. The only difference is that 
openssh is not run through inetd.

Are there any known issues when a server (telnet/login) is run through inetd?

Oliver Weinmann
Unix/Linux Administrator

VEGA IT GmbH
Europaplatz 5
D-64293 Darmstadt
Germany
Tel : +49 (0) 6151 8257 744
Fax : +49 (0)6151 8257-799
Email   : [EMAIL PROTECTED]
Web : www.vega-group.com

Register court/Registergericht: Darmstadt, HRB No. 4096, Managing 
Directors/Geschäftsführer: Philip Cartmell, Susan Bygrave, John Lewis

Notice of Confidentiality

This transmission is intended for the named addressee only. It contains 
information which may be confidential and which may also be privileged.  Unless 
you are the named addressee (or authorised to receive it for the addressee) you 
may not copy or use it, or disclose it to anyone else.  If you have received 
this transmission in error please notify the sender immediately.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] wbinfo -r help?

2008-04-18 Thread Brian Fertig
I have tried everything I can to find a solution to this.  I can wbinfo
-g or -u or even -n but when I try to use

Wbinfo -r to get the group of a user it fails and gives this error

 

Could not get groups for user XYZ

 

Any ideas would be most appreciative.   My smb.conf config follows..
Also I don't know if this has any merit to this problem but getent group
doesn't pull back anything except the builtin group in ADS

 

 

[global]

workgroup = DOMAIN

realm = DOMAIN.LOCAL

server string = Squid Proxy

security = ADS

client schannel = No

allow trusted domains = No

password server = XXX.XXX.local

passdb backend = tdbsam

log level = 12

preferred master = No

idmap domains = VALTIM

idmap backend = idmap_ad

idmap alloc backend = tdb

idmap uid = 1-3

idmap gid = 1-3

template shell = /bin/bash

winbind enum users = Yes

winbind enum groups = Yes

winbind use default domain = Yes

winbind trusted domains only = Yes

idmap alloc config:range = 1 - 3

idmap config VALTIM:range = 1 - 3

idmap config VALTIM:default = yes

idmap config VALTIM:backend = ad

idmap config VALTIM:schema_mode = rfc2307

cups options = raw

 

 

 

-

Brian Fertig

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


[Samba] [3.0.28,1/smb.conf] Can't hide dot files

2008-04-18 Thread Gilles

Hello

	I set up Samba 3.0.28,1 on a FreeBSD 6.3 host. I'd like users _not_ to see 
the hidden dot files in directories, but hide dot files doesn't work, no 
matter whether I put it in [global] or [homes]:


==
[global]
workgroup = WORKGROUP
netbios name = Samba
hosts allow = 192.168.0. 127.
log file = /var/log/samba/log.%m
max log size = 50
socket options = SO_RCVBUF=8192 SO_SNDBUF=8192
hide dot files = yes

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
hide dot files = yes
==

Any idea why?

Thank you.

PS : I already posted this message through Gmane's 
gmane.network.samba.general, but it didn't make it. Is 
gmane.network.samba.general != [EMAIL PROTECTED]


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


[Samba] Re: samba Digest, Vol 64, Issue 18

2008-04-18 Thread Gilles

At 12:01 18/04/2008 +, [EMAIL PROTECTED] wrote:

  veto files = /.??*/


Thanks. I guess hide dot files = yes is deprecated.

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


Re: [Samba] Samba and Vista profile probs

2008-04-18 Thread Jean-Jacques Moulis
CB Hi all, I've got some problems with vista sp1 + samba 3.0.28a

CB vista will not save the profiles nor load them. !
CB I'm all familiar with the .V2 thing.
CB vista however does create the profilename.V2 directory, but does not
CB populate it with the data

CB Xp machines work like a charm however.
CB profiles path's are: \\server\profiles\testuser
CB so the problem with the .V2 part is not share related, coz they are a 
CB dir in a share.
CB we do get logged in with a temp profile. so authentication works (little 
CB slow do...)

CB do i need to alter the vista policy's or something ??
CB if i browse manually to the profile share, i will be able to create dirs 
CB and files

define those keys on clients:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
WaitForNetwork=dword:
CompatibleRUPSecurity=dword:0001


If you remove %USERPROFILE% (C:\users\john) for an user 
this user will be subsequently logged in with a temporary profile unless
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\SID 
of user
is also removed.


Unfortunatly Vista doesn't obey Netlogon\NTConfig.pol.
you have to apply policies with other methods.

-- 
Jean-Jacques   Moulis  Tel:  (013) 281684
ISYFax:  (013) 139282
Linköping UniversityE-mail: [EMAIL PROTECTED]
581 83 Linköping
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba and Vista profile probs

2008-04-18 Thread Andrea Venturoli

Collen Blijenberg ha scritto:

Hi all, I've got some problems with vista sp1 + samba 3.0.28a

vista will not save the profiles nor load them. !
I'm all familiar with the .V2 thing.
vista however does create the profilename.V2 directory, but does not
populate it with the data


Hi. I'm having the same problem and I reported it to the list a while 
ago, but the only answers I got were like it works for us, it should 
for you. (N.B. this is no flame).
I though I was having some specific situation, since I was the only one 
who seemed to experience this; perhaps we could compare our setups and 
hope we can find something common which might be relevant.





Xp machines work like a charm however.
profiles path's are: \\server\profiles\testuser


I have \\PDC\username as home dir and \\PDF\username\profile[.V2] there.



so the problem with the .V2 part is not share related, coz they are a 
dir in a share.


Same here. Vista creates the profile.v2 directory and permissions seem fine.



we do get logged in with a temp profile. so authentication works (little 
slow do...)


Auhtentication is not an issue here, since the user can access every 
share he should.





do i need to alter the vista policy's or something ??


I tried every trick Google and the samba mailing lists could provide, 
but still no luck.




I have:
_ FreeBSD 6.2/i386 + samba 3.0.28,1 PDC;
_ FreeBSD 6.3/amd64 + samba 3.0.28,1 BDC;
_ replicated OpenLDAP backend;
_ profiles in home dirs on PDC;
_ more than 30 2000/XP professional machines running perfectly;
_ 1 Vista Business laptop which refuse to roam profiles.

Here's my PDC's smb.conf:
[global]
debug level = 1
passwd program=/usr/bin/passwd %u
unix password sync=false
workgroup = 
server string = x
hosts allow = 192.168.xxx. 127.
load printers = no
max log size = 5000
security = user
encrypt passwords = yes
socket options = TCP_NODELAY
interfaces = fxp0 192.168.xxx.1/24
local master = yes
os level = 255
domain master = yes
preferred master = yes
domain logons = yes
logon script=netlogon.cmd
wins support = yes
wins proxy = yes
dns proxy = yes
ldap admin dn=xx
ldap ssl=off
ldap suffix=x
passdb backend=ldapsam_compat
host msdfs = no
[homes]
writeable = yes
follow symlinks=no
browseable=no
msdfs root = no
[netlogon]
   path = /usr/local/etc/netlogon
   browseable=no
   follow symlinks=no
...


 bye  Thanks
av.

P.S. netlogon scripts works too.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Replication

2008-04-18 Thread Adam Williams
what do you mean by local speed access?  you mean they need 
100mbit/gigabit speed to their files?  are they streaming DVD rips?  if 
both offices just need the same file share, look at DFS in samba.  rsync 
is one way mirroring, have you looked at Unison (two way file syncing) 
and croning it to run every minute?  
http://www.cis.upenn.edu/~bcpierce/unison/


what sort of speed are the remote offices to each other?  t1's or 
dsl/cable?  you could just have one office also shared to the samba 
share on office two.  but if its anything more then files over 100K in 
size they'll notice a little latency.


Steve Francia wrote:

Hello, I have the following situation:

I have two offices, which both require local speed access to their file
shares. Currently there is a single windows server that provides network
shares to both offices, the remote one through a vpn.

I have used Samba since the early days, and am quite familiar with it's
capabilities and limitations, however I have never tried to perform
replication with it.

My current plan, which certainly has some limitations is to take 2 samba
servers, put one in each office. Rsync the two every half an hour. This will
provide redundancy and solve the major problem at hand, but will introduce
new problems.

30 minutes is too long, and users may work on the same file simultaneously
resulting in a conflict and changes lost.

Has anyone approached this problem before?
What replication options work well with the current stable build of samba?
Is there any way to replicate when a file is locked, so the user will get
the warning that the file is locked?

Any feedback would be helpful, even if it is a link.

Thanks in advance,
Steve Francia
  


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


Re: [Samba] Samba 3: bad read performance

2008-04-18 Thread Adam Williams
Broadcom cards are known to be not so great (on Dell Poweredge servers 
anyway).  I'd probably replace them with some gigabit intel NICs in the 
server and make sure the client's tcp/ip packets are flowing out of the 
intel NICs to it also and see if that helps.


Dmitry V Shurupov wrote:

Hi all!


We use Samba 3 server for some video stuff (editing, rendering, and so
on) -- that's why performance is critical. We've tried a lot smb.conf
options, but Samba can't satisfy our requirements.


Our server configuration is as following:
* Hard drive: RAID5 (8 x Seagate 7200.10), 3ware 9550SX-8LP controller
* NICs (trunked): 2 x Broadcom NetXtreme BCM5704
* Processor: Opteron 270
* RAM: 4 Gb
* File system: XFS
* Operating system: Gentoo Linux (kernel 2.6.24-r3)
* Samba version: 3.0.28, 3.0.28a

Our client configuration is as following:
* Processor: 2 x Opteron 270
* RAM: 4 Gb
* NICs (trunked): 2 x Broadcom NetXtreme BCM5704, 4 x NIC Intel
Corporation 82546GB.
* Operating system: Gentoo Linux (kernel 2.6.23-r9)

(We test Samba with our router to get better results.)

Our server  client are connected with Allied Telesis AT-9448T/SP.


And... Our testing results (MByte/s):

   Read   Write
 disk   190 135
 ftp111 111
 samba   23  90

(With 5 connections we get the same: 5 x 23 MByte/s.)

We've tested our Samba server with:

1) time cat file  /dev/null (on mounted SMB directory)
2) bonnie  bonnie++ (on mounted SMB directory)
3) time cp file /tmp/file (on mounted SMB directory)
4) smbclient

We've tried SMBFS and CIFS, different oplock and socket options (read
performance varies from 17 to 25 MByte/s).


Samba HOWTO tells:
  

The Samba server uses TCP to talk to the client, so if you are trying


to see if it performs well, you should really compare it to programs
that use the same protocol. The most readily available programs for file
transfer that use TCP are ftp or another TCP-based SMB server. 
(http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html#id2687128)


So, our Samba read results are really sad. What can we do to make
Samba perform better?


  

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


Re: [Samba] Samba 3: bad read performance

2008-04-18 Thread Ryan Bair
I've been doing just fine with my broadcoms on my server. The
performance killer is probably CIFS module on the client. That has
never had very good performance, but it has come a long way. I use
NFSv4 on my Linux clients and Samba for Windows.

On Fri, Apr 18, 2008 at 1:40 PM, Adam Williams
[EMAIL PROTECTED] wrote:
 Broadcom cards are known to be not so great (on Dell Poweredge servers
 anyway).  I'd probably replace them with some gigabit intel NICs in the
 server and make sure the client's tcp/ip packets are flowing out of the
 intel NICs to it also and see if that helps.



  Dmitry V Shurupov wrote:

  Hi all!
 
 
  We use Samba 3 server for some video stuff (editing, rendering, and so
  on) -- that's why performance is critical. We've tried a lot smb.conf
  options, but Samba can't satisfy our requirements.
 
 
  Our server configuration is as following:
  * Hard drive: RAID5 (8 x Seagate 7200.10), 3ware 9550SX-8LP controller
  * NICs (trunked): 2 x Broadcom NetXtreme BCM5704
  * Processor: Opteron 270
  * RAM: 4 Gb
  * File system: XFS
  * Operating system: Gentoo Linux (kernel 2.6.24-r3)
  * Samba version: 3.0.28, 3.0.28a
 
  Our client configuration is as following:
  * Processor: 2 x Opteron 270
  * RAM: 4 Gb
  * NICs (trunked): 2 x Broadcom NetXtreme BCM5704, 4 x NIC Intel
  Corporation 82546GB.
  * Operating system: Gentoo Linux (kernel 2.6.23-r9)
 
  (We test Samba with our router to get better results.)
 
  Our server  client are connected with Allied Telesis AT-9448T/SP.
 
 
  And... Our testing results (MByte/s):
 
Read   Write
   disk   190 135
   ftp111 111
   samba   23  90
 
  (With 5 connections we get the same: 5 x 23 MByte/s.)
 
  We've tested our Samba server with:
 
  1) time cat file  /dev/null (on mounted SMB directory)
  2) bonnie  bonnie++ (on mounted SMB directory)
  3) time cp file /tmp/file (on mounted SMB directory)
  4) smbclient
 
  We've tried SMBFS and CIFS, different oplock and socket options (read
  performance varies from 17 to 25 MByte/s).
 
 
  Samba HOWTO tells:
 
 
   The Samba server uses TCP to talk to the client, so if you are trying
  
  
  to see if it performs well, you should really compare it to programs
  that use the same protocol. The most readily available programs for file
  transfer that use TCP are ftp or another TCP-based SMB server.
 (http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html#id2687128)
 
  So, our Samba read results are really sad. What can we do to make
  Samba perform better?
 
 
 
 
  --

  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] Vista SP1 performance fix - maybe!

2008-04-18 Thread Dennis McLeod
Perhaps this may be of help...

From: http://www.wservernews.com/

Slow Vista File Copy Nightmare Solved!

WSN Reader Nick's Vista Horror story in last issue has a follow-up. He
wrote: I MAY have finally turned the corner on Vista turning me gray and
bald, although what little hair I have left after the last 4 weeks is
definitely going gray :) I bought a MS Wireless Desktop 1000 to install on
that Latitude ATG 620 with Vista Business that has been torturing me.
Certified for Vista. Install Intellipoint 6.1 off the disk. Plug in the
receiver. No joy. It wants the disk. Says the disk has no drivers. WTF.
Download and install Intellipoint 6.2. Plug in the receiver. No joy. It
wants the disk.

Now, we've been to 'Trinity and Beyond.' Where do we go from there? Chixulub
asteroid impact? Call MS hardware support (They were good). Eventually
discover that NO new hardware (i.e. thumb drives, wired keyboards, anything)
will install. OK. Uninstall SP1. Install Intelli point 6.2 again and Lo! and
behold! the hardware installs. Great.

Test the network response time without SP1. Now, there is nothing
particularly old, creaky or obscure in my setup. I've got a PowerEdge 800
running SBS 2003 for a server and a Cisco SB2024 Gigabit switch. It took 5
MINUTES to copy a 61 MB file. Sigh. Install SP1 again. Hey, the hardware
still works AND I can install other new hardware. It's a miracle. Test the
network response time, again. Now it takes 40 seconds to copy that 61 MB
file. XP only takes 8-10 seconds. It beats 5 minutes, but it still ain't
great. So I start googling for post-SP1 slow-file-copy bug problems.
Eventually, I come across a reference to Mark Minassi's blog that deals with
the autotuning feature of the new TCP stack and that even relatively new
switches and routers may not like the autotuning 'feature'. (SP1 by default
undoes all the tweaking that poor bastards like me have been flailing away
at to try and fix this EVIL.) So I enter the following into an
Administrative cmd window:

C:\ netsh interface tcp set global autotuninglevel=disabled

Now I tried that pre-SP1 and it didn't make a darn bit of difference. But Lo
and behold! The 61 MB file now comes down the pipe in 6 seconds. So I test
pull the SP1 mega-executable from the server (434 MB) Takes 1 minute 34
seconds. Run the same test on XP. Takes 1 minute 53 seconds. It's a miracle.
We still aren't smiling. Its been a full year, a service pack, and a command
line tweak to get performance better than what XP had to offer. MS has burnt
a lot of credibility with me with their utter silence on this issue--and
how, if they eat their own dogfood, that this issue ever got out the door
without being caught and killed. But there is light at the end of the Vista
tunnel--and maybe all the hair I have pulled out will grow back in brown and
not gray :) 


Anyway, it's worth looking at.
Dennis

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


Re: [Samba] Samba 3: bad read performance

2008-04-18 Thread Dmitry V Shurupov
 Can you test the latest CIFSFS code from Steve French, as well
 as the latest Samba 3.2 code ? We've added the ability for
 CIFSFS to do 16mb streaming read/writes, which should significantly
 help a set up like yours.
 
 Jeremy.

Could you define more exactly the latest code, please? We've
installed Samba 3.2pre2 on our server and got no (better) result while
testing with Windows client. Did you mean pre2 release or current git
version of Samba 3.2 branch?

And the same for CIFSFS: if you're not about CIFSFS 1.52 included in
latest stable Linux kernel (2.6.25)--where can we find this code?


-- 
Dmitry Shurupov,
http://www.shurupov.ru/

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


Re: [Samba] Samba and Vista profile probs

2008-04-18 Thread Charles Marcus

On 4/18/2008, Andrea Venturoli ([EMAIL PROTECTED]) wrote:


I have \\PDC\username as home dir and \\PDF\username\profile[.V2] 
there. 


Not a good idea...

MS says you are asking for trouble if you put the profile inside the 
user home ...


Profiles shoudl be in etheir own, separate share...

--

Best regards,

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


[Samba] Can't kill smbd process

2008-04-18 Thread Mathieu Beaudoin
Hi,

Since this week my Samba keep accumulating smbd process that keep lock on
files and neither me as root or samba itself can't kill. The only way to
release the locked files is to reboot the machine and this is really
annoying for all the clients. I read in a forum that this might be link with
a kernel corruption, but this threads hasn't been active in a long time and
wasn't so clear about the corruption. So I turn on your experiences and
knowledge to help me find a solution to this problem.

 

I run Samba 3.0.26a-3.5 on Opensuse 10.3 with the 2.6.22.17-0.1-default.

I don't thing the problem come from my smb.conf, the deadtime is set to 10
minutes but since those process keep a lock on files they are not kill after
10 minutes of inactivity.

 

 

[global]

  workgroup = Bidon

  server string = PDC - File Server

  log file = /log/samba.log

  server signing = auto

  deadtime = 10

  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

  printcap name = cups

  add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody
-s /bin/false %m$

  logon path = \\%L\profiles\.msprofile

  logon drive = P:

  logon home = \\%L\%U\.9xprofile

  domain logons = Yes

  preferred master = Yes

  domain master = Yes

  wins proxy = Yes

  wins server = eth0:10.0.0.11

  wins support = Yes

  ldap ssl = no

  acl group control = Yes

  profile acls = Yes

  map acl inherit = Yes

  printing = cups

  cups options = raw

  print command = 

  lpq command = %p

  lprm command = 

  store dos attributes = Yes

  strict locking = Yes

  include = /etc/samba/dhcp.conf

 

[data]

  comment = data

  path = /data/data

  read only = No

  inherit permissions = Yes

  inherit acls = Yes

  inherit owner = Yes

  use sendfile = Yes

  dos filemode = Yes

  dos filetime resolution = Yes 

 

[email]

  path = /data/email/

  read only = No

  browseable = No

  blocking locks = No

  locking = No

  oplocks = No

  level2 oplocks = No

  posix locking = No

  strict locking = No

  dos filemode = Yes

  dos filetime resolution = Yes

 

Thank you,

 

Mathieu Beaudoin

Responsable des T.I.

CVT Corp

Technologies de vitesse variable

Variable Speed Technologies

 

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


Re: [Samba] Can't kill smbd process

2008-04-18 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mathieu Beaudoin wrote:
 Hi,
 
 Since this week my Samba keep accumulating smbd process that keep lock on
 files and neither me as root or samba itself can't kill. The only way to
 release the locked files is to reboot the machine and this is really
 annoying for all the clients. I read in a forum that this might be link with
 a kernel corruption, but this threads hasn't been active in a long time and
 wasn't so clear about the corruption. So I turn on your experiences and
 knowledge to help me find a solution to this problem.
 
  
 
 I run Samba 3.0.26a-3.5 on Opensuse 10.3 with the 2.6.22.17-0.1-default.
 
 I don't thing the problem come from my smb.conf, the deadtime is set to 10
 minutes but since those process keep a lock on files they are not kill after
 10 minutes of inactivity.
 
  
 
  
 
 [global]
 
   workgroup = Bidon
 
   server string = PDC - File Server
 
   log file = /log/samba.log
 
   server signing = auto
 
   deadtime = 10
 
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 
   printcap name = cups
 
   add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody
 -s /bin/false %m$
 
   logon path = \\%L\profiles\.msprofile
 
   logon drive = P:
 
   logon home = \\%L\%U\.9xprofile
 
   domain logons = Yes
 
   preferred master = Yes
 
   domain master = Yes
 
   wins proxy = Yes
 
   wins server = eth0:10.0.0.11
 
   wins support = Yes
 
   ldap ssl = no
 
   acl group control = Yes
 
   profile acls = Yes
 
   map acl inherit = Yes
 
   printing = cups
 
   cups options = raw
 
   print command = 
 
   lpq command = %p
 
   lprm command = 
 
   store dos attributes = Yes
 
   strict locking = Yes
 
   include = /etc/samba/dhcp.conf
 
  
 
 [data]
 
   comment = data
 
   path = /data/data
 
   read only = No
 
   inherit permissions = Yes
 
   inherit acls = Yes
 
   inherit owner = Yes
 
   use sendfile = Yes
 
   dos filemode = Yes
 
   dos filetime resolution = Yes 
 
  
 
 [email]
 
   path = /data/email/
 
   read only = No
 
   browseable = No
 
   blocking locks = No
 
   locking = No
 
   oplocks = No
 
   level2 oplocks = No
 
   posix locking = No
 
   strict locking = No
 
   dos filemode = Yes
 
   dos filetime resolution = Yes

I've seen written here many times that the TCP options are old/no longer
needed. Not that I expect that removing them will fix anything.

Seems to me you have an awful lot things defined specifically there. I
don't know how those relate to the defaults. Or is that testparm -v output?

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFICQqrmb+gadEcsb4RAmjxAKCQudeurwtv7YWf20mPvr/5pTVUqACfbF+z
bTXN5/lgADDY5qywZKJEzp0=
=IXls
-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] file permissions?

2008-04-18 Thread Mike Eggleston
Hi,

I know there is a parameter to set all files coming to unix as something
0744. I have that set and it's working fine. Is there a way to map
specific file groups, like *.pl, to 0755?

Mike

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


Re: [Samba] Samba and Vista profile probs

2008-04-18 Thread John Drescher
  Not a good idea...

  MS says you are asking for trouble if you put the profile inside the user
 home ...

I have seen that however we have had it that way with samba for at
least 6 years without a single problem.

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


Re: [Samba] Samba and Vista profile probs

2008-04-18 Thread Charles Marcus

On 4/18/2008 5:12 PM, John Drescher wrote:

 Not a good idea...

MS says you are asking for trouble if you put the profile inside
the user home ...


I have seen that however we have had it that way with samba for at 
least 6 years without a single problem.


Hopefully you're knocking on wood right now...

The way I see it, no sense in living dangerously... its not like its 
hard to use a separate share...


But its a free world, no?  :)

--

Best regards,

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


Re: [Samba] Samba and Vista profile probs

2008-04-18 Thread John Drescher
  Hopefully you're knocking on wood right now...

No. I am not at all worried.

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


[Samba] problem with [homes] share for users with unix logins

2008-04-18 Thread Wes Modes
I have the [homes] section set up in my smb.conf so that 
\\server.name\user connects to the user's home directory.  Since I am 
using OpenLDAP as a backend via smbldap-tools, for most users the home 
directory comes from the homeDirectory variable in OpenLDAP.


However, when I have a user who also has a login on the samba machine, 
that is, an entry in /etc/passwd, Samba seems to ignore the value of 
homeDirectory and use the entry in /etc/passwd instead.


Here is the section from smb.conf

[homes]
   comment = %u's Personal Share Directory

   browseable = no
   valid users = %S @admin
   write list = %S @admin
   create mask = 0600
   directory mask = 0700

I even tried adding the line

   path = /data/home/%S

to the [homes] section, but it seems to be ignored.

Any suggestions how I can make Samba prefer the value in HomeDirectory 
over /etc/passwd?


Wes

--

Wes Modes
Server Administrator  Programmer Analyst
McHenry Library
Computing  Network Services
Information and Technology Services
459-5208
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Unix ADS group membership or vice versa

2008-04-18 Thread TC Hough
Hello,

I have a Samba server set up as a member of an Active Directory domain. 
Authentication works great and my Windows users are able to log on to the
Linux workstation without any problems.

What I'd like to do is set up some of my local Unix accounts as members of
ADS groups.  Is this possible with Samba?  If not, would it be possible to
make an ADS account a member of a local Unix group?

I'm running Samba 3.0.22 that comes with Ubuntu 6.06.

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


Re: [Samba] Unix ADS group membership or vice versa

2008-04-18 Thread Ryan Bair
You can't make a local user a member of an AD group since AD needs to
know about them.

You can however add an AD user to a local group just like you would
for a local user.

This is true with normal LDAP accounts as well.

On Fri, Apr 18, 2008 at 8:09 PM, TC Hough [EMAIL PROTECTED] wrote:
 Hello,

  I have a Samba server set up as a member of an Active Directory domain.
  Authentication works great and my Windows users are able to log on to the
  Linux workstation without any problems.

  What I'd like to do is set up some of my local Unix accounts as members of
  ADS groups.  Is this possible with Samba?  If not, would it be possible to
  make an ADS account a member of a local Unix group?

  I'm running Samba 3.0.22 that comes with Ubuntu 6.06.

  Thanks in advance!
  TC Hough
  --
  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] Annoying Winbind Pause While Looking Up Permissions

2008-04-18 Thread Humrick, Matt
Our linux SLES10 fileserver is running Samba (3.0.28) and is a domain
member in a Win2003 AD. Everything has been working fine for several
months with the exception of an annoying pause that occurs while
browsing shares. The pause will last 30 seconds and occurs roughly once
every 5-10 minutes. The pause is universal, meaning, that all Windows
clients trying to browse or access files will see this pause, as well
as, any Linux processes (like doing 'ls -l'). Basically, any command
that requires winbind to determine access privileges pauses. This only
occurs for objects that have AD users or groups.

Here's the system info:
Samba 3.0.28 (3.0.25a and 3.0.25c also had this problem)
Krb5 1.4.3
Linux 2.6.16 (x64)

All of the usual tests work:
wbinfo -t
wbinfo -u
wbinfo -g
net ads join
kinit
etc...

I finally had time to investigate this further. All I did was 'ls -l
/share' where /share contained files with domain permissions. The
command paused for 30 seconds before finally listing the files
correctly. All Windows clients experience this same pause at the same
time also. Here's the data I collected:

# tcpdump -n -r tcpdump
reading from file tcpdump, link-type EN10MB (Ethernet)
16:52:20.838780 IP 192.168.1.210.44072  192.168.1.207.389: P
117:143(26) ack 214 win 1460 nop,nop,timestamp 1551335289 70870460
16:52:20.838951 IP 192.168.1.207.389  192.168.1.210.44072: P
214:333(119) ack 143 win 65393 nop,nop,timestamp 70870460 1551335289
16:52:20.839894 IP 192.168.1.210.32891  192.168.1.207.88:  v5
16:52:20.840419 IP 192.168.1.207.88  192.168.1.210.32891:
16:52:20.873183 IP 192.168.1.210.58864  192.168.1.207.445: . ack 1771
win 2800 nop,nop,timestamp 1551335298 70870460
16:52:20.877180 IP 192.168.1.210.44072  192.168.1.207.389: . ack 333
win 1460 nop,nop,timestamp 1551335299 70870460
16:52:30.837599 IP 192.168.1.210.32891  192.168.1.207.88:  v5
16:52:30.838482 IP 192.168.1.207.88  192.168.1.210.32891:  v5
16:52:40.837652 IP 192.168.1.210.32891  192.168.1.207.88:
16:52:40.838606 IP 192.168.1.207.88  192.168.1.210.32891:
16:52:50.837439 IP 192.168.1.210.44072  192.168.1.207.389: P
143:1410(1267) ack 333 win 1460 nop,nop,timestamp 1551342789 70870460
16:52:50.838112 IP 192.168.1.207.389  192.168.1.210.44072: P
333:383(50) ack 1410 win 64126 nop,nop,timestamp 70870761 1551342789

192.168.1.210 is the Linux server running Samba and 192.168.1.207 is the
Windows domain controller. You'll notice that everything is humming
along smoothly through time 16:52:20. Between 16:52:20 and 16:52:50 is
the 30 second delay. My understanding is that port 88 is related to
Kerberos. Running tcpdump while executing the same command again yields
instant results with identical network traffic minus the port 88
requests.


# strace -T -t ls -l /share
16:52:20 read(4, /var/lib/samba/winbindd_privileg..., 35) = 35
0.09
16:52:20 lstat(/var/lib/samba/winbindd_privileged,
{st_mode=S_IFDIR|0750, st_size=72, ...}) = 0 0.11
16:52:20 lstat(/var/lib/samba/winbindd_privileged/pipe,
{st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0 0.11
16:52:20 socket(PF_FILE, SOCK_STREAM, 0) = 5 0.11
16:52:20 fcntl(5, F_GETFL)  = 0x2 (flags O_RDWR) 0.06
16:52:20 fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 0.07
16:52:20 fcntl(5, F_GETFD)  = 0 0.06
16:52:20 fcntl(5, F_SETFD, FD_CLOEXEC)  = 0 0.06
16:52:20 connect(5, {sa_family=AF_FILE,
path=/var/lib/samba/winbindd_privileged/pipe}, 110) = 0 0.18
16:52:20 close(4)   = 0 0.11
16:52:20 select(6, [5], NULL, NULL, {0, 0}) = 0 (Timeout) 0.07
16:52:20 write(5,
(\10\0\0\4\0\0\0d\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 2088) =
2088 0.11
16:52:20 select(6, [5], NULL, NULL, {5, 0}) = 0 (Timeout) 4.997279
16:52:25 select(6, [5], NULL, NULL, {5, 0}) = 0 (Timeout) 4.999895
16:52:30 select(6, [5], NULL, NULL, {5, 0}) = 0 (Timeout) 4.999885
16:52:35 select(6, [5], NULL, NULL, {5, 0}) = 0 (Timeout) 4.14
16:52:40 select(6, [5], NULL, NULL, {5, 0}) = 0 (Timeout) 4.999891
16:52:45 select(6, [5], NULL, NULL, {5, 0}) = 0 (Timeout) 4.16
16:52:50 select(6, [5], NULL, NULL, {5, 0}) = 1 (in [5], left {4,
968000}) 0.033682
16:52:50 read(5, \354\f\0\0\2\0\0\0STARTREK-phx_api_release..., 3240)
= 3240 0.14

Notice the chain of select() calls between 16:52:20 and 16:52:50 that
all timeout after 5 seconds for a total of 30 seconds!

Finally, here's the relevant section of the winbind log:
[2008/04/18 16:52:20, 4] libsmb/namequery.c:get_dc_list(1599)
  get_dc_list: returning 2 ip addresses in an ordered list
[2008/04/18 16:52:20, 4] libsmb/namequery.c:get_dc_list(1600)
  get_dc_list: 192.168.1.207:389 192.0.2.224:389
[2008/04/18 16:52:20, 5] libads/ldap.c:ads_try_connect(180)
  ads_try_connect: sending CLDAP request to 192.168.1.207 (realm:
STARTREK.LOCAL)
[2008/04/18 16:52:20, 3] libads/ldap.c:ads_connect(394)
  Connected to LDAP server 192.168.1.207
[2008/04/18 16:52:20, 4] libads/ldap.c:ads_current_time(2414)
  time offset is 23 seconds
[2008/04/18 

Re: [Samba] LVM + xfs + Shadow copy

2008-04-18 Thread David Disseldorp
On Fri, 18 Apr 2008 09:40:33 +0200 (CEST)
Adam Roland [EMAIL PROTECTED] wrote:

 the whole thing gonna be fine :)
 i see previous versions, so sun lights upon my face ...

Great to hear.

 
 the xfs_freeze -f /home/ command does make the process hangup at lvcreating, 
 so i doesn't use,
 by the way, i really don't understand whats the purpose of xfs_freeze,
 does it matter when i use snapshotting at 500GB size of partition, but don't 
 care about xfs_freeze?

Running xfs_freeze -f before the snapshot is taken is very important, as
it ensures the filesystem will not be modified while the snapshot is
taken. Snapshots may be corrupted if the filesystem is not frozen.

xfs_freeze -f may take some time, as it waits for all outstanding
transactions to complete before returning, however if it is hanging
indefinately you should report the bug to [EMAIL PROTECTED] with your
kernel and xfs-progs versions.


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


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-981-gb496f13

2008-04-18 Thread Jeremy Allison
The branch, v3-2-test has been updated
   via  b496f133228b74bf613dab81167a5b9670511c51 (commit)
  from  edb0092e4d66496181de4e21c91d398d54208e60 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit b496f133228b74bf613dab81167a5b9670511c51
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Fri Apr 18 00:30:50 2008 -0700

Janitor for tridge. Keep lib/replace in sync with the gcc4
changes.
Jeremy.

---

Summary of changes:
 source/lib/replace/libreplace_cc.m4 |3 ++-
 source/lib/replace/replace.c|2 +-
 source/lib/replace/replace.h|2 +-
 source/librpc/ndr/ndr_basic.c   |4 ++--
 4 files changed, 6 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/replace/libreplace_cc.m4 
b/source/lib/replace/libreplace_cc.m4
index bf50568..0ce0958 100644
--- a/source/lib/replace/libreplace_cc.m4
+++ b/source/lib/replace/libreplace_cc.m4
@@ -132,7 +132,8 @@ AC_CHECK_SIZEOF(off_t)
 AC_CHECK_SIZEOF(size_t)
 AC_CHECK_SIZEOF(ssize_t)
 
-AC_CHECK_TYPE(intptr_t, unsigned long long)
+AC_CHECK_TYPE(intptr_t, long long)
+AC_CHECK_TYPE(uintptr_t, unsigned long long)
 AC_CHECK_TYPE(ptrdiff_t, unsigned long long)
 
 if test x$ac_cv_type_long_long != xyes;then
diff --git a/source/lib/replace/replace.c b/source/lib/replace/replace.c
index 6930f9b..443da2a 100644
--- a/source/lib/replace/replace.c
+++ b/source/lib/replace/replace.c
@@ -458,7 +458,7 @@ char *rep_strcasestr(const char *haystack, const char 
*needle)
for (s=haystack;*s;s++) {
if (toupper(*needle) == toupper(*s) 
strncasecmp(s, needle, nlen) == 0) {
-   return (char *)((intptr_t)s);
+   return (char *)((uintptr_t)s);
}
}
return NULL;
diff --git a/source/lib/replace/replace.h b/source/lib/replace/replace.h
index 5fe7939..bf95169 100644
--- a/source/lib/replace/replace.h
+++ b/source/lib/replace/replace.h
@@ -499,7 +499,7 @@ typedef int bool;
   Also, please call this via the discard_const_p() macro interface, as that
   makes the return type safe.
 */
-#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
+#define discard_const(ptr) ((void *)((uintptr_t)(ptr)))
 
 /** Type-safe version of discard_const */
 #define discard_const_p(type, ptr) ((type *)discard_const(ptr))
diff --git a/source/librpc/ndr/ndr_basic.c b/source/librpc/ndr/ndr_basic.c
index f342c6e..c8fa70b 100644
--- a/source/librpc/ndr/ndr_basic.c
+++ b/source/librpc/ndr/ndr_basic.c
@@ -196,7 +196,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_hyper(struct ndr_pull 
*ndr, int ndr_flags, u
 */
 _PUBLIC_ enum ndr_err_code ndr_pull_pointer(struct ndr_pull *ndr, int 
ndr_flags, void* *v)
 {
-   intptr_t h;
+   uintptr_t h;
NDR_PULL_ALIGN(ndr, sizeof(h));
NDR_PULL_NEED_BYTES(ndr, sizeof(h));
memcpy(h, ndr-data+ndr-offset, sizeof(h));
@@ -393,7 +393,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_hyper(struct ndr_push 
*ndr, int ndr_flags, u
 */
 _PUBLIC_ enum ndr_err_code ndr_push_pointer(struct ndr_push *ndr, int 
ndr_flags, void* v)
 {
-   intptr_t h = (intptr_t)v;
+   uintptr_t h = (intptr_t)v;
NDR_PUSH_ALIGN(ndr, sizeof(h));
NDR_PUSH_NEED_BYTES(ndr, sizeof(h));
memcpy(ndr-data+ndr-offset, h, sizeof(h));


-- 
Samba Shared Repository


Re: [SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-975-g7c2e735

2008-04-18 Thread Stefan (metze) Metzmacher
 commit 5c454e77cf664fee65fcb03e5811764c92e73696
 Author: Gerald W. Carter [EMAIL PROTECTED]
 Date:   Thu Apr 17 18:06:10 2008 +0200
 
 Add wbcListTrusts() API call to libwbclient.so
 

Hi Jerry,

as this changes the wbcDomainInfo structure,
it might be useful to add some additional infos
about the online/offline status of the domain,
so that we can drop the seqnum stuff.

metze




signature.asc
Description: OpenPGP digital signature


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-983-ge1abff3

2008-04-18 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  e1abff301449ad528194206fd953670057eaa12d (commit)
   via  dbef92c2b2ae6786cf527715adbbd7db8b334fcc (commit)
  from  b496f133228b74bf613dab81167a5b9670511c51 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit e1abff301449ad528194206fd953670057eaa12d
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Fri Apr 18 11:42:51 2008 +0200

IDL: make idl.

Guenther

commit dbef92c2b2ae6786cf527715adbbd7db8b334fcc
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Fri Apr 18 11:41:35 2008 +0200

IDL: Add type 23 in nbt_ntlogon_request reply packets.

Guenther

---

Summary of changes:
 source/librpc/gen_ndr/nbt.h |1 +
 source/librpc/gen_ndr/ndr_nbt.c |   18 ++
 source/librpc/idl/nbt.idl   |1 +
 3 files changed, 20 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/librpc/gen_ndr/nbt.h b/source/librpc/gen_ndr/nbt.h
index 151a94b..8f2c38a 100644
--- a/source/librpc/gen_ndr/nbt.h
+++ b/source/librpc/gen_ndr/nbt.h
@@ -625,6 +625,7 @@ struct nbt_ntlogon_sam_logon_reply {
 union nbt_ntlogon_request {
struct nbt_ntlogon_sam_logon logon;/* [case(NTLOGON_SAM_LOGON)] */
struct nbt_ntlogon_sam_logon_reply reply;/* 
[case(NTLOGON_SAM_LOGON_REPLY)] */
+   struct nbt_netlogon_response_from_pdc2 reply2;/* 
[case(NETLOGON_RESPONSE_FROM_PDC2)] */
 }/* [nodiscriminant] */;
 
 struct nbt_ntlogon_packet {
diff --git a/source/librpc/gen_ndr/ndr_nbt.c b/source/librpc/gen_ndr/ndr_nbt.c
index c617641..45fd54d 100644
--- a/source/librpc/gen_ndr/ndr_nbt.c
+++ b/source/librpc/gen_ndr/ndr_nbt.c
@@ -3184,6 +3184,10 @@ static enum ndr_err_code 
ndr_push_nbt_ntlogon_request(struct ndr_push *ndr, int

NDR_CHECK(ndr_push_nbt_ntlogon_sam_logon_reply(ndr, NDR_SCALARS, r-reply));
break; }
 
+   case NETLOGON_RESPONSE_FROM_PDC2: {
+   
NDR_CHECK(ndr_push_nbt_netlogon_response_from_pdc2(ndr, NDR_SCALARS, 
r-reply2));
+   break; }
+
default:
return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, 
Bad switch value %u, level);
}
@@ -3201,6 +3205,9 @@ static enum ndr_err_code 
ndr_push_nbt_ntlogon_request(struct ndr_push *ndr, int
case NTLOGON_SAM_LOGON_REPLY15:
break;
 
+   case NETLOGON_RESPONSE_FROM_PDC2:
+   break;
+
default:
return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, 
Bad switch value %u, level);
}
@@ -3226,6 +3233,10 @@ static enum ndr_err_code 
ndr_pull_nbt_ntlogon_request(struct ndr_pull *ndr, int

NDR_CHECK(ndr_pull_nbt_ntlogon_sam_logon_reply(ndr, NDR_SCALARS, r-reply));
break; }
 
+   case NETLOGON_RESPONSE_FROM_PDC2: {
+   
NDR_CHECK(ndr_pull_nbt_netlogon_response_from_pdc2(ndr, NDR_SCALARS, 
r-reply2));
+   break; }
+
default:
return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, 
Bad switch value %u, level);
}
@@ -3242,6 +3253,9 @@ static enum ndr_err_code 
ndr_pull_nbt_ntlogon_request(struct ndr_pull *ndr, int
case NTLOGON_SAM_LOGON_REPLY15:
break;
 
+   case NETLOGON_RESPONSE_FROM_PDC2:
+   break;
+
default:
return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, 
Bad switch value %u, level);
}
@@ -3267,6 +3281,10 @@ _PUBLIC_ void ndr_print_nbt_ntlogon_request(struct 
ndr_print *ndr, const char *n
ndr_print_nbt_ntlogon_sam_logon_reply(ndr, reply, 
r-reply);
break;
 
+   case NETLOGON_RESPONSE_FROM_PDC2:
+   ndr_print_nbt_netlogon_response_from_pdc2(ndr, 
reply2, r-reply2);
+   break;
+
default:
ndr_print_bad_level(ndr, name, level);
}
diff --git a/source/librpc/idl/nbt.idl b/source/librpc/idl/nbt.idl
index e5efe17..4dc7972 100644
--- a/source/librpc/idl/nbt.idl
+++ b/source/librpc/idl/nbt.idl
@@ -579,6 +579,7 @@ interface nbt
[case(NTLOGON_SAM_LOGON)]   nbt_ntlogon_sam_logon logon;
[case(NTLOGON_SAM_LOGON_REPLY)] nbt_ntlogon_sam_logon_reply 
reply;
[case(NTLOGON_SAM_LOGON_REPLY15)] nbt_ntlogon_sam_logon_reply 
reply;
+   [case(NETLOGON_RESPONSE_FROM_PDC2)] 
nbt_netlogon_response_from_pdc2 reply2;
} nbt_ntlogon_request;
 

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-248-ge2489de

2008-04-18 Thread Andrew Tridgell
The branch, v4-0-test has been updated
   via  e2489de8de7d6e4839f29166f1881df3550a502d (commit)
   via  b2dac6645c3bce45ab2178b9f5b4e017486b5b8e (commit)
  from  43fc10aaa7c3d50cb9fee5ecab859103aec4a62e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit e2489de8de7d6e4839f29166f1881df3550a502d
Merge: b2dac6645c3bce45ab2178b9f5b4e017486b5b8e 
43fc10aaa7c3d50cb9fee5ecab859103aec4a62e
Author: Andrew Tridgell [EMAIL PROTECTED]
Date:   Fri Apr 18 15:42:55 2008 +0200

Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 
v4-0-test

commit b2dac6645c3bce45ab2178b9f5b4e017486b5b8e
Author: Andrew Tridgell [EMAIL PROTECTED]
Date:   Fri Apr 18 15:41:54 2008 +0200

change the default idmap range to 3M - 4M

This gives us a lot more headroom, and means that we have a lower
chance of running into real local users

---

Summary of changes:
 source/setup/idmap_init.ldif |5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/setup/idmap_init.ldif b/source/setup/idmap_init.ldif
index a397cfd..43e5b65 100644
--- a/source/setup/idmap_init.ldif
+++ b/source/setup/idmap_init.ldif
@@ -1,5 +1,4 @@
 dn: CN=CONFIG
 cn: CONFIG
-lowerBound: 1
-upperBound: 2
-
+lowerBound: 300
+upperBound: 400


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-249-g3c21751

2008-04-18 Thread Andrew Tridgell
The branch, v4-0-test has been updated
   via  3c217518ba9a7b64fe6c842187499f1ee5189567 (commit)
  from  e2489de8de7d6e4839f29166f1881df3550a502d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 3c217518ba9a7b64fe6c842187499f1ee5189567
Author: Andrew Tridgell [EMAIL PROTECTED]
Date:   Fri Apr 18 16:23:48 2008 +0200

fixed a double free in winbind

state-domain-netlogon_binding is a child of ctx, and ctx is freed by
the composite_is_ok failure callback

---

Summary of changes:
 source/winbind/wb_init_domain.c |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/winbind/wb_init_domain.c b/source/winbind/wb_init_domain.c
index c1325bf..8b82ab7 100644
--- a/source/winbind/wb_init_domain.c
+++ b/source/winbind/wb_init_domain.c
@@ -209,7 +209,6 @@ static void init_domain_recv_netlogonpipe(struct 
composite_context *ctx)
   
state-domain-netlogon_pipe);

if (!composite_is_ok(state-ctx)) {
-   talloc_free(state-domain-netlogon_binding);
return;
}
talloc_steal(state-domain-netlogon_pipe, 
state-domain-netlogon_binding);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-251-g8e4f16e

2008-04-18 Thread Stefan Metzmacher
The branch, v4-0-test has been updated
   via  8e4f16e975e192709f398c98650cbe9fe2a76261 (commit)
   via  d06eafea1a3e7fa61c94492cf504e6fd81da861d (commit)
  from  3c217518ba9a7b64fe6c842187499f1ee5189567 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 8e4f16e975e192709f398c98650cbe9fe2a76261
Author: Amin Azez [EMAIL PROTECTED]
Date:   Mon Mar 10 10:06:12 2008 +

Flag smb messages array with AND_X and LARGE_REQUEST

If smb_messages flags show for which opcodes VWV(0)
signifies chaining modes, and also which opcodes can
have requests 64K then the bcc / req-in.data_size
fixup in smbsrv_recv_smb_request can be more safely
applied.

This fix permits nttrans requests 64K to be handled.
It is not yet clear if THAT is a good thing, but this
fix does the current thing more nicely.

commit d06eafea1a3e7fa61c94492cf504e6fd81da861d
Author: Amin Azez [EMAIL PROTECTED]
Date:   Mon Mar 10 10:03:38 2008 +

Re-order smbsrv_recv_smb_request and smb_messages

No functional change, just re-ordering so that
smbsrv_recv_smb_request can refer to smb_messages
in a future patch

---

Summary of changes:
 source/smb_server/smb/receive.c |  227 --
 1 files changed, 119 insertions(+), 108 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smb_server/smb/receive.c b/source/smb_server/smb/receive.c
index e3d247c..6cf33cf 100644
--- a/source/smb_server/smb/receive.c
+++ b/source/smb_server/smb/receive.c
@@ -65,111 +65,16 @@ NTSTATUS smbsrv_send_oplock_break(void *p, struct 
ntvfs_handle *ntvfs, uint8_t l
 
 static void switch_message(int type, struct smbsrv_request *req);
 
-/
-receive a SMB request header from the wire, forming a request_context
-from the result
-/
-NTSTATUS smbsrv_recv_smb_request(void *private, DATA_BLOB blob)
-{
-   struct smbsrv_connection *smb_conn = talloc_get_type(private, struct 
smbsrv_connection);
-   struct smbsrv_request *req;
-   struct timeval cur_time = timeval_current();
-   uint8_t command;
-
-   smb_conn-statistics.last_request_time = cur_time;
-
-   /* see if its a special NBT packet */
-   if (CVAL(blob.data, 0) != 0) {
-   req = smbsrv_init_request(smb_conn);
-   NT_STATUS_HAVE_NO_MEMORY(req);
-
-   ZERO_STRUCT(req-in);
-
-   req-in.buffer = talloc_steal(req, blob.data);
-   req-in.size = blob.length;
-   req-request_time = cur_time;
-
-   smbsrv_reply_special(req);
-   return NT_STATUS_OK;
-   }
-
-   if ((NBT_HDR_SIZE + MIN_SMB_SIZE)  blob.length) {
-   DEBUG(2,(Invalid SMB packet: length %ld\n, 
(long)blob.length));
-   smbsrv_terminate_connection(smb_conn, Invalid SMB packet);
-   return NT_STATUS_OK;
-   }
-
-   /* Make sure this is an SMB packet */
-   if (IVAL(blob.data, NBT_HDR_SIZE) != SMB_MAGIC) {
-   DEBUG(2,(Non-SMB packet of length %ld. Terminating 
connection\n,
-(long)blob.length));
-   smbsrv_terminate_connection(smb_conn, Non-SMB packet);
-   return NT_STATUS_OK;
-   }
-
-   req = smbsrv_init_request(smb_conn);
-   NT_STATUS_HAVE_NO_MEMORY(req);
-
-   req-in.buffer = talloc_steal(req, blob.data);
-   req-in.size = blob.length;
-   req-request_time = cur_time;
-   req-chained_fnum = -1;
-   req-in.allocated = req-in.size;
-   req-in.hdr = req-in.buffer + NBT_HDR_SIZE;
-   req-in.vwv = req-in.hdr + HDR_VWV;
-   req-in.wct = CVAL(req-in.hdr, HDR_WCT);
-   if (req-in.vwv + VWV(req-in.wct) = req-in.buffer + req-in.size) {
-   req-in.data = req-in.vwv + VWV(req-in.wct) + 2;
-   req-in.data_size = SVAL(req-in.vwv, VWV(req-in.wct));
-
-   /* the bcc length is only 16 bits, but some packets
-  (such as SMBwriteX) can be much larger than 64k. We
-  detect this by looking for a large non-chained NBT
-  packet (at least 64k bigger than what is
-  specified). If it is detected then the NBT size is
-  used instead of the bcc size */
-   if (req-in.data_size + 0x1 = 
-   req-in.size - PTR_DIFF(req-in.data, req-in.buffer) 
-   (req-in.wct  1 || SVAL(req-in.vwv, VWV(0)) == 
SMB_CHAIN_NONE)) {
-   /* its an oversized packet! fun for all the family */
-   req-in.data_size = req-in.size - 
PTR_DIFF(req-in.data,req-in.buffer);
-   }
-   }
-
-   

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-252-gc7f34f4

2008-04-18 Thread Stefan Metzmacher
The branch, v4-0-test has been updated
   via  c7f34f41c3f9f0c3f75a618dfaf566706014a6b4 (commit)
  from  8e4f16e975e192709f398c98650cbe9fe2a76261 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit c7f34f41c3f9f0c3f75a618dfaf566706014a6b4
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Fri Apr 18 22:20:49 2008 +0200

build: fix the build rule for .o files

metze

---

Summary of changes:
 source/build/make/rules.mk |4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/build/make/rules.mk b/source/build/make/rules.mk
index faefb4e..541fa01 100644
--- a/source/build/make/rules.mk
+++ b/source/build/make/rules.mk
@@ -211,7 +211,9 @@ include/includes.d: include/includes.h
@echo Compiling $
@-mkdir -p `dirname [EMAIL PROTECTED]
@$(COMPILE)  exit 0 ; \
-   $(COMPILE) 
+   echo The following command failed: 12;\
+   echo $(COMPILE) 12;\
+   $(COMPILE) /dev/null 21
 
 
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-259-g914f0ac

2008-04-18 Thread Stefan Metzmacher
The branch, v4-0-test has been updated
   via  914f0ac83bc396be0ca34c43e2ea01ecc1c3b826 (commit)
   via  b781bb733c9a563457f87c94abe8c91b426c07ee (commit)
   via  2306394dcc22ff2be8581256a5cf91eef4993078 (commit)
   via  58189b87eade62b717c2c17c679e482786bf2098 (commit)
   via  7f545dbbf0186fe552e4c49a3f618862cb4771e7 (commit)
   via  5ffea702c3a1c92a797afab1a3cadf2f2a18729f (commit)
   via  60c4a4fc1afe88716ac63d3ea430e07fea7b9991 (commit)
  from  c7f34f41c3f9f0c3f75a618dfaf566706014a6b4 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 914f0ac83bc396be0ca34c43e2ea01ecc1c3b826
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Sat Apr 19 00:13:42 2008 +0200

torture/smb2: add a simple SMB2-OPLOCK-BATCH1 test

metze

commit b781bb733c9a563457f87c94abe8c91b426c07ee
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Fri Apr 18 22:32:25 2008 +0200

ntvfs_generic: map RAW_LOCK_SMB2_BREAK to RAW_LOCK_GENERIC

metze

commit 2306394dcc22ff2be8581256a5cf91eef4993078
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Fri Apr 18 22:30:12 2008 +0200

smb_server/smb2: handle incoming oplock releases

metze

commit 58189b87eade62b717c2c17c679e482786bf2098
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Fri Apr 18 22:27:24 2008 +0200

libcli/smb2: make it possible to handle incoming oplock requests

metze

commit 7f545dbbf0186fe552e4c49a3f618862cb4771e7
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Fri Apr 18 22:24:21 2008 +0200

libcli/smb2: add smb2_break() calls

metze

commit 5ffea702c3a1c92a797afab1a3cadf2f2a18729f
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Fri Apr 18 22:19:08 2008 +0200

libcli: define structure for SMB2 Break

metze

commit 60c4a4fc1afe88716ac63d3ea430e07fea7b9991
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Sat Apr 19 00:14:52 2008 +0200

ntvfs_generic: fix mapping the granted oplocks for SMB2

metze

---

Summary of changes:
 source/libcli/raw/interfaces.h  |   17 +++-
 source/libcli/smb2/{flush.c = break.c} |   42 ---
 source/libcli/smb2/config.mk|2 +-
 source/libcli/smb2/smb2.h   |   11 ++
 source/libcli/smb2/transport.c  |   43 
 source/ntvfs/ntvfs_generic.c|   23 -
 source/smb_server/smb2/fileio.c |   31 +-
 source/torture/smb2/config.mk   |3 +-
 source/torture/smb2/oplocks.c   |  178 +++
 source/torture/smb2/smb2.c  |1 +
 10 files changed, 326 insertions(+), 25 deletions(-)
 copy source/libcli/smb2/{flush.c = break.c} (54%)
 create mode 100644 source/torture/smb2/oplocks.c


Changeset truncated at 500 lines:

diff --git a/source/libcli/raw/interfaces.h b/source/libcli/raw/interfaces.h
index cf5a3aa..bad3743 100644
--- a/source/libcli/raw/interfaces.h
+++ b/source/libcli/raw/interfaces.h
@@ -1862,7 +1862,8 @@ enum smb_lock_level {
RAW_LOCK_LOCK,
RAW_LOCK_UNLOCK,
RAW_LOCK_LOCKX,
-   RAW_LOCK_SMB2
+   RAW_LOCK_SMB2,
+   RAW_LOCK_SMB2_BREAK
 };
 
 /* the generic interface is defined to be equal to the lockingX interface */
@@ -1925,6 +1926,20 @@ union smb_lock {
uint16_t unknown1;
} out;
} smb2;
+
+   /* SMB2 Break */
+   struct smb2_break {
+   enum smb_lock_level level;
+   struct {
+   union smb_handle file;
+
+   /* static body buffer 24 (0x18) bytes */
+   uint8_t oplock_level;
+   uint8_t reserved;
+   uint32_t reserved2;
+   /* struct smb2_handle handle; */
+   } in, out;
+   } smb2_break;
 };
 
 
diff --git a/source/libcli/smb2/flush.c b/source/libcli/smb2/break.c
similarity index 54%
copy from source/libcli/smb2/flush.c
copy to source/libcli/smb2/break.c
index 116068e..fe0cceb 100644
--- a/source/libcli/smb2/flush.c
+++ b/source/libcli/smb2/break.c
@@ -1,20 +1,20 @@
-/* 
+/*
Unix SMB/CIFS implementation.
 
-   SMB2 client flush handling
+   SMB2 client oplock break handling
+
+   Copyright (C) Stefan Metzmacher 2008
 
-   Copyright (C) Andrew Tridgell 2005
-   
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-   
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
-   
+
You 

Build status as of Sat Apr 19 00:00:02 2008

2008-04-18 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2008-04-18 
00:00:37.0 +
+++ /home/build/master/cache/broken_results.txt 2008-04-19 00:01:12.0 
+
@@ -1,4 +1,4 @@
-Build status as of Fri Apr 18 00:00:02 2008
+Build status as of Sat Apr 19 00:00:02 2008
 
 Build counts:
 Tree Total  Broken Panic 
@@ -14,7 +14,7 @@
 rsync30 12 0 
 samba-docs   0  0  0 
 samba-gtk4  4  0 
-samba_3_2_test 29 19 0 
+samba_3_2_test 30 19 0 
 samba_4_0_test 28 22 2 
 smb-build28 3  0 
 talloc   30 8  0 


[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-260-g50f6a72

2008-04-18 Thread Stefan Metzmacher
The branch, v4-0-test has been updated
   via  50f6a72b674f58a24c1a6c42e4dd56dc4e9f5a1e (commit)
  from  914f0ac83bc396be0ca34c43e2ea01ecc1c3b826 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 50f6a72b674f58a24c1a6c42e4dd56dc4e9f5a1e
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Sat Apr 19 02:06:44 2008 +0200

SMB2-PERSISTENT-HANDLES1: close the handle before deleting it

This means we no longer have a oplock break timing out
for the delete.

metze

---

Summary of changes:
 source/torture/smb2/persistent_handles.c |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/torture/smb2/persistent_handles.c 
b/source/torture/smb2/persistent_handles.c
index ace57d8..249ddd1 100644
--- a/source/torture/smb2/persistent_handles.c
+++ b/source/torture/smb2/persistent_handles.c
@@ -174,6 +174,8 @@ bool torture_smb2_persistent_handles1(struct 
torture_context *tctx,
torture_comment(tctx, position: %llu\n,
(unsigned long long)pos);
 
+   smb2_util_close(tree2, h2);
+
talloc_free(mem_ctx);
 
smb2_util_unlink(tree2, fname);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-995-g2e1b913

2008-04-18 Thread Stefan Metzmacher
The branch, v3-2-test has been updated
   via  2e1b9130635235efdbf49d0b92a43b342114246c (commit)
   via  8e9fdef792e612e41e7714a2fd4513892248 (commit)
   via  056ff094ad2c59992cfdb8b29696c08dab4113d7 (commit)
   via  f68829ff14c457bfa98cb2ef9e8ec2e1a0b1d64d (commit)
   via  9adb675a86e81c90e2bddfe984b5ac8f201fec75 (commit)
   via  658d8475336c4397e0dad341f216baf9e1eb6aaf (commit)
   via  425b3513a45cf98b53235470a3536be86d56d1c2 (commit)
   via  6b5c76bf1e880ec60d6b044c58115940549049e5 (commit)
   via  5f6c3a4f6db68c985884cbe9401a4dbe515f756b (commit)
   via  16d295d466eb18e3bccce6fb26d53012d5f2c3e8 (commit)
   via  6f67c4ddf8101b1d06889055e3767a6ce0db360c (commit)
   via  259786980a3a65fa67a4de12a65d33095fa53ce2 (commit)
  from  e1abff301449ad528194206fd953670057eaa12d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 2e1b9130635235efdbf49d0b92a43b342114246c
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 10:57:16 2008 +0200

winbindd: create the messaging conntext earlier

metze

commit 8e9fdef792e612e41e7714a2fd4513892248
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 01:02:42 2008 +0200

winbindd: call reinit_after_fork() in the child processes

metze

commit 056ff094ad2c59992cfdb8b29696c08dab4113d7
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 10:50:27 2008 +0200

nmbd: create the messaging conntext earlier

metze

commit f68829ff14c457bfa98cb2ef9e8ec2e1a0b1d64d
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 10:38:21 2008 +0200

nmbd: call reinit_after_fork() in all needed cases

metze

commit 9adb675a86e81c90e2bddfe984b5ac8f201fec75
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 01:48:44 2008 +0200

printing: call reinit_after_fork() in the backgroundqueue process

metze

commit 658d8475336c4397e0dad341f216baf9e1eb6aaf
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 10:57:45 2008 +0200

smbd: create the messaging conntext earlier

metze

commit 425b3513a45cf98b53235470a3536be86d56d1c2
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 01:01:59 2008 +0200

smbd: call reinit_after_fork() in the needed places

metze

commit 6b5c76bf1e880ec60d6b044c58115940549049e5
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Fri Apr 18 10:20:01 2008 +0200

loadparm: make it possible to just load the config without following 
include = statements

metze

commit 5f6c3a4f6db68c985884cbe9401a4dbe515f756b
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 10:36:15 2008 +0200

util: add reinit_after_fork() function

metze

commit 16d295d466eb18e3bccce6fb26d53012d5f2c3e8
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 01:50:13 2008 +0200

smbd: merge smbd:backgroundqueue=no option from the v3-0-ctdb tree

metze

commit 6f67c4ddf8101b1d06889055e3767a6ce0db360c
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 01:18:50 2008 +0200

messages_ctdbd: autocreate a ctdb connection, this will fix segfaults in 
the client tools

metze

commit 259786980a3a65fa67a4de12a65d33095fa53ce2
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Apr 15 01:18:06 2008 +0200

messages_ctdbd: make sure a ctdbd connection is only used in the process 
that created it

metze

---

Summary of changes:
 source/lib/messages_ctdbd.c |   30 +-
 source/lib/util.c   |   30 ++
 source/nmbd/asyncdns.c  |5 +++
 source/nmbd/nmbd.c  |   20 --
 source/param/loadparm.c |   53 +++---
 source/printing/printing.c  |5 +++
 source/smbd/server.c|   49 +---
 source/winbindd/winbindd.c  |   24 -
 source/winbindd/winbindd_cm.c   |5 +--
 source/winbindd/winbindd_dual.c |5 +--
 10 files changed, 173 insertions(+), 53 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/messages_ctdbd.c b/source/lib/messages_ctdbd.c
index f1a02e6..a01c5e0 100644
--- a/source/lib/messages_ctdbd.c
+++ b/source/lib/messages_ctdbd.c
@@ -35,10 +35,36 @@ struct messaging_ctdbd_context {
  * This is a Samba3 hack/optimization. Routines like process_exists need to
  * talk to ctdbd, and they don't get handed a messaging context.
  */
-struct ctdbd_connection *global_ctdbd_connection;
+static struct ctdbd_connection *global_ctdbd_connection;
+static int global_ctdb_connection_pid;
 
 struct ctdbd_connection *messaging_ctdbd_connection(void)
 {
+   if (global_ctdb_connection_pid == 0 
+   global_ctdbd_connection == NULL) {
+   struct 

[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-996-g6ae8544

2008-04-18 Thread Stefan Metzmacher
The branch, v3-2-test has been updated
   via  6ae8544ace0dd9ac67d36abbaa26cf311db880ad (commit)
  from  2e1b9130635235efdbf49d0b92a43b342114246c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 6ae8544ace0dd9ac67d36abbaa26cf311db880ad
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Sat Apr 19 02:45:10 2008 +0200

WHATNEW.txt: add my latest changes

metze

---

Summary of changes:
 WHATSNEW.txt |8 
 1 files changed, 8 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index bcd1e05..87231de 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -301,6 +301,9 @@ o   Stefan Metzmacher [EMAIL PROTECTED]
   - wbcSetGidMapping()
   - wbcSetUidHwm()
   - wbcSetGidHwm()
+  - wbcResolveWinsByName()
+  - wbcResolveWinsByIP()
+  - wbcCheckTrustCredentials()
 * Let wbinfo use libwbclient where possible.
 * Let net use only libwbclient to access winbindd.
 * Make socket wrapper pcap support more portable.
@@ -308,6 +311,11 @@ o   Stefan Metzmacher [EMAIL PROTECTED]
 * Store the write time in the locking.tdb,
   so that smbd passes the BASE-DELAYWRITE test.
 * Run RAW-SEARCH and BASE-DELAYWRITE by 'make test'.
+* Let each process use its own connection to ctdb
+  in cluster mode.
+* Add a reinit_after_fork() helper function to correct
+  reinitialize the same things in all cases.
+* Fix a chicken and egg problem with include = registry.
 
 
 o   Karolin Seeger [EMAIL PROTECTED]


-- 
Samba Shared Repository