Re: [Samba] Samba 4 Trust relationship with Windows 2008 Active Directory

2011-08-23 Thread Volker Lendecke
On Wed, Aug 10, 2011 at 06:16:57PM +0530, SATHYA - IT wrote:
 I am trying to setup Samba 4 AD in our environment. I want to create the
 trust relationship with samba 4 AD and windows 2008 AD which is already
 running in our environment. While creating the trust it failed with the
 following error The target system doesn't support Netlogon trust password
 verification. Can you please help out on sorting the issue.

As of now, Samba4 does not support trust relationships. Stay
tuned, this will come.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] ntconfig.pol for samba3.5.6+openldap+Win7

2011-08-23 Thread Daniel Müller
With ntconfig.pol no way, never with Win 7.
These days are gone after win xp.
Try to set up samba franky samba 3.6/samba 4 merged and use ads gpos.
Or write batch and reg files (kixtart: http://www.kixtart.org/ )that are
executed on netlogon.
Another way could be using the samba3 network-registry configuration. But as
far as I know it could
not be used to store gpos. In my opinion this would be the greatest feature.



Good Luck
Daniel

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---
-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von lafra...@ensmp.fr
Gesendet: Sonntag, 14. August 2011 18:42
An: samba@lists.samba.org
Betreff: [Samba] ntconfig.pol for samba3.5.6+openldap+Win7

Hi all,
All clients are Win 7.
How can I transmit rules  defined in gpedit for users (for example  
forbid execution of regedit) to the  Default User roaming profile?
Is it done with a ntconfig.pol ? If yes, how can I make it ?
  Thanks


This message was sent using IMP, the Internet Messaging Program.

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

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


Re: [Samba] Samba Cluster mit High Performance

2011-08-23 Thread Daniel Müller
Hello again,

If you plan a PDC-BDC ctdb will not work.
I have a PDC-BDC failover cluster running with glusterfs, openldap, ucarp.
In theory, going the new way of samba with samba franky (samba4/samba3
merged ads) ctdb should work even in an replicating environment.


Greetings
Daniel
---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Michael Wandel
Gesendet: Montag, 15. August 2011 10:29
An: samba@lists.samba.org
Betreff: [Samba] Samba Cluster mit High Performance

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hallo SambaML,

in the next weeks I want to setup a high perormance Cluster(2-Nodes)
with Samba on Linux. Now I have to decide which Clusterfilesystem is the
best one for this project, gfs2, ocfs, glusterfs.

If someone has experience with this, pleas give me an answer.

At the second: is it the best way to setup a active-active Cluster with
ctdb ?


Best regards

M. Wandel
m-wan...@versanet.de
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOSNi4AAoJEL/EwdcvY5PErgYH/RDSzboXKEQHdnI/x9mGkpjY
QPUkP+i9t7k0mDSR1THPoXJXUNyBataYtPxIxBXAhZSU0QnKJAKP3cdSEmeDw5rh
dIFORWEGcXw7qiAGlfUTr8DPOAF+bmxwFrxvelztaEG+f3bQ6mgc5aPZGtsHL7Dh
lrveFcBfsCPyV8tt1F9dYED59plFNpyHnXvimbvcDFHg9VxDjmS5CKVwlU3s9Zxq
MkTjvjB1BJmhmAwcyZrqySQbSNkB4px2G9GuMrAItgIJE0F4fuo6cx7tlT/EewG0
7vGB9bIDzCzQlkbaHjoJriNPZteCXRPQMOXXmfwfvYR82xON8HR09Joou5fqY9A=
=uNRs
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

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


[Samba] AUTO: I am out of office. (returning 25/08/2011)

2011-08-23 Thread Gabby Romano

I am out of the office until 25/08/2011.

I will reply to emails when I return. please contact my manager Yafit Sami
for any urgent issues.


Note: This is an automated response to your message  Re: [Samba] window,
samba and ldap passwords sent on 20/8/2011 1:50:04.

This is the only notification you will receive while this person is away.

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


Re: [Samba] Whitespace in password

2011-08-23 Thread Rodriguez Nuño, Claudia
It is a diagnostic interface ok, but when that user tries to access a share he 
is allowed to with that password he can't. And isn't it strange the NT STATUS 
NO SUCH USER error if wbinfo -u lists that user. Sorry but I have no idea of 
how to fix it, please help.

-Mensaje original-
De: Andrew Bartlett [mailto:abart...@samba.org] 
Enviado el: lunes, 22 de agosto de 2011 12:17
Para: Rodriguez Nuño, Claudia
CC: Herb Lewis; samba@lists.samba.org
Asunto: Re: [Samba] Whitespace in password

On Mon, 2011-08-22 at 08:31 +0200, Rodriguez Nuño, Claudia wrote:
 Nope, it doesn't work for me. The message says:
 
 plaintext password authentication failed error code was NT STATUS NO 
 SUCH USER error message was no such user Could not authenticate user 
 with plaintext challenge/response password authentication succeeded
 
 thought if I do wbinfo -u the user exists Moreover if I put wbinfo -a 
 myuser%pass word instead of wbinfo -a myuser%pass\ word as sugested the error 
 gets bigger and it also says:
 
 plaintext password authentication failed error code was NT STATUS NO 
 SUCH USER error message was no such user Could not authenticate user 
 with plaintext challenge/response password authenticacion failed error 
 code was NT STATUS WRONG PASSWORD error code was wrong password Could 
 not authenticate user with challenge/response

wbinfo -a is a diagnostic interface.  Having space in an NTLM password will 
make not difference when connecting from CIFS clients.

Andrew Bartlett

--
Andrew Bartlett abart...@samba.org

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


[Samba] Excel-File is locked for another user...

2011-08-23 Thread Wolfgang
Hi,

i have a 2node ctdb-samba-cluster on debian squeeze-machines.

Samba: 3.5.6
Ctdb: 1.0.112-12-1
Filesystem: glusterfs

Sometimes i have the problem that some Office-Files are locked for other
MS-Office-Users. If i try to access those locked files using linux(mount
cifs and open it with openoffice) i can open it. I am not 100% sure, but
it seems that i can open those files with office2003 too.

Can anyone help me to solve this issue?


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


Re: [Samba] window, samba and ldap passwords

2011-08-23 Thread Dermot
 remove : unix password sync = Yes

 and try again.

 I would like to avoid using smbldap-tools, did you manage to get it
 working without it?

 Kind regards,
 - --
 Felipe Augusto van de Wiel felipe.w...@complexopequenoprincipe.org.br

The solution to that problem was to remove the unix password sync.

As for user management tools, I got the srvtools from
http://support.microsoft.com/kb/173673

I take a look at LAM (http://www.ldap-account-manager.org/)

and some of the other options listed here
http://wiki.samba.org/index.php/Account_Management_Tools

but I haven't really fired any in anger yet.
HTH,
Dermot.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] window, samba and ldap passwords

2011-08-23 Thread L . P . H . van Belle
als nice to use.

http://ldapadmin.sourceforge.net/ ( for management from windows pc ) 

You can create your own plugins, which is pretty easy. 

Louis
 

-Oorspronkelijk bericht-
Van: paik...@googlemail.com 
[mailto:samba-boun...@lists.samba.org] Namens Dermot
Verzonden: 2011-08-23 14:10
Aan: samba@lists.samba.org
Onderwerp: Re: [Samba] window, samba and ldap passwords

 remove : unix password sync = Yes

 and try again.

 I would like to avoid using smbldap-tools, did you manage to get it
 working without it?

 Kind regards,
 - --
 Felipe Augusto van de Wiel 
felipe.w...@complexopequenoprincipe.org.br

The solution to that problem was to remove the unix password sync.

As for user management tools, I got the srvtools from
http://support.microsoft.com/kb/173673

I take a look at LAM (http://www.ldap-account-manager.org/)

and some of the other options listed here
http://wiki.samba.org/index.php/Account_Management_Tools

but I haven't really fired any in anger yet.
HTH,
Dermot.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba



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


Re: [Samba] Excel-File is locked for another user...

2011-08-23 Thread Daniel Müller
Look at glusterfs this is the reason

In your share definition: posix locking =NO
valid users=@YOUR USERS OR GROUPS
 directory mask=2770
force directory mode=2770
create mask = 2770
force create mode=2770
force security mode=2770
force directory security mode=2770
force group= YOURGROUP

Be shure all win clients map the share with the same ip. And it is working.


---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---
-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Wolfgang
Gesendet: Dienstag, 23. August 2011 13:42
An: samba@lists.samba.org
Betreff: [Samba] Excel-File is locked for another user...

Hi,

i have a 2node ctdb-samba-cluster on debian squeeze-machines.

Samba: 3.5.6
Ctdb: 1.0.112-12-1
Filesystem: glusterfs

Sometimes i have the problem that some Office-Files are locked for other
MS-Office-Users. If i try to access those locked files using linux(mount
cifs and open it with openoffice) i can open it. I am not 100% sure, but
it seems that i can open those files with office2003 too.

Can anyone help me to solve this issue?


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

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


Re: [Samba] Failed join operations

2011-08-23 Thread Natxo Asenjo
On Fri, Aug 19, 2011 at 4:58 PM, John Huong jahu...@gmail.com wrote:
 Ok it works. However I find it strange that Windows 7 does not
 automatically allow the Domain Admins group to run administrative
 tasks although I can see Domain Admins is listed under the
 Administrators group of the Windows 7 PC.

UAC? If you disable it, does it work?

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


[Samba] Sharing network printer drivers with Windows 7 Pro clients does not work

2011-08-23 Thread Bruno CAPELETO

Dear all,

This is the tested config :
- debian squeeze 32bits (samba 3.5.6 / cups 1.4.4)
- 1 PC Win7Pro 32bits
- 1 PC Win7Pro 64bits
- 1 PC WinXP Pro 32bits
- 1 network printer with ps drivers (32bits and 64bits, same driver 
whether XP or 7)


Setting up a network printer from the Windows 7 Pro clients with user 
root does not work :
- first error when selecting the 64bits driver from the Win7Pro 64bits : 
this driver is not compatible ... - this error does not occur when 
using a direct connection to the IP of the printer
- second error with the same configuration when adding the drivers via 
add driver for other systems, here is the relevant part of the log file :


[2011/08/19 13:57:03.211533,  1] smbd/service.c:1070(make_connection_snum)
 portable-fabric (192.168.0.2) connect to service print$ initially as user root 
(uid=0, gid=0) (pid 1702)
[2011/08/19 13:57:04.086648,  0] 
rpc_server/srv_spoolss_nt.c:7352(_spoolss_AddPrinterDriver)
 _spoolss_AddPrinterDriverEx: *level 8 not yet implemented*
[2011/08/19 13:57:14.735441,  1] smbd/service.c:1251(close_cnum)
 portable-fabric (192.168.0.2) closed connection to service print$

I found the same error in the following link : 
https://bugzilla.samba.org/show_bug.cgi?id=7064


Same logfile with the Win7Pro 32 bits when trying to install the 32 bits 
drivers.


However, everything went like a charm when installing the same 32 bits 
driver from the WinXPPro 32bits.
After that, I could connect from the Win7Pro 32bits and get the driver 
from samba - and it printed fine.
I could even - after all this - install the 64bits driver from the 
Win7Pro 64bits - and again it printed fine.


My conclusion so far : to install a printer and distribute the drivers 
to Win7Pro workstations, one must first install one driver from a WinXP 
machine.


Please tell me where to report this finding (I'm not sure this mailing 
list is the most appropriate) and if anybody could help me to solve this 
issue.
I would like to be able to install and deinstall Win7Pro drivers 
directly from Win7Pro clients.


So far I could install the driver via the use of a WinXP machine first 
(which is anyway not ideal). However I could not deinstall the driver 
(this may be a full other story) ; for example I would like to test the 
PCL driver instead of the PostScript driver, but I can not remove the ps 
driver, even when I delete and install my printer as a new printer in 
cups.


Thanks for any support.

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


[Samba] How to configure krb5 for multiple domains or domain and its sub-domains

2011-08-23 Thread Le, Anh
Hi All,

I've configured my samba server (3.5.11) working and joined to my domain 
pc.example.com. Every user of pc.example.com is able to view the shared folders 
and files of my samba server without any problem.

However, the users of my sub-domains Europe.pc.example.com  and 
Asia.pc.example.com could not connect and view the shared folders of my samba 
server. They were prompted for the passwords and it does not accept their 
passwords when the users entered. I guess it has this problem because my 
current krb5 is only setup for my main domain pc.example.com.

I don't know the syntax for the multiple domains or domain and its sub-domains 
of krb5.conf file. It will be very appreciated if anyone can help me.

Thanks a lot,

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


[Samba] 3.6/SMB2.0 and NT6.0 (Vista/W2K8 not-R2) question

2011-08-23 Thread starlight
Hello Samba Team,

Have a W2K8 not-R2 (NT6.0) server that compiles code
served from a CentOS 5.6 server running Samba 3.5.5
over an Infiniband link.

Works nice but an 'imake' step that grinds through
every source file several times takes ten-to-twenty
times longer than when it runs locally on the Linux side.

It's apparent that the entire source tree is cached
in memory by Linux, but that the Windows side retrieves
every file over-and-over again, a process that uses
more CPU than anything else so that's the bottleneck.

Windows oplocks seems like the answer to improving
performance as it would allow the Windows server
to cache the files as well.

From the MS documentation, it appears there might be some
oplock support in their SMB 2.0 client.  Is this the case?
Any chance that oplock-based caching of files that are
only read will happen on the Windows side if we install
Samba 3.6 and enable SMB2?

Also, we disable kernel oplocks in Samba because the
Linux kernel fakes the NFS-visible modification timestamp
of files that Samba oplocks for the duration that the
locks are held.  This causes spurious rebuilds by
Linux and Unix NFS clients when the code is rebuilt
at the same time.

Does setting kernel oplocks = no in Samba 3.6 interact
with the SMB2 oplock feature?  I.E. does it disable
SMB2 oplocks?

Thank you for your help!

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


Re: [Samba] How to configure krb5 for multiple domains or domain and its sub-domains

2011-08-23 Thread Mauricio Tavares
On Aug 23, 2011 11:13 AM, Le, Anh anh...@cognex.com wrote:

 Hi All,

 I've configured my samba server (3.5.11) working and joined to my domain
pc.example.com. Every user of pc.example.com is able to view the shared
folders and files of my samba server without any problem.

 However, the users of my sub-domains Europe.pc.example.com  and
Asia.pc.example.com could not connect and view the shared folders of my
samba server. They were prompted for the passwords and it does not accept
their passwords when the users entered. I guess it has this problem because
my current krb5 is only setup for my main domain pc.example.com.

 I don't know the syntax for the multiple domains or domain and its
sub-domains of krb5.conf file. It will be very appreciated if anyone can
help me.

  Are those subdomains as in dns subdomains or samba workgroups/domains?
Are they all supposed to be in the same kerberos realm?

 Thanks a lot,

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


[Samba] Samba large file support negotiation when accessed via UNC path

2011-08-23 Thread Andrew Boyce
I am experiencing a strange problem that I hope someone out there has
experience withf.

We have a large fileserver running samba 3.6 backed by a 12T ext4
filesystem. We keep lots of VMware VMs on the filestore and I am trying to
make some improvements to how we manage/launch/use the VMs. To that end,
I've been trying to launch the VMs via the VMware VIX API by UNC path (not
mapped drive).

The trouble is that when accessed via UNC path, it seems that VIX can't
properly determine that the fileserver supports large files and refuses to
open the VM.

VIX Error:

DISKLIB-SPARSE:
\\VMWAREFS.org.net\images\windows_7_ultimate_x64_en\Windows_7_x64-03.vmdk
: failed to open (36872): Underlying file system does not support files that
large.
DISKLIB-LINK  :
\\VMWAREFS.org.net\images\\windows_7_ultimate_x64_en\Windows_7_x64-03.vmdk
: failed to open (The file is too large).
DISKLIB-CHAIN 
:\\VMWAREFS.org.net\images\\windows_7_ultimate_x64_en\Windows_7_x64-06.vmdk:
Failed to open parent
\\VMWAREFS.org.net\images\windows_7_ultimate_x64_en\Windows_7_x64-03.vmdk:
The file is too large.
DISKLIB-CHAIN :
\\VMWAREFS.org.net\images\windows_7_ultimate_x64_en\Windows_7_x64-03.vmdk
: failed to open (The parent of this virtual disk could not be opened).
DISKLIB-LIB   : Failed to open
'\\VMWAREFS.org.net\images\windows_7_ultimate_x64_en\Windows_7_x64-06.vmdk'
with flags 0x1e (The parent of this virtual disk could not be opened).

At face value this seems like a VIX error however when accessed from samba
via a mapped drive, it works as expected. Also, when the files are hosted on
a Windows server VIX can launch the VM via UNC path or mapped drive without
any problem.

This is a known problem in the VMware KB:
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKCexternalId=1008633(KB
is about converter, but the error is the same with workstation and
VIX).


Unfortunately the VMware community seems to have no idea what the cause is,
only a workaround (and a workaround that I can't use at that .

So to you alll, I ask: What is different about the way that samba serves
files or the way that windows negotiates a UNC path that might cause this
problem?

I have not enabled SMB2, so that isn't part of the problem. Also, I've used
wireshark to analyze the protocol negotiation and can confirm that the
capabilities are identical between a windows and samba server (most
importantly, the Large Files bit is set on both responses). The only
interesting difference that I have found in the negotiation is that Samba
doesn't ever seem to set the Canonicalized Pathnames flag even though I
read that it should always be set on modern CIFS implementations.

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


[Samba] [Announce] Samba 3.4.15 Available for Download

2011-08-23 Thread Karolin Seeger
=
Some cause happiness wherever they go;
 others whenever they go.

 Oscar Wilde
==


Release Announcements
=

This is the latest stable release of Samba 3.4.


Changes since 3.4.14



o   David Disseldorp dd...@suse.de
* BUG 7836: Make newly added printers visible to clients,
* BUG 7994: Make cups async printcap retrieval notify parent smbd of error  
  status.
* BUG 8269: Stop spamming log with Could not find child X -- ignoring
  messages.


o   Björn Jacke b...@sernet.de
* BUG 8362: Fix build issue on old glibc systems.


o   Jim McDonough j...@samba.org
* BUG 6364: Pull realm from supplied username on libnet join.


o   Stefan Metzmacher me...@samba.org
* BUG 8276: Return the used number of sockets in create_listen_fdset().
* BUG 8347: Fix CVE-2011-2522 regression for HP-UX, AIX and OSF.



Download Details


The uncompressed tarballs and patch files have been signed
using GnuPG (ID 6568B7EA).  The source code can be downloaded
from:

http://download.samba.org/samba/ftp/stable

The release notes are available online at:

http://www.samba.org/samba/history/samba-3.4.15.html

Binary packages will be made available on a volunteer basis from

http://download.samba.org/samba/ftp/Binary_Packages/

Our Code, Our Bugs, Our Responsibility.
(https://bugzilla.samba.org/)

--Enjoy
The Samba Team



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

Re: [Samba] 3.6/SMB2.0 and NT6.0 (Vista/W2K8 not-R2) question

2011-08-23 Thread Stan Hoeppner
On 8/23/2011 11:27 AM, starli...@binnacle.cx wrote:
 Hello Samba Team,
 
 Have a W2K8 not-R2 (NT6.0) server that compiles code
 served from a CentOS 5.6 server running Samba 3.5.5
 over an Infiniband link.
 
 Works nice but an 'imake' step that grinds through
 every source file several times takes ten-to-twenty
 times longer than when it runs locally on the Linux side.
 
 It's apparent that the entire source tree is cached
 in memory by Linux, but that the Windows side retrieves
 every file over-and-over again, a process that uses
 more CPU than anything else so that's the bottleneck.
 
 Windows oplocks seems like the answer to improving
 performance as it would allow the Windows server
 to cache the files as well.
 
 From the MS documentation, it appears there might be some
 oplock support in their SMB 2.0 client.  Is this the case?
 Any chance that oplock-based caching of files that are
 only read will happen on the Windows side if we install
 Samba 3.6 and enable SMB2?
 
 Also, we disable kernel oplocks in Samba because the
 Linux kernel fakes the NFS-visible modification timestamp
 of files that Samba oplocks for the duration that the
 locks are held.  This causes spurious rebuilds by
 Linux and Unix NFS clients when the code is rebuilt
 at the same time.
 
 Does setting kernel oplocks = no in Samba 3.6 interact
 with the SMB2 oplock feature?  I.E. does it disable
 SMB2 oplocks?

If these client machines have enough excess RAM to cache the entire tree
and execute builds, why aren't you instead simply copying the tree files
from the server to a local RAM disk, building, then pushing the result
files back to the server?

Massaging your current scripts to do this should be trivial.  You'll get
fully consistent run times to boot.  Sure, it's not as 'convenient' as a
remote shared filesystem acting like a local non-shared one, but then
again they never really have, and never will, fully act as such.  WRT
convenience, once the scripts are rewritten it's a non issue.

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


Re: [Samba] 3.6/SMB2.0 and NT6.0 (Vista/W2K8 not-R2) question

2011-08-23 Thread Jeremy Allison
On Tue, Aug 23, 2011 at 12:27:19PM -0400, starli...@binnacle.cx wrote:
 Hello Samba Team,
 
 Have a W2K8 not-R2 (NT6.0) server that compiles code
 served from a CentOS 5.6 server running Samba 3.5.5
 over an Infiniband link.
 
 Works nice but an 'imake' step that grinds through
 every source file several times takes ten-to-twenty
 times longer than when it runs locally on the Linux side.
 
 It's apparent that the entire source tree is cached
 in memory by Linux, but that the Windows side retrieves
 every file over-and-over again, a process that uses
 more CPU than anything else so that's the bottleneck.
 
 Windows oplocks seems like the answer to improving
 performance as it would allow the Windows server
 to cache the files as well.
 
 From the MS documentation, it appears there might be some
 oplock support in their SMB 2.0 client.  Is this the case?
 Any chance that oplock-based caching of files that are
 only read will happen on the Windows side if we install
 Samba 3.6 and enable SMB2?

oplocks are supported in MS's default SMB1 client.
You don't need SMB2 for that. The Windows client should
already be using oplocks.

 Also, we disable kernel oplocks in Samba because the
 Linux kernel fakes the NFS-visible modification timestamp
 of files that Samba oplocks for the duration that the
 locks are held.  This causes spurious rebuilds by
 Linux and Unix NFS clients when the code is rebuilt
 at the same time.
 
 Does setting kernel oplocks = no in Samba 3.6 interact
 with the SMB2 oplock feature?  I.E. does it disable
 SMB2 oplocks?

It disables mapping the SMB1/SMB2 oplocks to Liux
kernel leases.

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


Re: [Samba] Sharing network printer drivers with Windows 7 Pro clients does not work

2011-08-23 Thread Christian PERRIER
Quoting Bruno CAPELETO (bruno.capel...@free.fr):
 Dear all,
 
 This is the tested config :
 - debian squeeze 32bits (samba 3.5.6 / cups 1.4.4)


Which package version?

I (as maintainer of samba packages in Debian) backported a few changes
from further 3.5 versions, some of which related to 64-bit printing,
so the package version is important, here.




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


Re: [Samba] How to configure krb5 for multiple domains or domain and its sub-domains

2011-08-23 Thread Le, Anh
Hi Mauricio,

First of all, thank you for the reply. Secondly, those subdomains are child 
domains of pc.example.com in windows dns.  And here is my current krb5.conf 
file.  u...@pc.example.com is connecting fine. But not the 
u...@europe.pc.example.com or u...@asia.pc.example.com. These users will be 
prompted for the username and password. By the way we use kerberos with winbind.

[libdefaults]
default_realm = PC.EXAMPLE.COM
dns_lookup_kdc = true
verify_ap_req_nofail = false
clockskew = 300

[realms]
PC.EXAMPLE.COM = {
kdc = server1.pc.example.com
admin_server = server1.pc. example.com
default_domain = pc. example.com
}

 [domain_realm]
   .kerberos.server = PC. EXAMPLE.COM
   pc. example.com = PC. EXAMPLE.COM
   .pc. example.com = PC. EXAMPLE.COM


[logging]
default = FILE:/var/krb5/kdc.log
kdc = FILE:/var/log/kdc.log
kdc_rotate = {

# How often to rotate kdc.log. Logs will get rotated no more
# often than the period, and less often if the KDC is not used
# frequently.

period = 1d

# how many versions of kdc.log to keep around (kdc.log.0, kdc.log.1, ...)

versions = 10
}

[appdefaults]
kinit = {
renewable = true
forwardable= true
}
gkadmin = {
help_url = 
http://docs.sun.com:80/ab2/coll.384.1/SEAM/@AB2PageView/1195
}
Thanks a lot,

Anh.



-Original Message-
From: Mauricio Tavares [mailto:raubvo...@gmail.com] 
Sent: Tuesday, August 23, 2011 12:50 PM
To: samba@lists.samba.org
Subject: Re: [Samba] How to configure krb5 for multiple domains or domain and 
its sub-domains

On Aug 23, 2011 11:13 AM, Le, Anh anh...@cognex.com wrote:

 Hi All,

 I've configured my samba server (3.5.11) working and joined to my 
 domain
pc.example.com. Every user of pc.example.com is able to view the shared folders 
and files of my samba server without any problem.

 However, the users of my sub-domains Europe.pc.example.com  and
Asia.pc.example.com could not connect and view the shared folders of my samba 
server. They were prompted for the passwords and it does not accept their 
passwords when the users entered. I guess it has this problem because my 
current krb5 is only setup for my main domain pc.example.com.

 I don't know the syntax for the multiple domains or domain and its
sub-domains of krb5.conf file. It will be very appreciated if anyone can help 
me.

  Are those subdomains as in dns subdomains or samba workgroups/domains?
Are they all supposed to be in the same kerberos realm?

 Thanks a lot,

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

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


Re: [Samba] 3.6/SMB2.0 and NT6.0 (Vista/W2K8 not-R2) question

2011-08-23 Thread starlight
At 11:41 AM 8/23/2011 -0700, Jeremy Allison wrote:
On Tue, Aug 23, 2011 at 12:27:19PM -0400, starli...@binnacle.cx wrote:
 From the MS documentation, it appears there might be some
 oplock support in their SMB 2.0 client.  Is this the case?
 Any chance that oplock-based caching of files that are
 only read will happen on the Windows side if we install
 Samba 3.6 and enable SMB2?

oplocks are supported in MS's default SMB1 client.
You don't need SMB2 for that. The Windows client should
already be using oplocks.

But apparently not with sufficient aggression.  No
doubt whatsoever that files are being read over
and over again--clear as day in the network
statistics.  I'll guess that Windows is dropping
the cached copy of network files immediately once
the are closed.

So it's really a question about the Windows client
side, which makes me think that SMB2 vs SMB1 will
make little difference for the NT6.0 kernel.  The
MS announcement does focus on improvements in
the NT6.1 kernel with SMB2.1, so I'll have to
try that at some point.

http://technet.microsoft.com/en-us/library/ff383236%28WS.10%29.aspx

Thank you for your reply.

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


Re: [Samba] Samba large file support negotiation when accessed via UNC path

2011-08-23 Thread Volker Lendecke
On Tue, Aug 23, 2011 at 01:31:57PM -0400, Andrew Boyce wrote:
 I am experiencing a strange problem that I hope someone out there has
 experience withf.

What we need is comparative network traces of vmware running
against Samba and a working CIFS server, possibly Windows.

See http://wiki.samba.org/index.php/Capture_Packets

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] samba-3.5.11 : [printers] not browsable, if [global] browseable is set to no

2011-08-23 Thread Yet another Chris
In smb.conf, when browseable = no is set globally, it doesn't matter if
browseable is set to yes or no in the [printers] share, the printer(s)
won't show up in windows network neighbourhood or linux smbclient. I
filed a bug report at https://bugzilla.samba.org/show_bug.cgi?id=4351
and it looks like that issue dates back to 2007 already.


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


Re: [Samba] How to configure krb5 for multiple domains or domain and its sub-domains

2011-08-23 Thread Mauricio Tavares
On Tue, Aug 23, 2011 at 3:17 PM, Le, Anh anh...@cognex.com wrote:
 Hi Mauricio,

 First of all, thank you for the reply. Secondly, those subdomains are child 
 domains of pc.example.com in windows dns.  And here is my current krb5.conf 
 file.  u...@pc.example.com is connecting fine. But not the 
 u...@europe.pc.example.com or u...@asia.pc.example.com. These users will be 
 prompted for the username and password. By the way we use kerberos with 
 winbind.

 [libdefaults]
        default_realm = PC.EXAMPLE.COM
        dns_lookup_kdc = true
        verify_ap_req_nofail = false
        clockskew = 300

 [realms]
        PC.EXAMPLE.COM = {
                kdc = server1.pc.example.com
                admin_server = server1.pc. example.com
                default_domain = pc. example.com
        }

  [domain_realm]
       .kerberos.server = PC. EXAMPLE.COM
       pc. example.com = PC. EXAMPLE.COM
       .pc. example.com = PC. EXAMPLE.COM
  .europe.pc.example.com = PC. EXAMPLE.COM
  .asia.pc.example.com = PC. EXAMPLE.COM

see if this helps


 [logging]
        default = FILE:/var/krb5/kdc.log
        kdc = FILE:/var/log/kdc.log
        kdc_rotate = {

 # How often to rotate kdc.log. Logs will get rotated no more
 # often than the period, and less often if the KDC is not used
 # frequently.

                period = 1d

 # how many versions of kdc.log to keep around (kdc.log.0, kdc.log.1, ...)

                versions = 10
        }

 [appdefaults]
        kinit = {
                renewable = true
                forwardable= true
        }
        gkadmin = {
                help_url = 
 http://docs.sun.com:80/ab2/coll.384.1/SEAM/@AB2PageView/1195
        }
 Thanks a lot,

 Anh.



 -Original Message-
 From: Mauricio Tavares [mailto:raubvo...@gmail.com]
 Sent: Tuesday, August 23, 2011 12:50 PM
 To: samba@lists.samba.org
 Subject: Re: [Samba] How to configure krb5 for multiple domains or domain and 
 its sub-domains

 On Aug 23, 2011 11:13 AM, Le, Anh anh...@cognex.com wrote:

 Hi All,

 I've configured my samba server (3.5.11) working and joined to my
 domain
 pc.example.com. Every user of pc.example.com is able to view the shared 
 folders and files of my samba server without any problem.

 However, the users of my sub-domains Europe.pc.example.com  and
 Asia.pc.example.com could not connect and view the shared folders of my samba 
 server. They were prompted for the passwords and it does not accept their 
 passwords when the users entered. I guess it has this problem because my 
 current krb5 is only setup for my main domain pc.example.com.

 I don't know the syntax for the multiple domains or domain and its
 sub-domains of krb5.conf file. It will be very appreciated if anyone can help 
 me.

      Are those subdomains as in dns subdomains or samba workgroups/domains?
 Are they all supposed to be in the same kerberos realm?

 Thanks a lot,

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


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


[Announce] Samba 3.4.15 Available for Download

2011-08-23 Thread Karolin Seeger
=
Some cause happiness wherever they go;
 others whenever they go.

 Oscar Wilde
==


Release Announcements
=

This is the latest stable release of Samba 3.4.


Changes since 3.4.14



o   David Disseldorp dd...@suse.de
* BUG 7836: Make newly added printers visible to clients,
* BUG 7994: Make cups async printcap retrieval notify parent smbd of error  
  status.
* BUG 8269: Stop spamming log with Could not find child X -- ignoring
  messages.


o   Björn Jacke b...@sernet.de
* BUG 8362: Fix build issue on old glibc systems.


o   Jim McDonough j...@samba.org
* BUG 6364: Pull realm from supplied username on libnet join.


o   Stefan Metzmacher me...@samba.org
* BUG 8276: Return the used number of sockets in create_listen_fdset().
* BUG 8347: Fix CVE-2011-2522 regression for HP-UX, AIX and OSF.



Download Details


The uncompressed tarballs and patch files have been signed
using GnuPG (ID 6568B7EA).  The source code can be downloaded
from:

http://download.samba.org/samba/ftp/stable

The release notes are available online at:

http://www.samba.org/samba/history/samba-3.4.15.html

Binary packages will be made available on a volunteer basis from

http://download.samba.org/samba/ftp/Binary_Packages/

Our Code, Our Bugs, Our Responsibility.
(https://bugzilla.samba.org/)

--Enjoy
The Samba Team





[SCM] CTDB repository - branch master updated - ctdb-1.10-422-g2cc48be

2011-08-23 Thread Ronnie Sahlberg
The branch, master has been updated
   via  2cc48be3219b887b85649a14db311af0549041cf (commit)
  from  cd1080726d7787b335ab4bfb64a7991237ab92f5 (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master


- Log -
commit 2cc48be3219b887b85649a14db311af0549041cf
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Tue Aug 23 16:15:34 2011 +1000

LibCTDB : initialize ctdb-pnn to -1 when we create a new context
but before we learn the pnn of the local node

---

Summary of changes:
 libctdb/ctdb.c |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/libctdb/ctdb.c b/libctdb/ctdb.c
index d51f4a1..72841db 100644
--- a/libctdb/ctdb.c
+++ b/libctdb/ctdb.c
@@ -151,6 +151,7 @@ struct ctdb_connection *ctdb_connect(const char *addr,
log_fn(log_priv, LOG_ERR, ctdb_connect: no memory, ap);
goto fail;
}
+   ctdb-pnn = -1;
ctdb-outq = NULL;
ctdb-doneq = NULL;
ctdb-in = NULL;


-- 
CTDB repository


[SCM] CTDB repository - branch master-readonly-records updated - ctdb-1.10-450-g8d363d3

2011-08-23 Thread Ronnie Sahlberg
The branch, master-readonly-records has been updated
   via  8d363d3ce105b78c94f8e50184b6579b25b237f6 (commit)
  from  231f16b3e0c9c44fc85c95bde7951ccfab50af91 (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master-readonly-records


- Log -
commit 8d363d3ce105b78c94f8e50184b6579b25b237f6
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Tue Aug 23 16:15:34 2011 +1000

LibCTDB : initialize ctdb-pnn to -1 when we create a new context
but before we learn the pnn of the local node

---

Summary of changes:
 libctdb/ctdb.c |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/libctdb/ctdb.c b/libctdb/ctdb.c
index e407910..98c86f6 100644
--- a/libctdb/ctdb.c
+++ b/libctdb/ctdb.c
@@ -151,6 +151,7 @@ struct ctdb_connection *ctdb_connect(const char *addr,
log_fn(log_priv, LOG_ERR, ctdb_connect: no memory, ap);
goto fail;
}
+   ctdb-pnn = -1;
ctdb-outq = NULL;
ctdb-doneq = NULL;
ctdb-in = NULL;


-- 
CTDB repository


[SCM] CTDB repository - branch master updated - ctdb-1.10-424-g750a31c

2011-08-23 Thread Ronnie Sahlberg
The branch, master has been updated
   via  750a31cf95c356a0ee071967537eb615dce35845 (commit)
   via  81c14c8625a6d5670b8795a655d7a3f3318009e5 (commit)
  from  2cc48be3219b887b85649a14db311af0549041cf (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master


- Log -
commit 750a31cf95c356a0ee071967537eb615dce35845
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Tue Aug 23 16:35:08 2011 +1000

LibCTDB : update the ctdb tool to use libctdb to read the recovery mode

commit 81c14c8625a6d5670b8795a655d7a3f3318009e5
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Tue Aug 23 16:32:38 2011 +1000

LibCTDB : uptade the ctdb tool to use libctdb to query for the recmaster

---

Summary of changes:
 tools/ctdb.c |   31 +++
 1 files changed, 11 insertions(+), 20 deletions(-)


Changeset truncated at 500 lines:

diff --git a/tools/ctdb.c b/tools/ctdb.c
index d760f6b..f435a21 100644
--- a/tools/ctdb.c
+++ b/tools/ctdb.c
@@ -737,17 +737,15 @@ static int control_status(struct ctdb_context *ctdb, int 
argc, const char **argv
printf(hash:%d lmaster:%d\n, i, vnnmap-map[i]);
}
 
-   ret = ctdb_ctrl_getrecmode(ctdb, ctdb, TIMELIMIT(), options.pnn, 
recmode);
-   if (ret != 0) {
+   if (!ctdb_getrecmode(ctdb_connection, options.pnn, recmode)) {
DEBUG(DEBUG_ERR, (Unable to get recmode from node %u\n, 
options.pnn));
-   return ret;
+   return -1;
}
printf(Recovery mode:%s 
(%d)\n,recmode==CTDB_RECOVERY_NORMAL?NORMAL:RECOVERY,recmode);
 
-   ret = ctdb_ctrl_getrecmaster(ctdb, ctdb, TIMELIMIT(), options.pnn, 
recmaster);
-   if (ret != 0) {
+   if (!ctdb_getrecmaster(ctdb_connection, options.pnn, recmaster)) {
DEBUG(DEBUG_ERR, (Unable to get recmaster from node %u\n, 
options.pnn));
-   return ret;
+   return -1;
}
printf(Recovery master:%d\n,recmaster);
 
@@ -1095,13 +1093,11 @@ static int control_disablescript(struct ctdb_context 
*ctdb, int argc, const char
  */
 static int control_recmaster(struct ctdb_context *ctdb, int argc, const char 
**argv)
 {
-   int ret;
uint32_t recmaster;
 
-   ret = ctdb_ctrl_getrecmaster(ctdb, ctdb, TIMELIMIT(), options.pnn, 
recmaster);
-   if (ret != 0) {
+   if (!ctdb_getrecmaster(ctdb_connection, options.pnn, recmaster)) {
DEBUG(DEBUG_ERR, (Unable to get recmaster from node %u\n, 
options.pnn));
-   return ret;
+   return -1;
}
printf(%d\n,recmaster);
 
@@ -1596,10 +1592,9 @@ again:
}
 
 
-   ret = ctdb_ctrl_getrecmaster(ctdb, ctdb, TIMELIMIT(), options.pnn, 
recmaster);
-   if (ret != 0) {
+   if (!ctdb_getrecmaster(ctdb_connection, options.pnn, recmaster)) {
DEBUG(DEBUG_ERR, (Unable to get recmaster from node %u\n, 
options.pnn));
-   return ret;
+   return -1;
}
 
/* verify the node exists */
@@ -2543,15 +2538,13 @@ static uint32_t get_generation(struct ctdb_context 
*ctdb)
}
 
/* get the recmaster */
-   ret = ctdb_ctrl_getrecmaster(ctdb, ctdb, TIMELIMIT(), 
CTDB_CURRENT_NODE, recmaster);
-   if (ret != 0) {
+   if (!ctdb_getrecmaster(ctdb_connection, CTDB_CURRENT_NODE, 
recmaster)) {
DEBUG(DEBUG_ERR, (Unable to get recmaster from node 
%u\n, options.pnn));
exit(10);
}
 
/* get recovery mode */
-   ret = ctdb_ctrl_getrecmode(ctdb, ctdb, TIMELIMIT(), recmaster, 
recmode);
-   if (ret != 0) {
+   if (!ctdb_getrecmode(ctdb_connection, recmaster, recmode)) {
DEBUG(DEBUG_ERR, (Unable to get recmode from node 
%u\n, options.pnn));
exit(10);
}
@@ -3593,7 +3586,6 @@ static int control_getdbstatus(struct ctdb_context *ctdb, 
int argc, const char *
 static int control_isnotrecmaster(struct ctdb_context *ctdb, int argc, const 
char **argv)
 {
uint32_t mypnn, recmaster;
-   int ret;
 
mypnn = ctdb_ctrl_getpnn(ctdb, TIMELIMIT(), options.pnn);
if (mypnn == -1) {
@@ -3601,8 +3593,7 @@ static int control_isnotrecmaster(struct ctdb_context 
*ctdb, int argc, const cha
return 1;
}
 
-   ret = ctdb_ctrl_getrecmaster(ctdb, ctdb, TIMELIMIT(), options.pnn, 
recmaster);
-   if (ret != 0) {
+   if (!ctdb_getrecmaster(ctdb_connection, options.pnn, recmaster)) {
printf(Failed to get the recmaster\n);
return 1;
}


-- 
CTDB repository


[SCM] Samba Shared Repository - branch master updated

2011-08-23 Thread Volker Lendecke
The branch, master has been updated
   via  932f222 s/event_context/tevent_context/ in smbsock_any_connect
   via  5ba5ccd s/event_context/tevent_context/ in smbsock_connect
   via  89b672f scannedonly module: improve sleep behavior when reading a 
directory with multiple non-scanned files
  from  5007ad3 s3: Slightly simplify serverid_exists

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 932f2229f1337f3d5946103f5bd81e858ab4e805
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 23 16:50:32 2011 +0200

s/event_context/tevent_context/ in smbsock_any_connect

Autobuild-User: Volker Lendecke vlen...@samba.org
Autobuild-Date: Tue Aug 23 18:21:58 CEST 2011 on sn-devel-104

commit 5ba5ccdc412bd3def2c9d8d62ac099a7f23c52d7
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 23 16:50:19 2011 +0200

s/event_context/tevent_context/ in smbsock_connect

commit 89b672f24797f7ecc2ac5191a33a1ae5a38e07cc
Author: Olivier Sessink oliviersess...@gmail.com
Date:   Tue Aug 9 09:56:38 2011 +0200

scannedonly module: improve sleep behavior when reading a directory with 
multiple non-scanned files

---

Summary of changes:
 source3/libsmb/smbsock_connect.c  |8 
 source3/modules/vfs_scannedonly.c |   30 --
 2 files changed, 20 insertions(+), 18 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/smbsock_connect.c b/source3/libsmb/smbsock_connect.c
index 3a228b1..3b6ccb4 100644
--- a/source3/libsmb/smbsock_connect.c
+++ b/source3/libsmb/smbsock_connect.c
@@ -373,11 +373,11 @@ NTSTATUS smbsock_connect(const struct sockaddr_storage 
*addr, uint16_t port,
 int *pfd, uint16_t *ret_port, int sec_timeout)
 {
TALLOC_CTX *frame = talloc_stackframe();
-   struct event_context *ev;
+   struct tevent_context *ev;
struct tevent_req *req;
NTSTATUS status = NT_STATUS_NO_MEMORY;
 
-   ev = event_context_init(frame);
+   ev = tevent_context_init(frame);
if (ev == NULL) {
goto fail;
}
@@ -622,11 +622,11 @@ NTSTATUS smbsock_any_connect(const struct 
sockaddr_storage *addrs,
 uint16_t *chosen_port)
 {
TALLOC_CTX *frame = talloc_stackframe();
-   struct event_context *ev;
+   struct tevent_context *ev;
struct tevent_req *req;
NTSTATUS status = NT_STATUS_NO_MEMORY;
 
-   ev = event_context_init(frame);
+   ev = tevent_context_init(frame);
if (ev == NULL) {
goto fail;
}
diff --git a/source3/modules/vfs_scannedonly.c 
b/source3/modules/vfs_scannedonly.c
index 6d748c4..c1821bd 100644
--- a/source3/modules/vfs_scannedonly.c
+++ b/source3/modules/vfs_scannedonly.c
@@ -1,7 +1,7 @@
 /*
- * scannedonly VFS module for Samba 3.5
+ * scannedonly VFS module for Samba 3.5 and beyond
  *
- * Copyright 2007,2008,2009,2010 (C) Olivier Sessink
+ * Copyright 2007,2008,2009,2010,2011 (C) Olivier Sessink
  *
  * 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
@@ -88,7 +88,8 @@ struct Tscannedonly {
 
 struct scannedonly_DIR {
char *base;
-   int notify_loop_done;
+   int recheck_tries_done; /* if 0 the directory listing has not yet
+   been checked for files that need to be scanned. */
SMB_STRUCT_DIR *DIR;
 };
 #define SCANNEDONLY_DEBUG 9
@@ -441,8 +442,7 @@ static bool scannedonly_allow_access(vfs_handle_struct * 
handle,
 
notify_scanner(handle, smb_fname-base_name);
 
-   didloop = 0;
-   if (loop  sDIR  !sDIR-notify_loop_done) {
+   if (loop  sDIR  sDIR-recheck_tries_done == 0) {
/* check the rest of the directory and notify the
   scanner if some file needs scanning */
long offset;
@@ -467,27 +467,29 @@ static bool scannedonly_allow_access(vfs_handle_struct * 
handle,
talloc_free(smb_fname2);
dire = SMB_VFS_NEXT_READDIR(handle, sDIR-DIR,NULL);
}
-   sDIR-notify_loop_done = 1;
-   didloop = 1;
+   sDIR-recheck_tries_done = 1;
SMB_VFS_NEXT_SEEKDIR(handle, sDIR-DIR, offset);
}
if (recheck_time  0
 ((recheck_size  0
  smb_fname-st.st_ex_size  (1024 * recheck_size))
-   || didloop)) {
-   int i = 0;
+|| (sDIR  sDIR-recheck_tries_done  recheck_tries)
+   )) {
+   int numloops = sDIR ? sDIR-recheck_tries_done : 0;
flush_sendbuffer(handle);
while (retval != 0  /* errno == ENOENT */
-   i  recheck_tries) {
+   numloops  recheck_tries) 

[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-08-23 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  cd6c0af WHATSNEW: Prepare release notes for 3.4.15.
   via  7f49539 s3/swat: use strlcat instead of strncat to fix build on old 
Linux distros
   via  8473536 s3:web/swat: use strtoll() instead of atoi/atol/atoll
   via  d919234 s3:nmbd_packets: return the used number of sockets in 
create_listen_fdset() (bug #8276)
   via  38ccc2d s3: increase the log level for missing PIDs on SIGCHLD
   via  39ec5c1 s3-libnet: fix bug #6364: Pull realm from supplied username 
on libnet join (cherry picked from commit 
9a172dcd2e7bf91d78885325bce7a19e937b48af)
   via  deb939d s3-printing: remove duplicate cups response processing code
   via  75d9ea6 s3-printing: use printcap IDL for IPC
   via  95fbe86 idl: define printcap IPC message format
   via  15942c9 s3-printing: an empty cups printer list is treated as an 
error
   via  4bfaf8c s3-printing: remove pcap_cache_loaded asserts
   via  004564c Revert Revert s3-printing: update parent smbd pcap cache
   via  41792ec Revert Revert s3-printing: reload shares after pcap cache 
fill
  from  999514b WHATSNEW: Start release notes for 3.4.15.

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


- Log -
commit cd6c0af7aad6f92f2415f9e11c23f1b36ab077e9
Author: Karolin Seeger ksee...@samba.org
Date:   Thu Aug 18 21:39:52 2011 +0200

WHATSNEW: Prepare release notes for 3.4.15.

Karolin
(cherry picked from commit 3777f31f377e97e09d6cbe9c65c4c4b79b637da2)

commit 7f49539a70767da0bf456efa22a8f2fe3bc2f366
Author: Björn Jacke b...@sernet.de
Date:   Thu Aug 4 16:25:08 2011 +0200

s3/swat: use strlcat instead of strncat to fix build on old Linux distros

SLES 9's glibc for example had weird macros where the use of strncat 
resulted
in the use of strcat which we don't allow.

Signed-off-by: Stefan Metzmacher me...@samba.org

Autobuild-User: Björn Jacke b...@sernet.de
Autobuild-Date: Thu Aug  4 17:50:24 CEST 2011 on sn-devel-104
(cherry picked from commit d3b4d75364210e2d2a4a1cd806f28b0021f22909)

Fix bug #8362 (build issue on old glibc systems).
(cherry picked from commit 87fa72a5202fe3780d4a61289bf755027cd078f4)
(cherry picked from commit 552ccc6588b0744ae9b3731b1406749baea03d5a)
(cherry picked from commit b941edf9c20bd6a92aec2a62be5b830db1194ce8)

commit 84735368921211d4b29d3b80ea747f692a2f1f91
Author: Stefan Metzmacher me...@samba.org
Date:   Fri Aug 5 19:48:38 2011 +0200

s3:web/swat: use strtoll() instead of atoi/atol/atoll

This is more portable, as we have a strtoll replacement
in lib/replace.

metze

Autobuild-User: Stefan Metzmacher me...@samba.org
Autobuild-Date: Sat Aug  6 11:55:45 CEST 2011 on sn-devel-104
(cherry picked from commit a6be0820d09b3f3eabfbb5f4356add303aa8a494)

Fix bug #8347 (CVE-2011-2522 regression for HP-UX, AIX and OSF).
(cherry picked from commit ac5d8c0148e10a3a0af9e1dc0849bb6920c26ad7)

commit d9192349311c59e7ec5b58747fa8c393af5f9d3d
Author: Stefan Metzmacher me...@samba.org
Date:   Thu Jun 30 09:56:06 2011 +0200

s3:nmbd_packets: return the used number of sockets in create_listen_fdset() 
(bug #8276)

Fix bug #7949 (DoS in Winbind and smbd with many file descriptors open)
(commit feb3fcd0fa4bda0967b881315595d7702f4d1752) changed the bahavior,
so that we skipped some sockets.

This should work for v3-4-test.

metze
(cherry picked from commit 11b4dec29c9306531e73d5f4c12f89934dd538b4)

commit 38ccc2d665bb3f80fcb46a21b7646f3e0a09b7c9
Author: David Disseldorp dd...@suse.de
Date:   Wed Feb 16 17:23:25 2011 +0100

s3: increase the log level for missing PIDs on SIGCHLD

Since the fix for bso#7836, the parent smbd is responsible for
maintaining an up-to-date printcap cache. It does this by forking a
child process to asynchronously fetch printcap data from CUPS.

When the child process exits after fetching all printcap data, the
parent smbd is sent SIGCHLD. This triggers smbd_sig_chld_handler() which
looks for the exited process PID on a children list.
Child smbd process PIDs are added to the children list to ensure
cleanup on unclean shutdown and log level change notification messages.

Printcap update process PIDs are not added to the list as they do not
maintain any state that requires cleanup, nor do they wait on tevent for
messages.

Autobuild-User: Volker Lendecke vlen...@samba.org
Autobuild-Date: Thu Feb 17 11:11:45 CET 2011 on sn-devel-104
(cherry picked from commit 9c12232f1ae36e00d04114ad73edd8ba3c2c6a5c)

Fix bug #8269 (smbd spams log with Could not find child X -- ignoring
messages).
(cherry picked from commit ba118ac287d49267dd2f346d4ddd2e590ebbe653)
(cherry picked from commit 

[SCM] Samba Shared Repository - annotated tag samba-3.4.15 created

2011-08-23 Thread Karolin Seeger
The annotated tag, samba-3.4.15 has been created
at  c07a4472ab44a27be9ba109003e7b265e3651c0d (tag)
   tagging  cd6c0af7aad6f92f2415f9e11c23f1b36ab077e9 (commit)
  replaces  samba-3.4.14
 tagged by  Karolin Seeger
on  Mon Aug 22 20:02:36 2011 +0200

- Log -
tag samba-3.4.15
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.15 (GNU/Linux)

iD8DBQBOUpnObzORW2Vot+oRAsrCAJ9j6K6OYj7foggEvMYPwI2SNoDQLACghZI4
1+4WHOqvDAx8LpPD0VUGi/U=
=D7bJ
-END PGP SIGNATURE-

Björn Jacke (1):
  s3/swat: use strlcat instead of strncat to fix build on old Linux distros

David Disseldorp (8):
  Revert Revert s3-printing: reload shares after pcap cache fill
  Revert Revert s3-printing: update parent smbd pcap cache
  s3-printing: remove pcap_cache_loaded asserts
  s3-printing: an empty cups printer list is treated as an error
  idl: define printcap IPC message format
  s3-printing: use printcap IDL for IPC
  s3-printing: remove duplicate cups response processing code
  s3: increase the log level for missing PIDs on SIGCHLD

Jim McDonough (1):
  s3-libnet: fix bug #6364: Pull realm from supplied username on libnet join

Karolin Seeger (3):
  VERSION: Bump version up to 3.4.15.
  WHATSNEW: Start release notes for 3.4.15.
  WHATSNEW: Prepare release notes for 3.4.15.

Stefan Metzmacher (2):
  s3:nmbd_packets: return the used number of sockets in 
create_listen_fdset() (bug #8276)
  s3:web/swat: use strtoll() instead of atoi/atol/atoll

---


-- 
Samba Shared Repository


[SCM] Samba Website Repository - branch master updated

2011-08-23 Thread Karolin Seeger
The branch, master has been updated
   via  4f9fa5f Announce Samba 3.4.15.
  from  e74f8af Make this news look like the 3.6 announcement

http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master


- Log -
commit 4f9fa5f3eec8f1c65015ca5c8584233f6619abd4
Author: Karolin Seeger ksee...@samba.org
Date:   Mon Aug 22 20:19:08 2011 +0200

Announce Samba 3.4.15.

Karolin

---

Summary of changes:
 generated_news/latest_10_bodies.html|   30 ++
 generated_news/latest_10_headlines.html |4 +-
 generated_news/latest_2_bodies.html |   19 ++-
 history/header_history.html |1 +
 history/samba-3.4.15.html   |   50 +++
 5 files changed, 73 insertions(+), 31 deletions(-)
 create mode 100755 history/samba-3.4.15.html


Changeset truncated at 500 lines:

diff --git a/generated_news/latest_10_bodies.html 
b/generated_news/latest_10_bodies.html
index dc7b076..2b05536 100644
--- a/generated_news/latest_10_bodies.html
+++ b/generated_news/latest_10_bodies.html
@@ -1,3 +1,13 @@
+   h5a name=3.4.1523 August 2011/a/h5
+   p class=headlineSamba 3.4.15 Available for Download/p
+   pThis is the latest stable release of the Samba 3.4 series./p
+
+pThe uncompressed tarballs and patch files have been signed
+using GnuPG (ID 6568B7EA).  The source code can be
+a href=http://samba.org/samba/ftp/stable/samba-3.4.15.tar.gz;downloaded
+now/a. A a 
href=http://samba.org/samba/ftp/patches/patch-3.4.14-3.4.15.diffs.gz;patch 
against Samba 3.4.15/a is also available. See a 
href=http://samba.org/samba/history/samba-3.4.15.html;the release notes for 
more info/a./p
+
+
h5a name=3.6.0_highlights09 August 2011/a/h5
p class=headlineThe highlights of Samba 3.6/p
pThe major new release of the award-winning Free Software is the first
@@ -123,23 +133,3 @@ now/a. A a 
href=http://samba.org/samba/ftp/patches/patch-3.5.8-3.5.9.diffs.g
  Precompiled packages will
  be made available on a volunteer basis and can be found in the
  a href=http://samba.org/samba/ftp/Binary_Packages/;Binary_Packages 
download area/a./p
-
-
-   h5a name=3.6.0rc117 May 2011/a/h5
-   p class=headlineSamba 3.6.0rc1 Available for Download/p
-   pSamba 3.6.0rc1 is available for download.  This is the
- first release candidate of the next upgrade production release version of 
Samba 3.6.0.
- It is intended for btesting purposes only/b.  Please test and
- a href=https://bugzilla.samba.org/;report any bugs that you
- find/a.  Please read the changes in the
- a href=http://samba.org/samba/ftp/rc/WHATSNEW-3-6-0rc1.txt;Release 
Notes/a
- for details on new features and difference in behavior from
- previous releases./p
-
- pThe a href=http://samba.org/samba/ftp/rc/samba-3.6.0rc1.tar.gz;Samba 
3.6.0rc1
- source code/a can be downloaded now.  The a
- href=http://samba.org/samba/ftp/rc/samba-3.6.0rc1.tar.asc;GnuPG
- signature is for the emun/emcompressed tarball/a.
- Precompiled packages will
- be made available on a volunteer basis and can be found in the
- a href=http://samba.org/samba/ftp/Binary_Packages/;Binary_Packages 
download area/a./p
diff --git a/generated_news/latest_10_headlines.html 
b/generated_news/latest_10_headlines.html
index 4f089cb..a110182 100644
--- a/generated_news/latest_10_headlines.html
+++ b/generated_news/latest_10_headlines.html
@@ -1,4 +1,6 @@
 ul
+   li 23 August 2011 a href=#3.4.15Samba 3.4.15 Available for 
Download/a/li
+
li 09 August 2011 a href=/samba/news/releases/3.6.0.htmlThe 
highlights of Samba 3.6/a/li
 
li 09 August 2011 a href=#3.6.0Samba 3.6.0 Available for 
Download/a/li
@@ -16,6 +18,4 @@
li 14 June 2011 a href=#3.5.9Samba 3.5.9 Available for 
Download/a/li
 
li 7 June 2011 a href=#3.6.0rc2Samba 3.6.0rc2 Available for 
Download/a/li
-
-   li 17 May 2011 a href=#3.6.0rc1Samba 3.6.0rc1 Available for 
Download/a/li
 /ul
diff --git a/generated_news/latest_2_bodies.html 
b/generated_news/latest_2_bodies.html
index ab1cf75..fea2af7 100644
--- a/generated_news/latest_2_bodies.html
+++ b/generated_news/latest_2_bodies.html
@@ -1,3 +1,13 @@
+   h5a name=3.4.1523 August 2011/a/h5
+   p class=headlineSamba 3.4.15 Available for Download/p
+   pThis is the latest stable release of the Samba 3.4 series./p
+
+pThe uncompressed tarballs and patch files have been signed
+using GnuPG (ID 6568B7EA).  The source code can be
+a href=http://samba.org/samba/ftp/stable/samba-3.4.15.tar.gz;downloaded
+now/a. A a 
href=http://samba.org/samba/ftp/patches/patch-3.4.14-3.4.15.diffs.gz;patch 
against Samba 3.4.15/a is also available. See a 
href=http://samba.org/samba/history/samba-3.4.15.html;the release notes for 
more info/a./p
+
+
h5a name=3.6.0_highlights09 August 2011/a/h5
p class=headlineThe highlights of Samba 3.6/p

[SCM] Samba Website Repository - branch master updated

2011-08-23 Thread Karolin Seeger
The branch, master has been updated
   via  a2f4adb Remove superfluous spaces.
  from  4f9fa5f Announce Samba 3.4.15.

http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master


- Log -
commit a2f4adbb03a4ac433ec5ba01ebc682524ee768e3
Author: Karolin Seeger ksee...@samba.org
Date:   Tue Aug 23 20:13:34 2011 +0200

Remove superfluous spaces.

Karolin

---

Summary of changes:
 history/samba-3.4.15.html |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/history/samba-3.4.15.html b/history/samba-3.4.15.html
index 0be3005..9ebf4c8 100755
--- a/history/samba-3.4.15.html
+++ b/history/samba-3.4.15.html
@@ -27,7 +27,8 @@ Changes since 3.4.14
 
 o   David Disseldorp lt;dd...@suse.degt;
 * BUG 7836: Make newly added printers visible to clients,
-* BUG 7994: Make cups async printcap retrieval notify parent smbd of error 
  status.
+* BUG 7994: Make cups async printcap retrieval notify parent smbd of error
+  status.
 * BUG 8269: Stop spamming log with Could not find child X -- ignoring
   messages.
 


-- 
Samba Website Repository


[SCM] Samba Shared Repository - branch v3-4-test updated

2011-08-23 Thread Karolin Seeger
The branch, v3-4-test has been updated
   via  6f4316c WHATSNEW: Start release notes for 3.4.16.
   via  4573fbe VERSION: Bump version up to 3.4.16.
  from  3777f31 WHATSNEW: Prepare release notes for 3.4.15.

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


- Log -
commit 6f4316c93105165505bd8975530e01c8e50fb9c0
Author: Karolin Seeger ksee...@samba.org
Date:   Tue Aug 23 20:21:23 2011 +0200

WHATSNEW: Start release notes for 3.4.16.

Karolin

commit 4573fbed636e114d21f6efbb3204ae09dfc9c0c2
Author: Karolin Seeger ksee...@samba.org
Date:   Tue Aug 23 20:19:39 2011 +0200

VERSION: Bump version up to 3.4.16.

Karolin

---

Summary of changes:
 WHATSNEW.txt|   43 +--
 source3/VERSION |2 +-
 2 files changed, 42 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 4f86dc5..44819e0 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,43 @@
==
+   Release Notes for Samba 3.4.16
+  , 2011
+   ==
+
+
+This is the latest stable release of Samba 3.4.
+
+
+Changes since 3.4.15
+
+
+
+o   
+
+
+##
+Reporting bugs  Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
Release Notes for Samba 3.4.15
   August 23, 2011
==
@@ -51,8 +90,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
==
Release Notes for Samba 3.4.14
diff --git a/source3/VERSION b/source3/VERSION
index 59adb68..6a6e054 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=15
+SAMBA_VERSION_RELEASE=16
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-stable updated

2011-08-23 Thread Karolin Seeger
The branch, v3-4-stable has been updated
   via  fcd2aeb WHATSNEW: Start release notes for 3.4.16.
   via  65fb0a0 VERSION: Bump version up to 3.4.16.
  from  cd6c0af WHATSNEW: Prepare release notes for 3.4.15.

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


- Log -
commit fcd2aeb3cba750b115377df37b9be2fc66afa323
Author: Karolin Seeger ksee...@samba.org
Date:   Tue Aug 23 20:21:23 2011 +0200

WHATSNEW: Start release notes for 3.4.16.

Karolin
(cherry picked from commit 6f4316c93105165505bd8975530e01c8e50fb9c0)

commit 65fb0a038b26e76e2f65b8336c3a719eb211d36a
Author: Karolin Seeger ksee...@samba.org
Date:   Tue Aug 23 20:19:39 2011 +0200

VERSION: Bump version up to 3.4.16.

Karolin
(cherry picked from commit 4573fbed636e114d21f6efbb3204ae09dfc9c0c2)

---

Summary of changes:
 WHATSNEW.txt|   43 +--
 source3/VERSION |2 +-
 2 files changed, 42 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 4f86dc5..44819e0 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,4 +1,43 @@
==
+   Release Notes for Samba 3.4.16
+  , 2011
+   ==
+
+
+This is the latest stable release of Samba 3.4.
+
+
+Changes since 3.4.15
+
+
+
+o   
+
+
+##
+Reporting bugs  Development Discussion
+###
+
+Please discuss this release on the samba-technical mailing list or by
+joining the #samba-technical IRC channel on irc.freenode.net.
+
+If you do report problems then please try to send high quality
+feedback. If you don't provide vital information to help us track down
+the problem then you will probably be ignored.  All bug reports should
+be filed under the Samba 3.4 product in the project's Bugzilla
+database (https://bugzilla.samba.org/).
+
+
+==
+== Our Code, Our Bugs, Our Responsibility.
+== The Samba Team
+==
+
+
+Release notes for older versions follow:
+
+
+   ==
Release Notes for Samba 3.4.15
   August 23, 2011
==
@@ -51,8 +90,8 @@ database (https://bugzilla.samba.org/).
 ==
 
 
-Release notes for older versions follow:
-
+--
+
 
==
Release Notes for Samba 3.4.14
diff --git a/source3/VERSION b/source3/VERSION
index f678b11..756104f 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -25,7 +25,7 @@
 
 SAMBA_VERSION_MAJOR=3
 SAMBA_VERSION_MINOR=4
-SAMBA_VERSION_RELEASE=15
+SAMBA_VERSION_RELEASE=16
 
 
 # Bug fix releases use a letter for the patch revision #


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-6-test updated

2011-08-23 Thread Karolin Seeger
The branch, v3-6-test has been updated
   via  9bf2b30 Fix bug #8395 - optimize serverid_exists() for Solaris.
  from  8d46b29 talloc: check block count aftter references test

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


- Log -
commit 9bf2b3034b4c9523bfac779e518a2a1a6d76ef46
Author: Ira Cooper i...@wakeful.net
Date:   Mon Aug 22 12:46:41 2011 -0700

Fix bug #8395 - optimize serverid_exists() for Solaris.

jra asked:

Do you have any idea on how many calls it saves,
and what help the optimization gives ?

As far as calls: Not 100% sure, dtrace pointed the issue out to me, and 
when I
saw 10-50%(Or more), I looked for an easy fix.

The real expense here is the fnctl locks on the database.  That's pretty
painful.  1000ns per call, and probably 3-4 calls in that chain.  So it 
doesn't
take much to come out ahead was my math.

---

Summary of changes:
 source3/lib/serverid.c |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c
index b1f6a57..8cd7f5a 100644
--- a/source3/lib/serverid.c
+++ b/source3/lib/serverid.c
@@ -233,7 +233,11 @@ bool serverid_exists(const struct server_id *id)
struct serverid_key key;
TDB_DATA tdbkey;
 
-   if (lp_clustering()  !process_exists(*id)) {
+   if (procid_is_me(id)) {
+   return true;
+   }
+
+   if (!process_exists(*id)) {
return false;
}
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2011-08-23 Thread Volker Lendecke
The branch, master has been updated
   via  6d2f65b s3: Fix an uninitialized variable
   via  0d3dc8e s3: Fix the build on FreeBSD
  from  932f222 s/event_context/tevent_context/ in smbsock_any_connect

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 6d2f65ba7fe87b45880b80e66407e7a4e49f35a3
Author: Volker Lendecke v...@samba.org
Date:   Wed Aug 24 01:02:38 2011 +0200

s3: Fix an uninitialized variable

Autobuild-User: Volker Lendecke vlen...@samba.org
Autobuild-Date: Wed Aug 24 00:34:04 CEST 2011 on sn-devel-104

commit 0d3dc8e2d163c044f6594f2169a2fef4f53290a1
Author: Volker Lendecke v...@samba.org
Date:   Wed Aug 24 00:36:35 2011 +0200

s3: Fix the build on FreeBSD

lsasd.c uses basename(3), which according to susv3
requires libgen.h and without which the FreeBSD build breaks.

---

Summary of changes:
 source3/rpc_server/lsasd.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/lsasd.c b/source3/rpc_server/lsasd.c
index 4469007..a4c07b1 100644
--- a/source3/rpc_server/lsasd.c
+++ b/source3/rpc_server/lsasd.c
@@ -23,6 +23,7 @@
 #include serverid.h
 #include messages.h
 #include ntdomain.h
+#include libgen.h
 
 #include lib/id_cache.h
 
@@ -315,7 +316,7 @@ static int lsasd_children_main(struct tevent_context 
*ev_ctx,
 {
struct lsasd_children_data *data;
bool ok;
-   int ret;
+   int ret = 0;
 
ok = lsasd_child_init(ev_ctx, child_id, pf);
if (!ok) {


-- 
Samba Shared Repository