Re: [Samba] Samba 4 provisioning error on Ubuntu 12.04

2012-06-12 Thread Rowland Penny

On 11/06/12 21:08, todd kman wrote:


My fstab
..
proc  /proc  proc  nodev,noexec,nosuid 0 0
/dev/mapper/server-root /  ext4  errors=remount-ro 0 1
UUID=b2d11319-d831-49c6-b3d7-3b566956411a /boot  ext2  acl,user_xattr defaults 
0 2
/dev/mapper/server-swap_1 none  swap  sw 0 0
/dev/fd0  /media/floppy0 auto  rw,user,noauto,exec,utf8 0 0


Hi, I replied to this post, but my stupid email client did not reply to 
list it replied to the OP and I stupidly never noticed.


Here is my reply to him:

It would seem that you are using LVM, move what you entered up a line, 
you have entered it on the /boot partition, it needs to be on the / or 
root partition. It should look like:


/dev/mapper/server-root /  ext4  errors=remount-ro,acl,user_xattr 0 1

You may have to install the acl package.
I have compiled samba4beta1 on ubuntu 12.04 server but I did not use LVM 
and it provisioned without any fstab alteration.


and here is his reply to me:

Thanks

I'll give that a try tomorrow.
I thought I had installed with mostly defaults.
If I am using acl I did not actively select this.
I did a list of apps installed and I did not see an acl in the list.




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


[Samba] Samba4 Multi-Master replication

2012-06-12 Thread Morten Kramer

Hi guys,


I'm trying to get the Samba4 multi-master replication to work.



I set up the primary domain controller using this howto (under CentOS 
6.2 x64):



http://wiki.samba.org/index.php/Samba4/HOWTO



I installed bind 9.8.3 and enabled encrypted dns updates.




I set up another VM with the same CentOS version and oriented myself on 
this howto:


http://wiki.samba.org/index.php/Samba4/HOWTO/Join_a_domain_as_a_DC

to join the second DC into the domain. I edited /etc/resolv.conf and set 
the nameserver to the IP of the primary DC (bind dns server).



Basic replication seems to work (not doing the rsync for sysvol yet). 
However, when i take the primary DC offline (bind keeps running), I 
can't use any of the .msc domain admin tools anymore.


I always get an error message, telling me that there is no RPC server 
available.
When i run gpmc.msc i can choose the DC i want to work on and I can see 
the secondary one, but it will come back with the RPC error.


I had Wireshark running on one of the Windows7 clients. It seems like it 
tries to talk to the 2nd DC (DCERPC packets). But i'm not an expert in 
packet analysis, could somebody give me a hint what to look for here?




User authentication does still work and Kerberos tickets are generated 
by the 2nd DC.




I can find this in the log:


../source4/dsdb/kcc/kcc_topology.c:1402: failed to find nCName attribute 
of object 
CN=ac7bf69c-9458-4205-acba-6fe172412d1b,CN=Partitions,CN=Configuration,DC=aeriatest2,DC=dc,DC=loc
../source4/dsdb/kcc/kcc_topology.c:3158: failed to color vertices: 
NT_STATUS_INTERNAL_DB_CORRUPTION
../source4/dsdb/kcc/kcc_topology.c:3415: failed to create connections: 
NT_STATUS_INTERNAL_DB_CORRUPTION

...
Warning: 60 extra bytes in incoming RPC request
../source4/rpc_server/drsuapi/dcesrv_drsuapi.c:74: doing DsBind with 
system_session




Do i need to configure something extra, so the secondary DC will be able 
to act as an RPC server?






Thanks,
freezer








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


[Samba] SOLVED

2012-06-12 Thread sandy . napoles
Hello list, after some week to problem with my samba-master, I find the
solution, firts a big thanks to Steve, who always find a way to answer my
personal email, others peoples too helpme in this list, I very happy.
Listen

