Re: [Samba] Hide empty Samba shares?

2012-09-06 Thread Volker Lendecke
On Wed, Sep 05, 2012 at 09:12:11PM -0500, Stan Hoeppner wrote:
 On 9/5/2012 9:23 AM, Sam Bulka wrote:
  Stan Hoeppner stan at hardwarefreak.com 
 
  Samba is not MS Windows.  Just because a feature exists in MS Windows
  does not make it basic translated expected in other platforms.  If
  you were a long time Samba/*nix user and switched to MS Windows you'd
  have the same complaint in reverse (though there are few such defections).
  
  Samba was initially developed by watching Windows network protocol to allow 
  share files btw Linux and Windows. Of course its expected to offer basic 
  features Windows users are used to when sharing files with Windows.
 
 Yes, of course, and it does.  But you're missing the point.  The feature
 in question isn't part of the SMB/CIFS protocol stack, thus Samba can't
 duplicate it.  It's an operating system specific feature implemented in,
 and unique to, MS Windows.  Microsoft controls both their SMB/CIFS code
 stack and their operating system code.  Thus they are free to create
 internal proprietary interfaces between the two that provide unique
 functionality.
 
 The Samba team doesn't control the Linux, *BSD, AIX, Solaris, etc
 operating system code, so they can't simply add the interfaces to each
 OS that are necessary to implement what you call the basic
 functionality that Microsoft provides.  It's not basic functionality
 at all, but extended functionality, as it's not part of the SMB/CIFS
 stack.  It's proprietary.
 
 I'm guessing that due to your lack of knowledge of software development
 models that you didn't understand anything I just stated above.  So I'll
 boil it down to this:
 
 If you critically need this feature, switch back to MS Windows.  It will
 likely never be implemented in a Samba+OS stack.

Well, what we might be able to do is to add a scripting
interface to the available parameter that is checked every
time the share is about to be accessed. This would give a
flexible interface to whatever the OS provides.

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
http://www.sernet.de, mailto:kont...@sernet.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] [SOLVED] Still mandatory profiles, every user same profile

2012-09-06 Thread Ulrich Schinz

Hi there,

Here the question I had:

1.) Every user in my System should use the same profile. In dsa.msc I 
gave every user as profile-path \\samba4\profiles\stud
2.) The users should not be able to change anything in that profile (I 
think changing ntuser.dat to ntuser.man should do the job, proposed i 
got step one managed )



ok, here we go. There are 2 different (semi-official) approaches.

BUT... the third one worked for me

I describe the scenarios in my testenvironment:

1.) Approach
I have a Default User.V2 profile in my netlongon share.

Configuration:
- in AD three users are added: vartest1, vartest2, vartest3
- all users have profile-paths: \\samba4\profiles\vartest[1-3] (three 
different profiles-paths...)

- netlogon share is read only = yes and  profile acls = true
- profile directory security settings is set to authenticated users - 
full access
- profile ntuser.dat security settings via regedit - load hive is set 
to authenticated users - full access

- profiles-share is set to atuhtenticated users - full access

In this configuration every user gets same profile. Each profile is 
created in profiles-share.


But if I'm trying to change ntuser.dat to ntuser.man the Default User.V2 
profile is not being loaded. The Default User-profile of the local 
machine is chosen instead...


So I only can produce changeable profiles.

2.) Approach
I have a Default User.V2 profile in my netlongon share.

Configuration:
- in AD three users are added: statest1, statest2, statest3
- all users have one and the same profile-path: 
\\samba4\profiles\statest (all have the same profile-path)

- netlogon share is read only = yes and  profile acls = true
- profile directory security settings is set to authenticated users - 
full access
- profile ntuser.dat security settings via regedit - load hive is set 
to authenticated users - full access

- profiles-share is set to atuhtenticated users - full access

In this configuration the profile can't be used by other users. It's 
clear why, the first loged in user has all rights, no other

users are allowed and so on...


What I wanted to have is one profile for every user, i.e. same 
profile-path for every user in my system. So I have only one profile in my

profiles directory. AND: the profile should not be changeable.

3.) So my approach to this was following:

I created a share profiles :

[profiles]
path = /home/samba/profiles
vfs objects = fake_perms
read only = Yes
writeable = No

There i stored a profile.
- Directory security settings: full access to authenticated users
- ntuser.man: security settings (regedit - load hive): full access to 
authenticated users.
These settings were made in a writeable share, and I copied (cp -a ) the 
directory in linux to the profiles (read only) share.


This way I have, what I wanted. All users share the same profile and 
they can't change it.


I hope I mentioned every needed detail of my setup... I tried days, 
setup samba maybe 7-8 times (other os, other architecture - x86, x64 
and so on) and

I didn't write down every step... So if anything is unclear, just ask...

I'm not sure, whether this way is very elegant (it doesn't seem to be, 
andrew mentioned that fake_perms is ugly...), but it was the only way 
for me to get this working.


So thanks for your help @andrew barlett!

Maybe some people have tried similar setups, every feedback or 
suggestion to get a better setup is very welcome.


Kind regards
Uli




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


[Samba] Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread Eitan Orgil
Hi,

I have installed an Ubuntu server 12.04.01 with Smba 3.6.3

I have configured it to be a file server as well as a PDC.

When I restart the Linux system, the Samba service will not
start automatically.

I tried using: chkconfig smbd 3, for that I got a lot of ... missing LSB
tags and overrides messages.
Then when I run:  chkconfig smbd  I get: smbd 3
Rebooting the Linux, the service is up, but not responding, restarting the
smbd service and it is OK.

I also tryed to ussysv-rc-confe with the same resoults,the service is up,
but not responding, restarting the smbd service and it is OK.

Can anybody help?


-- 
Best regards
Orgil Eitan
 please consider the environment before printing this email.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread Serge Fonville
Hi,

Could you share the actual commands, their output and the steps you took?

Since chkconfig provides a lot of useful output.

Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table



2012/9/6 Eitan Orgil eitan.or...@gmail.com

 Hi,

 I have installed an Ubuntu server 12.04.01 with Smba 3.6.3

 I have configured it to be a file server as well as a PDC.

 When I restart the Linux system, the Samba service will not
 start automatically.

 I tried using: chkconfig smbd 3, for that I got a lot of ... missing LSB
 tags and overrides messages.
 Then when I run:  chkconfig smbd  I get: smbd 3
 Rebooting the Linux, the service is up, but not responding, restarting the
 smbd service and it is OK.

 I also tryed to ussysv-rc-confe with the same resoults,the service is up,
 but not responding, restarting the smbd service and it is OK.

 Can anybody help?


 --
 Best regards
 Orgil Eitan
  please consider the environment before printing this email.
 --
 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 is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread Chris Smith
Ubuntu AFAIK has never fixed their Bug 951087 which is one reason I
cannot recommend it as a server where Samba is a critical package.

On Thu, Sep 6, 2012 at 7:33 AM, Eitan Orgil eitan.or...@gmail.com wrote:
 Hi,

 I have installed an Ubuntu server 12.04.01 with Smba 3.6.3

 I have configured it to be a file server as well as a PDC.

 When I restart the Linux system, the Samba service will not
 start automatically.

 I tried using: chkconfig smbd 3, for that I got a lot of ... missing LSB
 tags and overrides messages.
 Then when I run:  chkconfig smbd  I get: smbd 3
 Rebooting the Linux, the service is up, but not responding, restarting the
 smbd service and it is OK.

 I also tryed to ussysv-rc-confe with the same resoults,the service is up,
 but not responding, restarting the smbd service and it is OK.

 Can anybody help?


 --
 Best regards
 Orgil Eitan
  please consider the environment before printing this email.
 --
 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] Hide empty Samba shares?

2012-09-06 Thread Sam Bulka

--- Forwarded message ---
From: Volker Lendecke volker.lende...@sernet.de

Well, what we might be able to do is to add a scripting
interface to the available parameter that is checked every
time the share is about to be accessed. This would give a
flexible interface to whatever the OS provides.

Volker

Thanks Volker,

Hope you're engaged in Samba development and eager to implement your  
approach to address this issue. Who would be able to use this scripting  
interface and how - some example? I'm indeed stupid, but not THAT MUCH as  
Stan seems to imply. :)


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


Re: [Samba] Changed PDC IP, all hell broke lose

2012-09-06 Thread Robert Adkins II
I think you can/should have them remove the PDC from their WINS entry on
their end and then you can rejoin the network with the new IP Address.

Outside of that, I can only suggest looking into how to send an update to a
record on a WINS server from a Samba PDC. I'm unsure if that is possible as
I have only run a fully Windows or a Linux/Samba with Windows Clients as a
network.


--

Regards,
Robert Adkins

 

 -Original Message-
 From: samba-boun...@lists.samba.org 
 [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
 Sent: Tuesday, September 04, 2012 2:24 PM
 To: samba@lists.samba.org
 Subject: Re: [Samba] Changed PDC IP, all hell broke lose
 
 
 It is definitely an issue with the WINS server which returns 
 the old IP address
 
 # nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b'
 querying MRIRESEARCH on 172.27.88.81
 132.183.202.95 MRIRESEARCH1b
 
 SO it is not automatically picking up the IP change which 
 happened 4 days ago and I have restarted samba on my PDC 
 several times.  The old IP is definitely not in /etc/hosts 
 anymore or anywhere in smb.conf.  It only shows up in 
 gencache.tdb in the files /var/lib/samba even though I keep 
 deleting that file when I restart.
 
 WINS is a total mystery to me.  How is this supposed to work?
 
 -- Paul Raines (http://help.nmr.mgh.harvard.edu)
 
 
 
 On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote:
 
  I have no idea what the WINS server is except that I am sure it 
  running on Windows since they are totally Windows-based 
 organization.  
  So the WINS server is definitely the problem?  When I talk 
 to them and 
  mention I am using Samba on Linux they may totally just say 
 we don't support it and hang up.
 
  It seems a strange design that a WINS server can take 
 precedence over 
  my explicit password server setting in my smb.conf file.
 
  -- Paul Raines (http://help.nmr.mgh.harvard.edu)
 
 
 
  On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote:
 
  More information is required.
  
  What is the WINS server running OS wise? Can you work with the IT 
  Staff in charge of that WINS Server?
  
  --
  
  Regards,
  Robert Adkins
  
  
  
  -Original Message-
  From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu]
  Sent: Tuesday, September 04, 2012 11:16 AM
  To: Robert Adkins II
  Cc: samba@lists.samba.org
  Subject: RE: [Samba] Changed PDC IP, all hell broke lose
  
  
  I am not running winbindd on the server.  I am using the 
 WINS server 
  of my hospital which I have no control over.
  
  I have already tried deleting browse.dat (I do not see 
 the other two 
  files anywhere) to no avail.
  
  So my fear is that this is all happening because the WINS 
 server is 
  refusing to recognize the change since I cannot do anything about 
  it. Is that the issue?  Is there anyway to force a WINS server to 
  change the IP it has a for domain master browser?
  
  -- Paul Raines (http://help.nmr.mgh.harvard.edu)
  
  
  
  On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote:
  
  It's most likely that your server has the old IP Address
  Cached in the
  wins.dat, browse.dat, browse.tdb.
  
  I recommend the following:
  
  Shutdown the windbind, nmbd and smbd services.
  
  Back up each of the above mentioned files.
  
  Delete the original above named files.
  
  Restart your services and then see if you can connect.
  
  You may also need to edit your samba configuration file 
 to point to 
  the new server IP Address as the PDC Master Browser. 
 (Assuming you 
  didn't already do
  that.)
  
  The problem is that your server is telling clients to
  attempt to find
  it on a network that no longer exists.
  
  --
  
  Regards,
  Robert Adkins II
  
  
  
  -Original Message-
  From: samba-boun...@lists.samba.org 
  [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
  Sent: Tuesday, September 04, 2012 10:41 AM
  To: samba@lists.samba.org
  Subject: [Samba] Changed PDC IP, all hell broke lose
  
  
  I had to move my RedHat 5 box acting as a PDC to a new IP
  address. It
  is running samba 3.5.10.  After the move, none of my
  windows or linux
  samba clients worked anymore.  I tried rejoining some to
  the domain,
  but would get error
  
  Unable to find a suitable server
  Join to domain 'MRIRESEARCH' is not valid
  
  
  The old PDC IP address is 132.183.202.95 and nothing is 
 at that IP 
  anymore (for 4 days now).  The new IP is 172.21.21.35
  
  I ran 'net -d 10 join' and would see it was still trying
  to connect
  to the old IP address.  I tried 'net cache flush' to no 
 avail.  I 
  shut down samba, removed every file in /var/cache/samba
  and still no
  change.
  It tries to go to the old IP address.
  
  On the PDC box, I increase 'os level' from 60 to 70,
  stopped the nmbd
  and smbd processes, did a 'net flush cache' and 
 restarted nmbd and 
  smbd. Still it fails and the nmbd log as the following.
  
  ==
  [2012/09/04 10:09:25,  0] nmbd/nmbd.c:857(main)
 nmbd version 

Re: [Samba] Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread L . P . H . van Belle
Hai, 

i also dont recommend ubuntu as server, but your script is correct. 

Did you remove upstart ? or did you install a non ubuntu package. 
Im running samba also on ubuntu and debian, as pdc and no problem. 

setup dependency based boot sequencing 
http://manpages.ubuntu.com/manpages/precise/man8/update-rc.d.8.html

Louis

-Oorspronkelijk bericht-
Van: smb...@chrissmith.org 
[mailto:samba-boun...@lists.samba.org] Namens Chris Smith
Verzonden: donderdag 6 september 2012 15:02
Aan: Eitan Orgil
CC: samba@lists.samba.org
Onderwerp: Re: [Samba] Samba is not starting automatically on 
boot, installed on Ubuntu

Ubuntu AFAIK has never fixed their Bug 951087 which is one reason I
cannot recommend it as a server where Samba is a critical package.

On Thu, Sep 6, 2012 at 7:33 AM, Eitan Orgil 
eitan.or...@gmail.com wrote:
 Hi,

 I have installed an Ubuntu server 12.04.01 with Smba 3.6.3

 I have configured it to be a file server as well as a PDC.

 When I restart the Linux system, the Samba service will not
 start automatically.

 I tried using: chkconfig smbd 3, for that I got a lot of 
... missing LSB
 tags and overrides messages.
 Then when I run:  chkconfig smbd  I get: smbd 3
 Rebooting the Linux, the service is up, but not responding, 
restarting the
 smbd service and it is OK.

 I also tryed to ussysv-rc-confe with the same resoults,the 
service is up,
 but not responding, restarting the smbd service and it is OK.

 Can anybody help?


 --
 Best regards
 Orgil Eitan
 ??? please consider the environment before printing this email.
 --
 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


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


Re: [Samba] Changed PDC IP, all hell broke lose

2012-09-06 Thread Paul Raines


I emailed the admins and they said they removed the old IP address
from the WINS server and that seemed to fix things.

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Thu, 6 Sep 2012 9:37am, Robert Adkins II wrote:


I think you can/should have them remove the PDC from their WINS entry on
their end and then you can rejoin the network with the new IP Address.

Outside of that, I can only suggest looking into how to send an update to a
record on a WINS server from a Samba PDC. I'm unsure if that is possible as
I have only run a fully Windows or a Linux/Samba with Windows Clients as a
network.


--

Regards,
Robert Adkins




-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
Sent: Tuesday, September 04, 2012 2:24 PM
To: samba@lists.samba.org
Subject: Re: [Samba] Changed PDC IP, all hell broke lose


It is definitely an issue with the WINS server which returns
the old IP address

# nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b'
querying MRIRESEARCH on 172.27.88.81
132.183.202.95 MRIRESEARCH1b

SO it is not automatically picking up the IP change which
happened 4 days ago and I have restarted samba on my PDC
several times.  The old IP is definitely not in /etc/hosts
anymore or anywhere in smb.conf.  It only shows up in
gencache.tdb in the files /var/lib/samba even though I keep
deleting that file when I restart.

WINS is a total mystery to me.  How is this supposed to work?

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote:


I have no idea what the WINS server is except that I am sure it
running on Windows since they are totally Windows-based

organization.

So the WINS server is definitely the problem?  When I talk

to them and

mention I am using Samba on Linux they may totally just say

we don't support it and hang up.


It seems a strange design that a WINS server can take

precedence over

my explicit password server setting in my smb.conf file.

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote:


More information is required.

What is the WINS server running OS wise? Can you work with the IT
Staff in charge of that WINS Server?

--

Regards,
Robert Adkins




-Original Message-
From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu]
Sent: Tuesday, September 04, 2012 11:16 AM
To: Robert Adkins II
Cc: samba@lists.samba.org
Subject: RE: [Samba] Changed PDC IP, all hell broke lose


I am not running winbindd on the server.  I am using the

WINS server

of my hospital which I have no control over.

I have already tried deleting browse.dat (I do not see

the other two

files anywhere) to no avail.

So my fear is that this is all happening because the WINS

server is

refusing to recognize the change since I cannot do anything about
it. Is that the issue?  Is there anyway to force a WINS server to
change the IP it has a for domain master browser?

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote:


It's most likely that your server has the old IP Address

Cached in the

wins.dat, browse.dat, browse.tdb.

I recommend the following:

Shutdown the windbind, nmbd and smbd services.

Back up each of the above mentioned files.

Delete the original above named files.

Restart your services and then see if you can connect.

You may also need to edit your samba configuration file

to point to

the new server IP Address as the PDC Master Browser.

(Assuming you

didn't already do
that.)

The problem is that your server is telling clients to

attempt to find

it on a network that no longer exists.

--

Regards,
Robert Adkins II




-Original Message-
From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
Sent: Tuesday, September 04, 2012 10:41 AM
To: samba@lists.samba.org
Subject: [Samba] Changed PDC IP, all hell broke lose


I had to move my RedHat 5 box acting as a PDC to a new IP

address. It

is running samba 3.5.10.  After the move, none of my

windows or linux

samba clients worked anymore.  I tried rejoining some to

the domain,

but would get error

Unable to find a suitable server
Join to domain 'MRIRESEARCH' is not valid


The old PDC IP address is 132.183.202.95 and nothing is

at that IP

anymore (for 4 days now).  The new IP is 172.21.21.35

I ran 'net -d 10 join' and would see it was still trying

to connect

to the old IP address.  I tried 'net cache flush' to no

avail.  I

shut down samba, removed every file in /var/cache/samba

and still no

change.
It tries to go to the old IP address.

On the PDC box, I increase 'os level' from 60 to 70,

stopped the nmbd

and smbd processes, did a 'net flush cache' and

restarted nmbd and

smbd. Still it fails and the nmbd log as the following.

==
[2012/09/04 10:09:25,  0] nmbd/nmbd.c:857(main)
   nmbd version 3.5.10-0.110.el5_8 started.
   Copyright Andrew 

Re: [Samba] Changed PDC IP, all hell broke lose

2012-09-06 Thread Robert Adkins II

Great to see!

--

Regards,
Robert Adkins 
 

 -Original Message-
 From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] 
 Sent: Thursday, September 06, 2012 9:45 AM
 To: Robert Adkins II
 Cc: samba@lists.samba.org
 Subject: RE: [Samba] Changed PDC IP, all hell broke lose
 
 
 I emailed the admins and they said they removed the old IP address
 from the WINS server and that seemed to fix things.
 
 -- Paul Raines (http://help.nmr.mgh.harvard.edu)
 
 
 
 On Thu, 6 Sep 2012 9:37am, Robert Adkins II wrote:
 
  I think you can/should have them remove the PDC from their 
 WINS entry 
  on their end and then you can rejoin the network with the 
 new IP Address.
 
  Outside of that, I can only suggest looking into how to 
 send an update 
  to a record on a WINS server from a Samba PDC. I'm unsure 
 if that is 
  possible as I have only run a fully Windows or a Linux/Samba with 
  Windows Clients as a network.
 
 
  --
 
  Regards,
  Robert Adkins
 
 
 
  -Original Message-
  From: samba-boun...@lists.samba.org
  [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines
  Sent: Tuesday, September 04, 2012 2:24 PM
  To: samba@lists.samba.org
  Subject: Re: [Samba] Changed PDC IP, all hell broke lose
 
 
  It is definitely an issue with the WINS server which 
 returns the old 
  IP address
 
  # nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b'
  querying MRIRESEARCH on 172.27.88.81
  132.183.202.95 MRIRESEARCH1b
 
  SO it is not automatically picking up the IP change which 
 happened 4 
  days ago and I have restarted samba on my PDC several 
 times.  The old 
  IP is definitely not in /etc/hosts anymore or anywhere in 
 smb.conf.  
  It only shows up in gencache.tdb in the files /var/lib/samba even 
  though I keep deleting that file when I restart.
 
  WINS is a total mystery to me.  How is this supposed to work?
 
  -- Paul Raines (http://help.nmr.mgh.harvard.edu)
 
 
 
  On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote:
 
  I have no idea what the WINS server is except that I am sure it 
  running on Windows since they are totally Windows-based
  organization.
  So the WINS server is definitely the problem?  When I talk
  to them and
  mention I am using Samba on Linux they may totally just say
  we don't support it and hang up.
 
  It seems a strange design that a WINS server can take
  precedence over
  my explicit password server setting in my smb.conf file.
 
  -- Paul Raines (http://help.nmr.mgh.harvard.edu)
 
 
 
  On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote:
 
  More information is required.
 
  What is the WINS server running OS wise? Can you work 
 with the IT 
  Staff in charge of that WINS Server?
 
  --
 
  Regards,
  Robert Adkins
 
 
 
  -Original Message-
  From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu]
  Sent: Tuesday, September 04, 2012 11:16 AM
  To: Robert Adkins II
  Cc: samba@lists.samba.org
  Subject: RE: [Samba] Changed PDC IP, all hell broke lose
 
 
  I am not running winbindd on the server.  I am using the
  WINS server
  of my hospital which I have no control over.
 
  I have already tried deleting browse.dat (I do not see
  the other two
  files anywhere) to no avail.
 
  So my fear is that this is all happening because the WINS
  server is
  refusing to recognize the change since I cannot do 
 anything about 
  it. Is that the issue?  Is there anyway to force a WINS 
 server to 
  change the IP it has a for domain master browser?
 
  -- Paul Raines (http://help.nmr.mgh.harvard.edu)
 
 
 
  On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote:
 
  It's most likely that your server has the old IP Address
  Cached in the
  wins.dat, browse.dat, browse.tdb.
 
  I recommend the following:
 
  Shutdown the windbind, nmbd and smbd services.
 
  Back up each of the above mentioned files.
 
  Delete the original above named files.
 
  Restart your services and then see if you can connect.
 
  You may also need to edit your samba configuration file
  to point to
  the new server IP Address as the PDC Master Browser.
  (Assuming you
  didn't already do
  that.)
 
  The problem is that your server is telling clients to
  attempt to find
  it on a network that no longer exists.
 
  --
 
  Regards,
  Robert Adkins II
 
 
 
  -Original Message-
  From: samba-boun...@lists.samba.org 
  [mailto:samba-boun...@lists.samba.org] On Behalf Of 
 Paul Raines
  Sent: Tuesday, September 04, 2012 10:41 AM
  To: samba@lists.samba.org
  Subject: [Samba] Changed PDC IP, all hell broke lose
 
 
  I had to move my RedHat 5 box acting as a PDC to a new IP
  address. It
  is running samba 3.5.10.  After the move, none of my
  windows or linux
  samba clients worked anymore.  I tried rejoining some to
  the domain,
  but would get error
 
  Unable to find a suitable server Join to domain 
 'MRIRESEARCH' is 
  not valid
 
 
  The old PDC IP address is 132.183.202.95 and nothing is
  at that IP
  anymore (for 4 days now).  The new IP is 172.21.21.35
 
  I ran 'net -d 10 

[Samba] FW: Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread L . P . H . van Belle
Onderwerp: RE: [Samba] Samba is not starting automatically on boot, installed 
on Ubuntu

Forgot to mention. 

Disable these settings and samba starts on boot. 

interfaces = lo eth0
bind interfaces only = Yes 

Louis
 

-Oorspronkelijk bericht-
Van: be...@bazuin.nl [mailto:samba-boun...@lists.samba.org] 
Namens L.P.H. van Belle
Verzonden: donderdag 6 september 2012 15:38
Aan: samba@lists.samba.org
Onderwerp: Re: [Samba] Samba is not starting automatically on 
boot, installed on Ubuntu

Hai, 

i also dont recommend ubuntu as server, but your script is correct. 

Did you remove upstart ? or did you install a non ubuntu package. 
Im running samba also on ubuntu and debian, as pdc and no problem. 

setup dependency based boot sequencing 
http://manpages.ubuntu.com/manpages/precise/man8/update-rc.d.8.html

Louis

-Oorspronkelijk bericht-
Van: smb...@chrissmith.org 
[mailto:samba-boun...@lists.samba.org] Namens Chris Smith
Verzonden: donderdag 6 september 2012 15:02
Aan: Eitan Orgil
CC: samba@lists.samba.org
Onderwerp: Re: [Samba] Samba is not starting automatically on 
boot, installed on Ubuntu

Ubuntu AFAIK has never fixed their Bug 951087 which is one reason I
cannot recommend it as a server where Samba is a critical package.

On Thu, Sep 6, 2012 at 7:33 AM, Eitan Orgil 
eitan.or...@gmail.com wrote:
 Hi,

 I have installed an Ubuntu server 12.04.01 with Smba 3.6.3

 I have configured it to be a file server as well as a PDC.

 When I restart the Linux system, the Samba service will not
 start automatically.

 I tried using: chkconfig smbd 3, for that I got a lot of 
... missing LSB
 tags and overrides messages.
 Then when I run:  chkconfig smbd  I get: smbd 3
 Rebooting the Linux, the service is up, but not responding, 
restarting the
 smbd service and it is OK.

 I also tryed to ussysv-rc-confe with the same resoults,the 
service is up,
 but not responding, restarting the smbd service and it is OK.

 Can anybody help?


 --
 Best regards
 Orgil Eitan
 ??? please consider the environment before printing this email.
 --
 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


-- 
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] FW: Samba is not starting automatically on boot, installed on Ubuntu

2012-09-06 Thread Gala Dragos
Which means YOU don't have eth0 !?

I also subscribe against Ubuntu as server (maybe as a toy), try something 
better (Fedora, Arch Linux, Gentoo).

One mode thing, the chkconfig response tells you that the smbd service is 
enabled only in runlevel 3, as I recall Ubuntu started in runlevel 5 by default.



 From: L.P.H. van Belle be...@bazuin.nl
To: samba@lists.samba.org samba@lists.samba.org 
Sent: Thursday, September 6, 2012 5:03 PM
Subject: [Samba] FW:  Samba is not starting automatically on boot, installed on 
Ubuntu
 
Onderwerp: RE: [Samba] Samba is not starting automatically on boot, installed 
on Ubuntu

Forgot to mention. 

Disable these settings and samba starts on boot. 

interfaces = lo eth0
bind interfaces only = Yes 

Louis


-Oorspronkelijk bericht-
Van: be...@bazuin.nl [mailto:samba-boun...@lists.samba.org] 
Namens L.P.H. van Belle
Verzonden: donderdag 6 september 2012 15:38
Aan: samba@lists.samba.org
Onderwerp: Re: [Samba] Samba is not starting automatically on 
boot, installed on Ubuntu

Hai, 

i also dont recommend ubuntu as server, but your script is correct. 

Did you remove upstart ? or did you install a non ubuntu package. 
Im running samba also on ubuntu and debian, as pdc and no problem. 

setup dependency based boot sequencing 
http://manpages.ubuntu.com/manpages/precise/man8/update-rc.d.8.html

Louis

-Oorspronkelijk bericht-
Van: smb...@chrissmith.org 
[mailto:samba-boun...@lists.samba.org] Namens Chris Smith
Verzonden: donderdag 6 september 2012 15:02
Aan: Eitan Orgil
CC: samba@lists.samba.org
Onderwerp: Re: [Samba] Samba is not starting automatically on 
boot, installed on Ubuntu

Ubuntu AFAIK has never fixed their Bug 951087 which is one reason I
cannot recommend it as a server where Samba is a critical package.

On Thu, Sep 6, 2012 at 7:33 AM, Eitan Orgil 
eitan.or...@gmail.com wrote:
 Hi,

 I have installed an Ubuntu server 12.04.01 with Smba 3.6.3

 I have configured it to be a file server as well as a PDC.

 When I restart the Linux system, the Samba service will not
 start automatically.

 I tried using: chkconfig smbd 3, for that I got a lot of 
... missing LSB
 tags and overrides messages.
 Then when I run:  chkconfig smbd  I get: smbd 3
 Rebooting the Linux, the service is up, but not responding, 
restarting the
 smbd service and it is OK.

 I also tryed to ussysv-rc-confe with the same resoults,the 
service is up,
 but not responding, restarting the smbd service and it is OK.

 Can anybody help?


 --
 Best regards
 Orgil Eitan
 ??? please consider the environment before printing this email.
 --
 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


-- 
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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] smbd fails to start - rpc_srv_register: Failed to call the svcctl init function!

2012-09-06 Thread Scott Classen
I am attempting to upgrade from the samba version distributed with CentOS 5 to 
the latest stable samba release

CentOS version is 3.0.33

I removed the distro version and then:

cd /usr/local/src
wget http://www.samba.org/samba/ftp/stable/samba-3.6.7.tar.gz
tar -zxvf samba-3.6.7.tar.gz
cd samba-3.6.7/source3
./configure --with-configdir=/etc/samba
make
make install

I am using my original smb.conf file which has some deprecated options, but 
still passed the testparm test

when I attempt to start smbd from the command line

/usr/local/samba/sbin/smbd -i -d 1

I get the following output and smbd does not start/

smbd version 3.6.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
ndr_push_error(5): Bad character push conversion with flags 0x8400040
convert_string_talloc: Conversion not supported.
ndr_push_error(5): Bad character push conversion with flags 0x8400040
convert_string_talloc: Conversion not supported.
ndr_push_error(5): Bad character push conversion with flags 0x8400040
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
convert_string_talloc: Conversion not supported.
ndr_pull_error(5): Bad character conversion
svcctl_init_winreg: Could not open SYSTEM\CurrentControlSet\Services - 
NT_STATUS_RPC_CALL_FAILED
rpc_srv_register: Failed to call the svcctl init function!




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

Re: [Samba] replication error?

2012-09-06 Thread Steve Thompson

On Wed, 29 Aug 2012, Steve Thompson wrote:


Samba4 beta6. CentOS 6.3.

I have a CentOS client, using sssd, bound to a samba4 domain. The sssd 
configuration uses GSSAPI to bind to the directory. In both scenarios below, 
kerberos is fine, DNS is fine, I can use ldapsearch and bind to the directory 
with GSSAPI just fine, etc.


If I have just one DC, everything works perfectly well for weeks on end.

If I have two or more DC's, everything works fine when the machine is first 
bound to the domain. Sssd caches the login info, but eventually this times 
out and another call to Samba has to be made to refresh the cache. The SASL 
bind to the directory fails with:


 (Wed Aug 29 11:40:56 2012) [sssd[be[SAMBA4]]] [sasl_bind_send] (0x0020):
 ldap_sasl_bind failed (49)[Invalid credentials]

Some time later, it starts working again, presumably because the first DC
popped up in the name resolution order once again. The client configuration 
is unchanged from the first (working) scenario.


After much weeping and gnashing of teeth, it appears that this one is down 
to sssd. I had specified ldap_uri in sssd.conf as pointing to the 
round-robin DNS entry:


ldap_uri = ldap://realm.foo.bar.baz

where realm.foo.bar.baz is created in DNS by samba4, and points to six IP 
addresses (two DC's with three interfaces each). It turns out that this is 
not supported by sssd (really, wtf?). By changing it to point to the IP 
addresses:


ldap_uri = ldap://ip-of-dc1,ldap://ip-of-dc2

with two corresponding kdc entries in krb5.conf, it now appears to work 
(including if I shut down dc1).


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


Re: [Samba] Samba upgrade problem with ADS

2012-09-06 Thread Andrew Bartlett
On Wed, 2012-09-05 at 12:07 +, Nitin Thakur wrote:
 how about i get rid of secrets file all together?

You can delete secrets.tdb and secrets.ldb if either exists. 

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


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


Re: [Samba] Samba upgrade problem with ADS

2012-09-06 Thread Nitin Thakur
is it possible to  run samba with ad  without winbind?

Nitin Thakur


---Original Message---
From: Andrew Bartlett abart...@samba.org
Sent: 6/9/2012 20:42
To: nitintha...@hotmail.com
Cc: samba@lists.samba.org
Subject: Re: [Samba] Samba upgrade problem with ADS

On Wed, 2012-09-05 at 12:07 +, Nitin Thakur wrote:
 how about i get rid of secrets file all together?

You can delete secrets.tdb and secrets.ldb if either exists. 

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


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


Re: [Samba] Samba upgrade problem with ADS

2012-09-06 Thread Andrew Bartlett
On Fri, 2012-09-07 at 01:41 +, Nitin Thakur wrote:
 is it possible to  run samba with ad  without winbind?

It isn't recommended, and won't help the issue you are having.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


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


Re: [Samba] smbd fails to start - rpc_srv_register: Failed to call the svcctl init function!

2012-09-06 Thread Andrew Bartlett
On Thu, 2012-09-06 at 12:21 -0700, Scott Classen wrote:
 --Apple-Mail=_EF688A1F-3D62-46EE-AA22-200A356E88BF
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
   charset=us-ascii
 
 I am attempting to upgrade from the samba version distributed with =
 CentOS 5 to the latest stable samba release
 
 CentOS version is 3.0.33
 
 I removed the distro version and then:
 
 cd /usr/local/src
 wget http://www.samba.org/samba/ftp/stable/samba-3.6.7.tar.gz
 tar -zxvf samba-3.6.7.tar.gz
 cd samba-3.6.7/source3
 ./configure --with-configdir=3D/etc/samba
 make
 make install
 
 I am using my original smb.conf file which has some deprecated options, =
 but still passed the testparm test

Given you have such major failure, stripping back the smb.conf to
exactly what you need would be a good start.  Specifically give
attention to 'unix charset'.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


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


[Samba] Is this a bug in smbclient?

2012-09-06 Thread Traugott Simon
Hi there,
im trying to backup a Windows Server 2003  64Bit with Amanda. It uses the 
smbclient for backing up a Windows Share. 

So far so good, but on large shares I do get a lot of error messages which I 
can not explain.

? NT_STATUS_OK opening remote file \Daten\Titelseite\153x215.ai 
(\Daten\Titelseite\)
  ? NT_STATUS_IO_TIMEOUT listing \Daten\Titelseite\*

  ? NT_STATUS_OK opening remote file \Daten\MÀdchen.jpg (\Daten\)
  ? NT_STATUS_IO_TIMEOUT listing \Daten\Bilder_Fotos und Logos\Fotolia\*

Im using the smbclient 3.6.6 which comes with Debian Wheezy.Is there anything I 
can do or test about it?

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

[SCM] CTDB repository - branch 1.2.40 updated - ctdb-1.2.48-3-g7c4998c

2012-09-06 Thread Amitay Isaacs
The branch, 1.2.40 has been updated
   via  7c4998cad4d3debb06f62108fb099b6427310419 (commit)
   via  a21150bbd567ab6bfc844561ddeb6438d9710760 (commit)
   via  450bedccbee3f89aba3b33777a4ae8841c456a65 (commit)
  from  201c092dbb38746847fb9e6bfef8ea068133e47c (commit)

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


- Log -
commit 7c4998cad4d3debb06f62108fb099b6427310419
Author: Martin Schwenke mar...@meltin.net
Date:   Tue Aug 21 14:35:35 2012 +1000

New version 1.2.49

Signed-off-by: Martin Schwenke mar...@meltin.net

commit a21150bbd567ab6bfc844561ddeb6438d9710760
Author: Martin Schwenke mar...@meltin.net
Date:   Tue Aug 21 14:28:37 2012 +1000

Initscript: Kill any existing ctdbd processes if the ping succeeds

Initialising a new ctdbd will destroy the Unix domain socket so
existing processes will be useless anyway.

Signed-off-by: Martin Schwenke mar...@meltin.net

commit 450bedccbee3f89aba3b33777a4ae8841c456a65
Author: Amitay Isaacs ami...@gmail.com
Date:   Tue Aug 14 15:42:12 2012 +1000

logging: Close unix socket /tmp/ctdb.socket in syslogd process

Since the unix socket is opened before syslogd process is forked, syslogd
process also keeps listening to it.  If main ctdbd process dies and has any
child processes that are blocked waiting for locks, these child processes
keep connecting to unix socket and thus syslogd cannot exit.

Signed-off-by: Amitay Isaacs ami...@gmail.com

---

Summary of changes:
 config/ctdb.init   |6 ++
 packaging/RPM/ctdb.spec.in |6 +-
 server/ctdb_logging.c  |5 +
 3 files changed, 16 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/ctdb.init b/config/ctdb.init
index d6493bd..68850c0 100755
--- a/config/ctdb.init
+++ b/config/ctdb.init
@@ -237,6 +237,12 @@ start() {
return 0
 }
 
+# About to start new $ctdbd.  The ping above has failed and any
+# new $ctdbd will destroy the Unix domain socket, so any processes
+# that aren't yet completely useless soon will be...  so kill
+# them.
+pkill -9 -f $ctdbd
+
 build_ctdb_options
 
 # make sure we drop any ips that might still be held if previous
diff --git a/packaging/RPM/ctdb.spec.in b/packaging/RPM/ctdb.spec.in
index a7d95ad..2d744b2 100644
--- a/packaging/RPM/ctdb.spec.in
+++ b/packaging/RPM/ctdb.spec.in
@@ -3,7 +3,7 @@ Name: ctdb
 Summary: Clustered TDB
 Vendor: Samba Team
 Packager: Samba Team sa...@samba.org
-Version: 1.2.48
+Version: 1.2.49
 Release: 1GITHASH
 Epoch: 0
 License: GNU GPL version 3
@@ -144,6 +144,10 @@ development libraries for ctdb
 %{_libdir}/libctdb.a
 
 %changelog
+
+* Tue Aug 21 2012 : Version 1.2.49
+ - logging: Close unix socket /tmp/ctdb.socket in syslogd process
+ - Initscript: Kill any existing ctdbd processes if the ping succeeds
 * Thu Aug 08 2012 : Version 1.2.48
  - Fix missing set_proc() in policy routing
 * Thu Aug 08 2012 : Version 1.2.47
diff --git a/server/ctdb_logging.c b/server/ctdb_logging.c
index 27b990e..2637ad7 100644
--- a/server/ctdb_logging.c
+++ b/server/ctdb_logging.c
@@ -117,6 +117,11 @@ int start_syslog_daemon(struct ctdb_context *ctdb)
}
 
debug_extra = talloc_asprintf(NULL, syslogd:);
+
+   /* Close unix socket since syslogd does not need it */
+   close(ctdb-daemon.sd);
+   ctdb-daemon.sd = -1;
+
talloc_free(ctdb-ev);
ctdb-ev = event_context_init(NULL);
tevent_loop_allow_nesting(ctdb-ev);


