1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-18 19:17:08 +03:00

29 Commits

Author SHA1 Message Date
Stefan Metzmacher
ccdebe97f8 lib/sharesec.c: fix the upgrade code, db_traverse returns the number of records!
metze
2008-04-15 00:25:27 +02:00
Volker Lendecke
dead193f46 Convert dbwrap_trans_delete to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-04-01 14:04:22 +02:00
Volker Lendecke
5f4de856af Convert dbwrap_trans_store to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-04-01 14:04:22 +02:00
Stefan Metzmacher
1c59142ccc sharesec: use db_open_trans()
metze
2008-04-01 14:04:21 +02:00
Volker Lendecke
bc9b4c43b8 Convert share_info.tdb to dbwrap 2008-04-01 14:04:21 +02:00
Volker Lendecke
ce1bd43cda Fix a memory leak 2008-03-28 13:44:30 +01:00
Michael Adam
3d2fdcd50f use tdb_wipe_all() instead of tdb_wipe() - it is faster...
Michael
2008-03-26 10:50:35 +01:00
Michael Adam
d4be4e30cd util_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().
Replace all callers of traverse with this tdb_traverse_delete_fn() and
don't export tdb_traverse_delete_fn() anymore.

Michael
2008-03-25 15:55:34 +01:00
Volker Lendecke
ac2bb838d5 use talloc_tos() in share_access_check() 2008-01-10 13:19:59 +01:00
Volker Lendecke
bc3bd7a8e7 Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
2007-12-29 23:13:26 +01:00
Volker Lendecke
5c392c4c6e Some C++ fixes 2007-12-21 09:58:21 +01:00
Jeremy Allison
ec003f3936 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
2007-12-07 17:32:32 -08:00
Volker Lendecke
111502d3a2 Make share_info_db_init static 2007-12-05 14:39:07 +01:00
Gerald (Jerry) Carter
d6cdbfd875 Patch 2 of 3 from Debian Samba packagers:
The point is doing the following associations:

- non discardable state data (all TDB files that may need to be backed
  up) go to statedir
- shared data (codepage stuff) go to codepagedir

The patch *does not change* the default location for these
directories. So, there is no behaviour change when applying it.

The main change is for samba developers who have to think when dealing
with files that previously pertained to libdir whether they:
- go in statedir
- go in codepagedir
- stay in libdir
2007-11-01 15:53:44 -04:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Volker Lendecke
d100bfffe2 r25564: Pass sharename to delete_share_security() 2007-10-10 12:31:13 -05:00
Volker Lendecke
4dc4364b68 r25561: Make use of [un]marshall_sec_desc
Minor cleanup only
2007-10-10 12:31:13 -05:00
Volker Lendecke
0141e64ad4 r25534: Apply some const
Why? It moves these structs from the data into the text segment, so they
will never been copy-on-write copied. Not much, but as in German you say
"Kleinvieh macht auch Mist...."
2007-10-10 12:31:12 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Stefan Metzmacher
136914502f r22006: use string_term_tdb_data()...
metze
2007-10-10 12:18:59 -05:00
Stefan Metzmacher
724c6fa337 r21987: split tdb_prs_*() functions in version which take a keystr and a TDB_DATA key
metze
2007-10-10 12:18:56 -05:00
Volker Lendecke
b6bf2e4267 r19950: talloc_destroy is replaced these days 2007-10-10 12:16:15 -05:00
Volker Lendecke
53eaa603eb r19669: set_share_security does not need a mem_ctx passed 2007-10-10 12:15:46 -05:00
Volker Lendecke
c73d0815a3 r19448: Convert delete_share_security to struct share_params plus some cleanups 2007-10-10 12:15:36 -05:00
Volker Lendecke
220dd43330 r17097: Move share_access_check from rpc_server/srv_srvsvc_nt.c to lib/sharesec.c 2007-10-10 11:38:11 -05:00
Volker Lendecke
c89471e157 r17032: I thought I had already merged this from trunk:
> r16959 | vlendec | 2006-07-11 23:10:44 +0200 (Di, 11 Jul 2006) | 1 line
>
> get_share_security does not need snum, activate RPC-SAMBA3-SRVSVC

Volker
2007-10-10 11:19:21 -05:00
Volker Lendecke
b9c6e3f556 r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring does not
have the timeout argument in Samba4. Add a new routine
tdb_lock_bystring_with_timeout.

Volker
2007-10-10 11:16:23 -05:00
Gerald Carter
17e63ac4ed r13316: Let the carnage begin....
Sync with trunk as off r13315
2007-10-10 11:06:23 -05:00