1- I run again git clone in my debian 6.0 and downloads sucefful
samba-master, but when I run git pull the same problem.
2- I test the run the  git clone in ubuntu 11.10 and downloads samba
master very well, when I run git pull for update.sucefful. jeejej
uff
EveryThing is ok


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


Re: [Samba] Windows 7 + office 2010 locked files

2012-06-12 Thread Igor Cervo
Possibly not, try

# store DOS attributes in extended attributes
   ea support = yes
   store dos attributes = yes
   map readonly = no
   map archive = no
   map system = no


Tks Jonathan,

Where I put this attributes? In Global attributes?



2012/6/11 Daniel Müller muel...@tropenklinik.de

 You need to set the sticky bit for the group on this office files and it
 will run
 On Tue, 5 Jun 2012 10:01:54 -0300, Igor Cervo igorcomput...@gmail.com
 wrote:
  Hello,
 
 
  Many times when a user open, modifies and then close a Office 2010
   document (Word, Excel, Power Point), the file keeps locked.
  A different user tries to open the file and gets a error message related
  to locking, read only permissions or something similar.
 
  Samba version: 3.0.33
 
  Updating samba will fix the problem?
 
  I tried to put:  kernel oplocks = yes, but with no results.
 
 
  Sds

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


Re: [Samba] Samba4 Multi-Master replication

2012-06-12 Thread Gémes Géza
On 2012-06-12 12:16, Morten Kramer wrote:
 Hi guys,


 I'm trying to get the Samba4 multi-master replication to work.



 I set up the primary domain controller using this howto (under CentOS
 6.2 x64):


 http://wiki.samba.org/index.php/Samba4/HOWTO



 I installed bind 9.8.3 and enabled encrypted dns updates.




 I set up another VM with the same CentOS version and oriented myself
 on this howto:

 http://wiki.samba.org/index.php/Samba4/HOWTO/Join_a_domain_as_a_DC

 to join the second DC into the domain. I edited /etc/resolv.conf and
 set the nameserver to the IP of the primary DC (bind dns server).


 Basic replication seems to work (not doing the rsync for sysvol yet).
 However, when i take the primary DC offline (bind keeps running), I
 can't use any of the .msc domain admin tools anymore.

 I always get an error message, telling me that there is no RPC server
 available.
 When i run gpmc.msc i can choose the DC i want to work on and I can
 see the secondary one, but it will come back with the RPC error.

 I had Wireshark running on one of the Windows7 clients. It seems like
 it tries to talk to the 2nd DC (DCERPC packets). But i'm not an expert
 in packet analysis, could somebody give me a hint what to look for here?



 User authentication does still work and Kerberos tickets are generated
 by the 2nd DC.



 I can find this in the log:


 ../source4/dsdb/kcc/kcc_topology.c:1402: failed to find nCName
 attribute of object
 CN=ac7bf69c-9458-4205-acba-6fe172412d1b,CN=Partitions,CN=Configuration,DC=aeriatest2,DC=dc,DC=loc
 ../source4/dsdb/kcc/kcc_topology.c:3158: failed to color vertices:
 NT_STATUS_INTERNAL_DB_CORRUPTION
 ../source4/dsdb/kcc/kcc_topology.c:3415: failed to create connections:
 NT_STATUS_INTERNAL_DB_CORRUPTION
 ...
 Warning: 60 extra bytes in incoming RPC request
 ../source4/rpc_server/drsuapi/dcesrv_drsuapi.c:74: doing DsBind with
 system_session



 Do i need to configure something extra, so the secondary DC will be
 able to act as an RPC server?





 Thanks,
 freezer
Hi,

With your setup DNS is the single point of failure, because with the
(default) DLZ setup bind9 is able to serve DNS records only when samba4
is running on that box.
My recommendation would be to try to set up DNS on the second DC too.

Regards.

Geza

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


Re: [Samba] Is Printing Supported in samba4 yet?

2012-06-12 Thread Charles Tryon
Not yet.  It should eventually be implemented through s3fs (if I understand
correctly).