-- 
CTDB repository


[SCM] CTDB repository - annotated tag ctdb-1.2.49 created - ctdb-1.2.49

2012-09-06 Thread Amitay Isaacs
The annotated tag, ctdb-1.2.49 has been created
at  7516d0c1d6574a823f93064b924e157fdf323d5c (tag)
   tagging  7c4998cad4d3debb06f62108fb099b6427310419 (commit)
  replaces  ctdb-1.2.48
 tagged by  Martin Schwenke
on  Tue Aug 21 15:36:51 2012 +1000

- Log -
version 1.2.49

Amitay Isaacs (1):
  logging: Close unix socket /tmp/ctdb.socket in syslogd process

Martin Schwenke (2):
  Initscript: Kill any existing ctdbd processes if the ping succeeds
  New version 1.2.49

---


-- 
CTDB repository


[SCM] CTDB repository - annotated tag ctdb-1.2.27-204.1 created - ctdb-1.2.27-204.1

2012-09-06 Thread Amitay Isaacs
The annotated tag, ctdb-1.2.27-204.1 has been created
at  895a0ddae46597a2bb369739a6e453bdb08ce3cf (tag)
   tagging  66a469daa2552f93219c2fc34aa8659f4b0c76d8 (commit)
  replaces  ctdb-1.9.1
 tagged by  Martin Schwenke