On Sun, Jun 10, 2012 at 2:49 PM, timothy mcdaniel timnb...@gmail.comwrote:

 Is Printing Supported in samba4 yet?
 if there is support for printing in samba4, how do I set it up in samba4?
 Is there anything different about printing in samba4 than in samba3 if
 printing is supported in samba4?
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba




-- 
Charles Tryon
_
  “Risks are not to be evaluated in terms of the probability of success,
but in terms of the value of the goal.”
- Ralph D. Winter
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Windows 7 + office 2010 locked files

2012-06-12 Thread Jonathan Buzzard

Igor Cervo wrote:

Possibly not, try

# store DOS attributes in extended attributes
   ea support = yes
   store dos attributes = yes
   map readonly = no
   map archive = no
   map system = no


Tks Jonathan,

Where I put this attributes? In Global attributes?



Take your pick. I would put them in the global section, but they can be 
set on a per share basis.


JAB.

--
Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk
Fife, United Kingdom.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Restore tdbbackup files?

2012-06-12 Thread Andrew Bartlett
On Wed, 2012-06-06 at 00:06 -0700, Alberto Moreno wrote:
 Hi
 
  Samba 3.5.10 centos 5.x.
 
  I can backup with tdbbackup, read samba doc but haven't found how to
 restore them?

Files created by tdbbackup are full, normal TDB files.  tdbbackup just
does the extraction safely.  (you must never just cp a running
database).

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


[SCM] Samba Shared Repository - branch master updated

2012-06-12 Thread Michael Adam
The branch, master has been updated
   via  25216d7 s4:smbd: fix typos
   via  23a73c5 s4:kerberos: fix typos in kerberos-notes.txt
   via  6b2175c s4:gensec: fix a comment typo
   via  7dd22bd s4:torture: fix use of non-existent word (existant)
   via  2a1ab92 s4:tests: fix use of a non-existent word (existant)
   via  cec6ebf s4:provision: fix use of non-existent word (existant)
   via  acd3a6b s4:registry:testsuite: fix use of non-existent word 
(existant)
   via  d91182c s4:heimdal: fix use of a non-existent word (existant)
   via  72a92b8 s3:torture: fix use of non-existent word (existant)
   via  51a1936 s3:printing: fix use of a non-existent word (existant)
   via  21a36aa s3:vfs:scannedonly: fix use of non-existent word (existant)
   via  33ebba9 libsmbclient: fix use of a non-existent word (existant)
   via  08e9b17 selftest: fix use of a non-existent word (existant)
   via  9995257 lib/testtools: fix use of a non-existent word (existant)
   via  0688cf1 tdb:tests: fix use of a non-existent word (existant)
   via  ff053de ldb:tests: fix use of a non-existent word (existant)
   via  d93d041 pidl/tests: fix use of a non-existent word (existant)
   via  89f95c0 lib/util: fix use of a non-existent word (existant) in a 
comment
   via  6977cb3 nsstest: fix use of a non-existent word (existant)
  from  fac6191 s3: Make vfswrap_audit_file static

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


- Log -
commit 25216d753742c68fc921b84208c0a92b958c15c9
Author: Michael Adam ob...@samba.org
Date:   Tue Jun 12 00:32:19 2012 +0200

s4:smbd: fix typos

Autobuild-User(master): Michael Adam ob...@samba.org
Autobuild-Date(master): Tue Jun 12 09:21:15 CEST 2012 on sn-devel-104

commit 23a73c51acf33f7c5473cf6bd1b93dcf05c0d880
Author: Michael Adam ob...@samba.org
Date:   Tue Jun 12 00:30:42 2012 +0200

s4:kerberos: fix typos in kerberos-notes.txt

commit 6b2175c83416e7e5bcd76c79cf927ad806d4a562
Author: Michael Adam ob...@samba.org
Date:   Tue Jun 12 00:29:11 2012 +0200

s4:gensec: fix a comment typo

commit 7dd22bdb476e7565a755bf44040ed505d84e07a9
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:58:02 2012 +0200