on  Thu Aug 16 12:32:52 2012 +1000

- Log -
Version 1.2.27-204.1

Andrew Tridgell (1):
  tdb: added TDB_NO_FSYNC env variable

Chandra Seetharaman (1):
  make changes to ctdb event scripts to support NFS-Ganesha.

Christian Ambach (1):
  improve timing issue detections

Evan Kinney (1):
  ctdb: Fixed use of reserved word private in typedefs

Günther Deschner (1):
  lib/tdb: fix c++ build warning in tdb_header_hash().

Harald Klatte (1):
  AIX bind wants the correct addrsize

Jelmer Vernooij (3):
  pytdb: Make filename argument optional.
  pytdb: Include Python.h first to prevent warning.
  pytdb: Add __version__ attribute.

Kirill Smelkov (9):
  pytdb: Add support for tdb_add_flags()  tdb_remove_flags()
  pytdb: Fix repr segfault for internal db
  pytdb: Update open flags to match those for tdb_open() in tdb.h
  pytdb: Add support for tdb_enable_seqnum, tdb_get_seqnum and 
tdb_increment_seqnum_nonblock
  pytdb: Add support for tdb_transaction_prepare_commit()
  pytdb: Add support for tdb_freelist_size()
  pytdb: Add TDB_INCOMPATIBLE_HASH open flag
  pytdb: Add support for tdb_repack()
  pytdb: Check errors after PyObject_New() calls

Martin Schwenke (69):
  Test suite: handle change to disconnected node error message.
  Test suite: handle extra lines in statistics output.
  Optimise 61.nfstickle to write the tickles more efficiently.
  Testing: Add Python IP allocation simulation.
  Test suite: handle change to disconnected node error message.
  Test suite: handle extra lines in statistics output.
  Optimise 61.nfstickle to write the tickles more efficiently.
  Testing: Add Python IP allocation simulation.
  Merge branch 'master' of git://git.samba.org/sahlberg/ctdb
  Testing: Add imbalance information to IP allocation simulation.
  Testing: In IP allocation simulation count total number of events.
  Testing: IP allocation simulation prints final imbalance in statistics.
  Testing: IP allocation simulation - save some warnings for verbose mode.
  Testing: IP allocation simulation - add command line option for random 
seed.
  Testing: IP allocation simulation - update copyright message.
  Testing: IP allocation simulation - Tweak options handling and 
Cluster.diff().
  Testing: IP allocation simulation - fix nondeterminism in 
do_something_random().
  Testing: IP allocation simulation - Update README.
  Testing: IP allocation simulation - update options processing in examples.
  Testing: IP allocation simulation - add general node group example.
  Testing: IP allocation simulation - rename an example to 
node_group_simple.py.
  Testing: IP allocation simulation - rename an example to 