s4:torture: fix use of non-existent word (existant)

commit 2a1ab927932675b5ea3a22628f55f34882f7c682
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:52:57 2012 +0200

s4:tests: fix use of a non-existent word (existant)

commit cec6ebf4c33c3bbb9bdb4466f25964c96275e2e0
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:51:51 2012 +0200

s4:provision: fix use of non-existent word (existant)

commit acd3a6bb6c1d050ac3cf3cc845f2b10607aeb105
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:51:05 2012 +0200

s4:registry:testsuite: fix use of non-existent word (existant)

commit d91182c5ae0466773d59894abc5bb29cfd2c80ad
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:50:22 2012 +0200

s4:heimdal: fix use of a non-existent word (existant)

commit 72a92b8c4cf59c5198edfa2e7d8f9719807f7ff3
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:49:15 2012 +0200

s3:torture: fix use of non-existent word (existant)

commit 51a19364ffa5b4d24078cba640224645c60cf5e7
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:48:32 2012 +0200

s3:printing: fix use of a non-existent word (existant)

commit 21a36aa2e85c0871577dd71f9006e6e407e34ca2
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:47:58 2012 +0200

s3:vfs:scannedonly: fix use of non-existent word (existant)

commit 33ebba9c5a43ab5f295b34f8e6320c08b3a75ab6
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:47:04 2012 +0200

libsmbclient: fix use of a non-existent word (existant)

commit 08e9b1774f429ea82b851ba7e51e00990daa064a
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:38:28 2012 +0200

selftest: fix use of a non-existent word (existant)

commit 99952571277c1d496fd4a8e5fa82f901dbb6b7e1
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:37:44 2012 +0200

lib/testtools: fix use of a non-existent word (existant)

commit 0688cf102d2a513875d1832ad0de6052b837a72a
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:37:13 2012 +0200

tdb:tests: fix use of a non-existent word (existant)

commit ff053de0965f0a66db7da491ca9169ca9d2c2dbf
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:36:38 2012 +0200

ldb:tests: fix use of a non-existent word (existant)

commit d93d04124cedb6a15a132c922885f9c8d41aee96
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:35:11 2012 +0200

pidl/tests: fix use of a non-existent word (existant)

commit 89f95c00275dbe21fb5f3f0f8f5c4543b119c4f9
Author: Michael Adam ob...@samba.org
Date:   Mon Jun 11 17:24:20 2012 +0200

lib/util: fix use of a non-existent word (existant) in a comment

commit 

[SCM] Samba Shared Repository - branch master updated

2012-06-12 Thread Stefan Metzmacher
The branch, master has been updated
   via  080c1ca s3: Make --pw-nt-hash useable in smbclient
   via  a40a566 s3: Add --pw-nt-hash to popt_common_credentials
   via  93e950c s3: Add cli_state-pw_nt_hash
   via  2be5ace s3: Add user_auth_info-use_pw_nt_hash
   via  93e0844 s3-libsmbclient: change vnum to 0.2.0
   via  6c13a46 s3-libsmbclient: Add OptionUseNTHash
   via  4fb283e s3: Add CLI_FULL_CONNECTION_USE_NT_HASH
   via  3b63a67 S3: Add ntlmssp_set_password_hash
   via  ae82192 s3-libsmbclient: Make SMBC_call_auth_fn static
  from  25216d7 s4:smbd: fix typos

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


- Log -
commit 080c1ca64b618a906a9246556d07e3a0573a6cc1
Author: Volker Lendecke v...@samba.org
Date:   Mon Jun 11 14:10:23 2012 +0200

s3: Make --pw-nt-hash useable in smbclient

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

Autobuild-User(master): Stefan Metzmacher me...@samba.org
Autobuild-Date(master): Tue Jun 12 12:41:10 CEST 2012 on sn-devel-104

commit a40a566504ec76d8ca4829c9d690d8a353330250
Author: Volker Lendecke v...@samba.org
Date:   Mon Jun 11 14:03:16 2012 +0200