node_group_extra.py.
  Testing: IP allocation simulation - make usage/failure more obvious.
  Testing: IP allocation simulation - improve help for options.
  Testing: IP allocation simulation - print maximum number of unhealthy 
nodes.
  Testing: IP allocation simulation - clean up usage message.
  Testing: IP allocation simulation - add option to change odds of a 
failure.
  Test suite - try to make addip test more reliable and add some debugging.
  Merge remote branch 'martins/master'
  Test suite - fix addip test.
  Test suite: remove thaw/freeze tests.
  Test suite - make the ctdb_fetch test cope with Reqid wrap! messages.
  initscript: wait until we can ping ctdbd before setting tunables.
  Test suite: weaken ctdb continue/enable tests for non-deterministic IPs.
  Test suite: Fix typo in continue test.
  Test suite: remove unnecessary verbosity from enable/continue tests.
  Add some command-line options to ctdb_diagnostics.
  Test suite: make addip test use $CTDB rather than ctdb in debug code.
  Test suite: improve wait_until_node_has_status()
  Test suite: use $CTDB rather than ctdb everywhere in 
ctdb_test_functions.sh.
  Test suite: strengthen function _cluster_is_healthy().
  Test suite: print date/time at test completion.
  Test suite: Add more timestamping of debugging information.
  Test suite: loosen the getmonmode test.
  Move NAT gateway firewall rules to recovered|updatenatgw events.
  Merge branch 'master' of git://git.samba.org/sahlberg/ctdb
  Merge branch 'master' of git://git.samba.org/sahlberg/ctdb
  Test suite: in the test eventscript, run ctdb not $CTDB.
  NFS tickles: use addtickle/deltickle instead of shared tickle directory.
  Test suite: NFS tickle test uses gettickles if events.d/61.nfstickle 
missing.
  Test suite: Fix typos in NFS 

[SCM] Samba Shared Repository - branch master updated

2012-09-06 Thread Andrew Bartlett
The branch, master has been updated
   via  baf2db6 selftest: Test configure stage of dlz_bind9
   via  52f0ded selftest: Add tests for the dlz_bind9 module
  from  0d99175 join.py: Only replicate DNS zones if the source DC had DNS 
zones

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


- Log -
commit baf2db685f1d2bff712d45288abf116f903039ed
Author: Andrew Bartlett abart...@samba.org
Date:   Thu Sep 6 15:22:17 2012 +1000

selftest: Test configure stage of dlz_bind9

Autobuild-User(master): Andrew Bartlett abart...@samba.org
Autobuild-Date(master): Thu Sep  6 09:07:11 CEST 2012 on sn-devel-104

commit 52f0dedc1a63c75f87adc0f70f10aae2b2bfaf72
Author: Andrew Bartlett abart...@samba.org
Date:   Thu Sep 6 14:26:57 2012 +1000

selftest: Add tests for the dlz_bind9 module

This will help ensure that we do not break the fundemental loading etc.

From here, it should be easy to extend this to more comprehensive tests.

Andrew Bartlett

---

Summary of changes:
 source4/dns_server/wscript_build  |7 ++
 source4/selftest/tests.py |4 +
 source4/torture/dns/dlz_bind9.c   |  152 +
 source4/torture/dns/wscript_build |   10 +++
 source4/torture/wscript_build |1 +
 5 files changed, 174 insertions(+), 0 deletions(-)
 create mode 100644 source4/torture/dns/dlz_bind9.c
 create mode 100644 source4/torture/dns/wscript_build


Changeset truncated at 500 lines:

diff --git a/source4/dns_server/wscript_build b/source4/dns_server/wscript_build
index b8e2708..280f8de 100644
--- a/source4/dns_server/wscript_build
+++ b/source4/dns_server/wscript_build
@@ -30,3 +30,10 @@ bld.SAMBA_LIBRARY('dlz_bind9_9',
   install_path='${MODULESDIR}/bind9',
   deps='samba-hostconfig samdb-common gensec popt',
   enabled=bld.AD_DC_BUILD_IS_ENABLED())
+
+bld.SAMBA_LIBRARY('dlz_bind9_for_torture',
+  source='dlz_bind9.c',
+  cflags='-DBIND_VERSION_9_8',
+  private_library=True,
+  deps='samba-hostconfig samdb-common gensec popt',
+  enabled=bld.AD_DC_BUILD_IS_ENABLED())
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index b9944cb..fd4b669 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -296,6 +296,10 @@ for f in sorted(os.listdir(os.path.join(samba4srcdir, 
../pidl/tests))):
 
 # DNS tests
 planpythontestsuite(dc, samba.tests.dns)
+# Local tests
+for t in smb4torture_testsuites(dlz_bind9.):
+#The dlz_bind9 tests needs to look at the DNS database
+plansmbtorturetestsuite(t, dc:local, ncalrpc:localhost)
 
 planpythontestsuite(s3dc, samba.tests.libsmb_samba_internal);
 