s3: Add --pw-nt-hash to popt_common_credentials

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

commit 93e950caf8db42750869a0ec8a8d2bcb62a1d98d
Author: Volker Lendecke v...@samba.org
Date:   Mon Jun 11 14:02:03 2012 +0200

s3: Add cli_state-pw_nt_hash

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

commit 2be5ace544a5ec280abb72504f3d4acf5240c425
Author: Volker Lendecke v...@samba.org
Date:   Mon Jun 11 14:01:08 2012 +0200

s3: Add user_auth_info-use_pw_nt_hash

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

commit 93e0844471f468f27c3c617b068b9d5aa26f4f1b
Author: Stefan Metzmacher me...@samba.org
Date:   Mon Jun 11 23:47:48 2012 +0200

s3-libsmbclient: change vnum to 0.2.0

metze

commit 6c13a46732f61b596273e2bd7ff3c78a4b953195
Author: Volker Lendecke v...@samba.org
Date:   Mon Jun 11 13:29:10 2012 +0200

s3-libsmbclient: Add OptionUseNTHash

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

commit 4fb283e70e26c3328f1ab86276a5728601cc3432
Author: Volker Lendecke v...@samba.org
Date:   Mon Jun 11 13:32:07 2012 +0200

s3: Add CLI_FULL_CONNECTION_USE_NT_HASH

... as an indicator that the password supplied is the NT hash

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

commit 3b63a6794a008b35cd7b5bc03bcc9e4f8d4124a4
Author: Volker Lendecke v...@samba.org
Date:   Mon Jun 11 13:12:30 2012 +0200

S3: Add ntlmssp_set_password_hash

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

commit ae821929a0ec048da69084b71c53270eecdb3e6e
Author: Volker Lendecke v...@samba.org
Date:   Mon Jun 11 10:15:08 2012 +0200

s3-libsmbclient: Make SMBC_call_auth_fn static

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

---

Summary of changes:
 source3/include/auth_info.h|5 
 source3/include/client.h   |2 +
 source3/include/libsmb_internal.h  |   13 +++
 source3/include/libsmbclient.h |8 +++
 source3/include/proto.h|2 +
 source3/lib/popt_common.c  |5 
 source3/lib/util_cmdline.c |   12 ++
 .../{smbclient-0.1.0.sigs = smbclient-0.2.0.sigs} |2 +
 source3/libsmb/cliconnect.c|6 -
 source3/libsmb/clidfs.c|3 ++
 source3/libsmb/clientgen.c |4 +++
 source3/libsmb/libsmb_server.c |6 -
 source3/libsmb/libsmb_setget.c |   18 
 source3/libsmb/ntlmssp.c   |   22 
 source3/libsmb/wscript |2 +-
 15 files changed, 98 insertions(+), 12 deletions(-)
 copy source3/libsmb/ABI/{smbclient-0.1.0.sigs = smbclient-0.2.0.sigs} (98%)


Changeset truncated at 500 lines:

diff --git a/source3/include/auth_info.h b/source3/include/auth_info.h
index 6b5105d..d8d8317 100644
--- a/source3/include/auth_info.h
+++ b/source3/include/auth_info.h
@@ -31,6 +31,7 @@ struct user_auth_info {
bool use_machine_account;
bool fallback_after_kerberos;
bool use_ccache;
+   bool use_pw_nt_hash;
 };
 
 struct user_auth_info *user_auth_info_init(TALLOC_CTX *mem_ctx);
@@ -49,6 +50,10 @@ int get_cmdline_auth_info_signing_state(const struct 
user_auth_info *auth_info);
 void set_cmdline_auth_info_use_ccache(struct user_auth_info *auth_info,
  bool b);
 bool get_cmdline_auth_info_use_ccache(const struct user_auth_info *auth_info);
+void set_cmdline_auth_info_use_pw_nt_hash(struct 

[SCM] Samba Shared Repository - branch master updated

2012-06-12 Thread Michael Adam
The branch, master has been updated
   via  855d23b s3: Use talloc_tos() in more places in dbwrap_util
  from  080c1ca s3: Make --pw-nt-hash useable in smbclient

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


- Log -
commit 855d23b742c701f2902a96a39caaad49d4d710a1
Author: Volker Lendecke v...@samba.org
Date:   Tue Jun 12 11:17:58 2012 +0200

s3: Use talloc_tos() in more places in dbwrap_util

Signed-off-by: Michael Adam ob...@samba.org

Autobuild-User(master): Michael Adam ob...@samba.org
Autobuild-Date(master): Tue Jun 12 15:37:16 CEST 2012 on sn-devel-104

---

Summary of changes:
 lib/dbwrap/dbwrap_util.c |   16 ++--
 1 files changed, 10 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/dbwrap/dbwrap_util.c b/lib/dbwrap/dbwrap_util.c
index 9a65f7a..314a552 100644
--- a/lib/dbwrap/dbwrap_util.c
+++ b/lib/dbwrap/dbwrap_util.c
@@ -36,7 +36,7 @@ NTSTATUS dbwrap_fetch_int32(struct db_context *db, const char 
*keystr,
return NT_STATUS_INVALID_PARAMETER;
}
 
-   status = dbwrap_fetch_bystring(db, NULL, keystr, dbuf);
+   status = dbwrap_fetch_bystring(db, talloc_tos(), keystr, dbuf);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -58,7 +58,8 @@ NTSTATUS dbwrap_store_int32(struct db_context *db, const char 
*keystr,
int32_t v_store;
NTSTATUS status;
 
-   rec = dbwrap_fetch_locked(db, NULL, string_term_tdb_data(keystr));
+   rec = dbwrap_fetch_locked(db, talloc_tos(),
+ string_term_tdb_data(keystr));
if (rec == NULL) {
return NT_STATUS_UNSUCCESSFUL;
}
@@ -83,7 +84,7 @@ NTSTATUS dbwrap_fetch_uint32(struct db_context *db, const 
char *keystr,
return NT_STATUS_INVALID_PARAMETER;
}
 
-   status = dbwrap_fetch_bystring(db, NULL, keystr, dbuf);
+   status = dbwrap_fetch_bystring(db, talloc_tos(), keystr, dbuf);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
@@ -105,7 +106,8 @@ NTSTATUS dbwrap_store_uint32(struct db_context *db, const 
char *keystr,
uint32_t v_store;
NTSTATUS status;
 
-   rec = dbwrap_fetch_locked(db, NULL, string_term_tdb_data(keystr));
+   rec = dbwrap_fetch_locked(db, talloc_tos(),
+ string_term_tdb_data(keystr));
if (rec == NULL) {
return NT_STATUS_INVALID_PARAMETER;
}
@@ -146,7 +148,8 @@ static NTSTATUS dbwrap_change_uint32_atomic_action(struct 
db_context *db,
 
state = (struct dbwrap_change_uint32_atomic_context *)private_data;
 
-   rec = dbwrap_fetch_locked(db, NULL, 
string_term_tdb_data(state-keystr));
+   rec = dbwrap_fetch_locked(db, talloc_tos(),
+ string_term_tdb_data(state-keystr));
if (!rec) {
return NT_STATUS_UNSUCCESSFUL;
}
@@ -235,7 +238,8 @@ static NTSTATUS dbwrap_change_int32_atomic_action(struct 
db_context *db,
 
state = (struct dbwrap_change_int32_atomic_context *)private_data;
 
-   rec = dbwrap_fetch_locked(db, NULL, 
string_term_tdb_data(state-keystr));
+   rec = dbwrap_fetch_locked(db, talloc_tos(),
+ string_term_tdb_data(state-keystr));
if (!rec) {
return NT_STATUS_UNSUCCESSFUL;
}


-- 
Samba Shared Repository