diff --git a/source4/torture/dns/dlz_bind9.c b/source4/torture/dns/dlz_bind9.c
new file mode 100644
index 000..d01e506
--- /dev/null
+++ b/source4/torture/dns/dlz_bind9.c
@@ -0,0 +1,152 @@
+/*
+   Unix SMB/CIFS implementation.
+   SMB torture tester
+   Copyright (C) Andrew Bartlett 2012
+
+   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 should have received a copy of the GNU General Public License
+   along with this program.  If not, see http://www.gnu.org/licenses/.
+*/
+
+#include includes.h
+#include torture/smbtorture.h
+#include dlz_minimal.h
+#include talloc.h
+#include ldb.h
+#include lib/param/param.h
+#include dsdb/samdb/samdb.h
+#include dsdb/common/util.h
+#include auth/session.h
+
+struct torture_context *tctx_static;
+
+static void dlz_bind9_log_wrapper(int level, const char *fmt, ...)
+{
+   va_list ap;
+   char *msg;
+   va_start(ap, fmt);
+   msg = talloc_vasprintf(NULL, fmt, ap);
+   torture_comment(tctx_static, %s\n, msg);
+   TALLOC_FREE(msg);
+   va_end(ap);
+}
+
+static bool test_dlz_bind9_version(struct torture_context *tctx)
+{
+   unsigned int flags = 0;
+   torture_assert_int_equal(tctx, dlz_version(flags),
+DLZ_DLOPEN_VERSION, got wrong DLZ version);
+   return true;
+}
+
+static bool test_dlz_bind9_create(struct torture_context *tctx)
+{
+   void *dbdata;
+   const char *argv[] = {
+   samba_dlz,
+   -H,
+   lpcfg_private_path(tctx, tctx-lp_ctx, dns/sam.ldb),
+   NULL
+   };
+   tctx_static = tctx;
+   

[SCM] Samba Shared Repository - branch master updated

2012-09-06 Thread Björn Jacke
The branch, master has been updated
   via  146ad30 s3-smbd: Remove remaining references to removed OS support 
in old-style quota code
   via  9bfab7e s3-smbd: Remove IRIX support from old (pre-sysquotas) code
   via  79bc9e5 s3-smbd: Remove HPUX support from old (pre-sysquotas) code
   via  8b90f6a s3-smbd: Remove BSD support from old (pre-sysquotas) code
   via  28ccb67 s3-smbd: Remove Linux support from old (pre-sysquotas) code
   via  040a458 s3-configure: Only use sysquotas by default
   via  24013bd build: Remove Unicos support (quota in particular)
   via  b7b0d7d build: Do not compile lib/sysquotas*.c files as part of 
configure
   via  82cffc2 s3: Fix 64-bit warnings in vfs_media_harmony
   via  a6df44b sysquota: we need to list nfs4 as a separate fs name for 
the sys_get_nfs_quota backend
  from  baf2db6 selftest: Test configure stage of dlz_bind9

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


- Log -
commit 146ad30387ebfeaa0269a26b1c5ee32ed13e095e
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Sep 3 13:16:38 2012 +1000

s3-smbd: Remove remaining references to removed OS support in old-style 
quota code

Signed-off-by: Björn Jacke b...@sernet.de

Autobuild-User(master): Björn Jacke b...@sernet.de
Autobuild-Date(master): Thu Sep  6 10:47:18 CEST 2012 on sn-devel-104

commit 9bfab7ec8cfb01f102e8e22b7f94cd772a8b5a00
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Sep 3 12:20:53 2012 +1000

s3-smbd: Remove IRIX support from old (pre-sysquotas) code

This should be essentially dead code, as while it is possible to disable 
sysquotas, the sysquotas has since 2003 supported the 4A varient used on IRIX.

Andrew Bartlett

Signed-off-by: Björn Jacke b...@sernet.de

commit 79bc9e5ace576e67ec14132b9b0c892c642cc98f
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Sep 3 02:20:05 2012 +1000

s3-smbd: Remove HPUX support from old (pre-sysquotas) code

This should be essentially dead code, as while it is possible to disable 
sysquotas, the sysquotas has since 2003 supported the 4A varient used on HPUX.

Andrew Bartlett

Signed-off-by: Björn Jacke b...@sernet.de

commit 8b90f6ace30609b320cc306282488b8ee8397d7b
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Sep 3 01:51:59 2012 +1000

s3-smbd: Remove BSD support from old (pre-sysquotas) code

This is essentially dead code, as while it is possible to disable
sysquotas, the default for BSD is now to use sysquotas with the
addition of 4B support via the recent Darwin patch by James Peach.

NFS support has been in sysquotas for quite some time now.

Andrew Bartlett

Signed-off-by: Björn Jacke b...@sernet.de

commit 28ccb67170828d2fb739cdda1491434c8a2f5d65
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Sep 3 01:41:27 2012 +1000

s3-smbd: Remove Linux support from old (pre-sysquotas) code

This is essentially dead code, as while it is possible to disable 
sysquotas, the default
for Linux has been to use sysquotas for quite some time now.

Andrew Bartlett

Signed-off-by: Björn Jacke b...@sernet.de

commit 040a45805f6796858cc916970db7dec2c7f81cf5
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Sep 3 03:08:54 2012 +1000

s3-configure: Only use sysquotas by default

We now only use old quota code if --with-quotas=yes and there is no
sysquotas support for this platform.

This also removes --with-sys-quotas as an option, instead being the
first choice if --with-quotas=yes or --with-quotas=auto

sysquotas have been our preferred quota mechanism since 2003.

Andrew Bartlett

Signed-off-by: Björn Jacke b...@sernet.de

commit 24013bda4526b1f1cb1c245da83f290210f6e6bc
Author: Andrew Bartlett abart...@samba.org
Date:   Wed Jun 13 12:20:07 2012 +1000

build: Remove Unicos support (quota in particular)

Unicos machines are long gone now (Cray now make Linux compute nodes),
so remove the quota support.

Andrew Bartlett

Signed-off-by: Björn Jacke b...@sernet.de

commit b7b0d7d868027e6a9e63639838d811febc946109
Author: Andrew Bartlett abart...@samba.org
Date:   Tue Jun 5 06:39:28 2012 +1000

build: Do not compile lib/sysquotas*.c files as part of configure

Instead, use the tests in tests/sysquotas.c.

It is better that we see any compile failures, and then expand the
tests than 'automatically' disable the support.  Users can always use
--without-quotas if the quotas code does not work on their system.

Andrew Bartlett

Signed-off-by: Björn Jacke b...@sernet.de

commit 82cffc2bdbfec4f5c50514c1e08ed342f8f9d189
Author: Volker Lendecke v...@samba.org
Date:   Wed Sep 5 10:15:48 2012 +0200

s3: Fix 64-bit warnings in vfs_media_harmony

commit 

[SCM] Samba Shared Repository - branch master updated

2012-09-06 Thread Björn Jacke
The branch, master has been updated
   via  44fd8e7 fileserver:sysquotas: remove wrong cast
   via  d6cc08b s3:quota: don't force the block size to 512
  from  146ad30 s3-smbd: Remove remaining references to removed OS support 
in old-style quota code

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


- Log -
commit 44fd8e72081f168c0f75cf9fb8969fe42d1e98c9
Author: Björn Jacke b...@sernet.de
Date:   Thu Sep 6 14:17:25 2012 +0200

fileserver:sysquotas: remove wrong cast

Autobuild-User(master): Björn Jacke b...@sernet.de
Autobuild-Date(master): Thu Sep  6 17:16:30 CEST 2012 on sn-devel-104

commit d6cc08b9eeb9de17bc0e610d6cf6dba13c5c8222
Author: Björn Jacke b...@sernet.de
Date:   Thu Sep 6 10:23:50 2012 +0200

s3:quota: don't force the block size to 512

there is no point in forcing the block size to 512 when curblocks is 1. This
will only lead to false quota reporting. See bug #3272

---

Summary of changes:
 source3/lib/sysquotas.c |2 +-
 source3/smbd/quotas.c   |3 ---
 2 files changed, 1 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c
index 84679f4..cbacc7b 100644
--- a/source3/lib/sysquotas.c
+++ b/source3/lib/sysquotas.c
@@ -225,7 +225,7 @@ static int command_get_quota(const char *path, enum 
SMB_QUOTA_TYPE qtype, unid_t
 
/* we need to deal with long long unsigned here, if 
supported */
 
-   dp-qflags = (enum SMB_QUOTA_TYPE)strtoul(line, p2, 
10);
+   dp-qflags = strtoul(line, p2, 10);
p = p2;
while (p  *p  isspace(*p)) {
p++;
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c
index 339952e..3d1056d 100644
--- a/source3/smbd/quotas.c
+++ b/source3/smbd/quotas.c
@@ -203,9 +203,6 @@ static bool nfs_quotas(char *nfspath, uid_t euser_id, 
uint64_t *bsize, uint64_t
*bsize = gqr.getquota_rslt_u.gqr_rquota.rq_bsize;
*dsize = D.dqb_bsoftlimit;
 
-   if (D.dqb_curblocks == 1)
-   *bsize = 512;
-
if (D.dqb_curblocks  D.dqb_bsoftlimit) {
*dfree = 0;
*dsize = D.dqb_curblocks;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2012-09-06 Thread Kai Blin
The branch, master has been updated
   via  8ba8020 s4 dns: Make debug output less noisy
   via  319b239 s4 dns: Check if signing user is allowed to update records
  from  44fd8e7 fileserver:sysquotas: remove wrong cast

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


- Log -
commit 8ba802058644910741dc80940420781450a924b7
Author: Kai Blin k...@samba.org
Date:   Thu Sep 6 22:53:32 2012 +0200

s4 dns: Make debug output less noisy

Autobuild-User(master): Kai Blin k...@samba.org
Autobuild-Date(master): Fri Sep  7 00:31:56 CEST 2012 on sn-devel-104

commit 319b239dc4aeb2c6a928a70fc7a7dbad56d273cd
Author: Kai Blin k...@samba.org
Date:   Thu Sep 6 22:40:56 2012 +0200

s4 dns: Check if signing user is allowed to update records

This should fix bug #9142

---

Summary of changes:
 source4/dns_server/dns_crypto.c |4 +-
 source4/dns_server/dns_query.c  |2 +-
 source4/dns_server/dns_server.c |2 +-
 source4/dns_server/dns_update.c |   86 --
 4 files changed, 67 insertions(+), 27 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/dns_server/dns_crypto.c b/source4/dns_server/dns_crypto.c
index 7362adc..7604a05 100644
--- a/source4/dns_server/dns_crypto.c
+++ b/source4/dns_server/dns_crypto.c
@@ -121,7 +121,7 @@ WERROR dns_verify_tsig(struct dns_server *dns,
 
/* The TSIG record needs to be the last additional record */
if (found_tsig  i + 1 != packet-arcount) {
-   DEBUG(0, (TSIG record not the last additional record!\n));
+   DEBUG(1, (TSIG record not the last additional record!\n));
return DNS_ERR(FORMAT_ERROR);
}
 
@@ -218,7 +218,7 @@ WERROR dns_verify_tsig(struct dns_server *dns,
}
 
if (!NT_STATUS_IS_OK(status)) {
-   DEBUG(0, (Verifying tsig failed: %s\n, nt_errstr(status)));
+   DEBUG(1, (Verifying tsig failed: %s\n, nt_errstr(status)));
return ntstatus_to_werror(status);
}
 
diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c
index 98ebc63..54e0c7f 100644
--- a/source4/dns_server/dns_query.c
+++ b/source4/dns_server/dns_query.c
@@ -509,7 +509,7 @@ static WERROR handle_tkey(struct dns_server *dns,
return WERR_NOMEM;
}
} else {
-   DEBUG(0, (GSS key negotiation returned %s\n, 
nt_errstr(status)));
+   DEBUG(1, (GSS key negotiation returned %s\n, 
nt_errstr(status)));
ret_tkey-rdata.tkey_record.error = DNS_RCODE_BADKEY;
}
 
diff --git a/source4/dns_server/dns_server.c b/source4/dns_server/dns_server.c
index d9851b1..be1fecc 100644
--- a/source4/dns_server/dns_server.c
+++ b/source4/dns_server/dns_server.c
@@ -147,7 +147,7 @@ static struct tevent_req *dns_process_send(TALLOC_CTX 
*mem_ctx,
 
ret = dns_verify_tsig(dns, state, state-state, state-in_packet, in);
if (!W_ERROR_IS_OK(ret)) {
-   DEBUG(0, (Bailing out early!\n));
+   DEBUG(1, (Failed to verify TSIG!\n));
state-dns_err = werr_to_dns_err(ret);
tevent_req_done(req);
return tevent_req_post(req, ev);
diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c
index 61850a1..2df0b58 100644
--- a/source4/dns_server/dns_update.c
+++ b/source4/dns_server/dns_update.c
@@ -31,6 +31,7 @@
 #include dsdb/common/util.h
 #include smbd/service_task.h
 #include dns_server/dns_server.h
+#include auth/auth.h
 
 static WERROR dns_rr_to_dnsp(TALLOC_CTX *mem_ctx,
 const struct dns_res_rec *rrec,
@@ -381,7 +382,8 @@ done:
 static WERROR handle_one_update(struct dns_server *dns,
TALLOC_CTX *mem_ctx,
const struct dns_name_question *zone,
-   const struct dns_res_rec *update)
+   const struct dns_res_rec *update,
+   const struct dns_server_tkey *tkey)
 {
struct dnsp_DnssrvRpcRecord *recs = NULL;
uint16_t rcount = 0;
@@ -389,6 +391,7 @@ static WERROR handle_one_update(struct dns_server *dns,
uint16_t i;
WERROR werror;
bool needs_add = false;
+   uint32_t access_mask = 0;
 
DEBUG(2, (Looking at record: \n));
if (DEBUGLVL(2)) {
@@ -421,9 +424,24 @@ static WERROR handle_one_update(struct dns_server *dns,
rcount = 0;
needs_add = true;
werror = WERR_OK;
+   access_mask = SEC_ADS_CREATE_CHILD;
}
W_ERROR_NOT_OK_RETURN(werror);
 
+   access_mask = SEC_STD_REQUIRED | SEC_ADS_SELF_WRITE;
+
+   if (tkey != NULL) {
+ 

[SCM] Samba Shared Repository - branch master updated

2012-09-06 Thread Stefan Metzmacher
The branch, master has been updated
   via  54ae7ca selftest/knownfail: samba3.smb2.durable-v2-open.reopen{1,2} 
fails currently
   via  640752b s4:torture/smb2: add smb2.durable-v2-open.reopen{1,2} tests
   via  1874ebe s4:torture/smb2: check that the server should ignore the 
fname in a DHnC request
   via  afaea04 s4:torture/smb2: don't expect a DHnQ response in a DHnC 
request
  from  8ba8020 s4 dns: Make debug output less noisy

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


- Log -
commit 54ae7ca417628ddae5be275891f3782f245d7c5f
Author: Stefan Metzmacher me...@samba.org
Date:   Thu Sep 6 12:18:05 2012 +0200

selftest/knownfail: samba3.smb2.durable-v2-open.reopen{1,2} fails currently

metze

Autobuild-User(master): Stefan Metzmacher me...@samba.org
Autobuild-Date(master): Fri Sep  7 02:12:22 CEST 2012 on sn-devel-104

commit 640752b969714bd43e328a05804affad63aa6d98
Author: Stefan Metzmacher me...@samba.org
Date:   Thu Sep 6 11:51:12 2012 +0200

s4:torture/smb2: add smb2.durable-v2-open.reopen{1,2} tests

They show that only the content of the DH2C request matches and
all other values in the SMB2 Create request are ignored.

metze

commit 1874ebeb37ea1604823d8cedb76344b292453d74
Author: Stefan Metzmacher me...@samba.org
Date:   Thu Sep 6 12:38:54 2012 +0200

s4:torture/smb2: check that the server should ignore the fname in a DHnC 
request

metze

commit afaea04f1cb5a31ba0bfd0f5c8ad37c1bdc6d79e
Author: Stefan Metzmacher me...@samba.org
Date:   Thu Sep 6 11:49:42 2012 +0200

s4:torture/smb2: don't expect a DHnQ response in a DHnC request

This is fixed in Windows 2012 and matches the [MS-SMB2] documentation
now.

metze

---

Summary of changes:
 selftest/knownfail |2 +
 source4/torture/smb2/durable_open.c|7 +-
 source4/torture/smb2/durable_v2_open.c |  184 
 3 files changed, 188 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/selftest/knownfail b/selftest/knownfail
index 4e6eb43..30c66b8 100644
--- a/selftest/knownfail
+++ b/selftest/knownfail
@@ -189,6 +189,8 @@
 ^samba3.smb2.durable-open.oplock
 ^samba3.smb2.durable-v2-open.open-oplock
 ^samba3.smb2.durable-v2-open.open-lease
+^samba3.smb2.durable-v2-open.reopen1
+^samba3.smb2.durable-v2-open.reopen2
 ^samba3.smb2.durable-v2-open.persistent-open-oplock
 ^samba3.smb2.durable-v2-open.persistent-open-lease
 ^samba3.smb2.ioctl.shadow_copy
diff --git a/source4/torture/smb2/durable_open.c 
b/source4/torture/smb2/durable_open.c
index 659fa9d..8524fd6 100644
--- a/source4/torture/smb2/durable_open.c
+++ b/source4/torture/smb2/durable_open.c
@@ -443,14 +443,14 @@ bool test_durable_open_reopen2(struct torture_context 
*tctx,
}
 
ZERO_STRUCT(io2);
-   io2.in.fname = fname;
+   /* the path name is ignored by the server */
+   io2.in.fname = __non_existing_fname__;
io2.in.durable_handle = h;
h = NULL;
 
status = smb2_create(tree, mem_ctx, io2);
CHECK_STATUS(status, NT_STATUS_OK);
CHECK_CREATED(io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE);
-   CHECK_VAL(io2.out.durable_open, true);
CHECK_VAL(io2.out.oplock_level, smb2_util_oplock_level(b));
_h = io2.out.file.handle;
h = _h;
@@ -524,7 +524,6 @@ bool test_durable_open_reopen2a(struct torture_context 
*tctx,
status = smb2_create(tree, mem_ctx, io2);
CHECK_STATUS(status, NT_STATUS_OK);
CHECK_CREATED(io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE);
-   CHECK_VAL(io2.out.durable_open, true);
CHECK_VAL(io2.out.oplock_level, smb2_util_oplock_level(b));
_h = io2.out.file.handle;
h = _h;
@@ -689,7 +688,6 @@ bool test_durable_open_reopen4(struct torture_context *tctx,
_h = io2.out.file.handle;
h = _h;
CHECK_CREATED(io2, EXISTED, FILE_ATTRIBUTE_ARCHIVE);
-   CHECK_VAL(io2.out.durable_open, true);
CHECK_VAL(io2.out.oplock_level, smb2_util_oplock_level(b));
 
 done:
@@ -895,7 +893,6 @@ bool test_durable_open_file_position(struct torture_context 
*tctx,
 
status = smb2_create(tree2, mem_ctx, io2);
CHECK_STATUS(status, NT_STATUS_OK);
-   CHECK_VAL(io2.out.durable_open, true);
CHECK_VAL(io2.out.oplock_level, SMB2_OPLOCK_LEVEL_BATCH);
CHECK_VAL(io2.out.reserved, 0x00);
CHECK_VAL(io2.out.create_action, NTCREATEX_ACTION_EXISTED);
diff --git a/source4/torture/smb2/durable_v2_open.c 
b/source4/torture/smb2/durable_v2_open.c
index 700179e..3b5f7b6 100644
--- a/source4/torture/smb2/durable_v2_open.c
+++ b/source4/torture/smb2/durable_v2_open.c
@@ -369,6 +369,188 @@ bool test_durable_v2_open_lease(struct torture_context 
*tctx,
return ret;
 }
 
+/**
+ * basic test for doing a durable 

[SCM] Samba Shared Repository - branch master updated

2012-09-06 Thread Jeremy Allison
The branch, master has been updated
   via  d0159f6 Free protect_ids in secret_store_domain_guid() as the 
caller of fetch_secrets() must free the result in order to not leak memory.
  from  54ae7ca selftest/knownfail: samba3.smb2.durable-v2-open.reopen{1,2} 
fails currently

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


- Log -
commit d0159f6673e0fdf50f096548ea1a134c0e864ceb
Author: Michele Baldessari mich...@acksyn.org
Date:   Thu Sep 6 17:32:11 2012 -0700

Free protect_ids in secret_store_domain_guid() as the caller of 
fetch_secrets() must free the result in order to not leak memory.

Signed-off-by: Jeremy Allison j...@samba.org

Autobuild-User(master): Jeremy Allison j...@samba.org
Autobuild-Date(master): Fri Sep  7 04:11:43 CEST 2012 on sn-devel-104

---

Summary of changes:
 source3/passdb/machine_account_secrets.c |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/passdb/machine_account_secrets.c 
b/source3/passdb/machine_account_secrets.c
index 70d7106..6320f4e 100644
--- a/source3/passdb/machine_account_secrets.c
+++ b/source3/passdb/machine_account_secrets.c
@@ -149,9 +149,11 @@ bool secrets_store_domain_guid(const char *domain, struct 
GUID *guid)
if (strncmp(protect_ids, TRUE, 4)) {
DEBUG(0, (Refusing to store a Domain SID, 
  it has been marked as protected!\n));
+   SAFE_FREE(protect_ids);
return false;
}
}
+   SAFE_FREE(protect_ids);
 #endif
 
slprintf(key, sizeof(key)-1, %s/%s, SECRETS_DOMAIN_GUID, domain);


-- 
Samba Shared Repository