1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

55030 Commits

Author SHA1 Message Date
Stefan Metzmacher
066e81f557 s4:build: make sure that we regenerate proto headers when source files change
metze
2009-07-31 14:42:03 +02:00
Stefan Metzmacher
933d5ee22b librpc/ndr_drsuapi: fix a memory leak on ndr_push_drsuapi_DsReplicaOID()
metze
2009-07-31 14:42:02 +02:00
Stefan Metzmacher
2ef1159c0d util/asn1: fix potential memory leak in asn1_write_OID()
metze
2009-07-31 14:42:02 +02:00
Stefan Metzmacher
7d470fdb1b s4:auth: make sure we have elements returned at all in authsam_expand_nested_groups()
metze
2009-07-31 14:40:29 +02:00
Matthias Dieter Wallnöfer
71b013f4de s4: Patch to implement nested group and privileges
This patch adds a function "authsam_expand_nested_groups" (calculation of rights
through expanding groups of a certain SID) which basically collects all
memberships through "memberOf" attributes. It works with either user or group SIDs.
For avoiding loops it tests on each call if the SID hasn't been added yet (through
the helper function "sids_contains_sid").
The function itself is called by "authsam_make_server_info".
2009-07-31 14:40:29 +02:00
Rusty Russell
a207cca1d3 tdb: don't alter tdb->flags in tdb_reopen_all()
The flags are user-visible, via tdb_get_flags/add_flags/remove_flags.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-07-31 14:40:28 +02:00
Rusty Russell
3b2f074bda tdb: Reimplementation of Metze's "lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop".
This version just wraps the reopen code, so we still re-grab the lock and do
the normal sanity checks.

The reason we do this at all is to avoid global fd limits, see:
http://forums.fedoraforum.org/showthread.php?t=210393

Note also that this whole reopen concept is fundamentally racy: if the parent
goes away before the child calls tdb_reopen_all, the database can be left
without an active lock and another TDB_CLEAR_IF_FIRST opener will clear it.
A fork_with_tdbs() wrapper could use a pipe to solve this, but it's hardly
elegant (what if there are other independent things which have similar needs?).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-07-31 14:40:28 +02:00
Rusty Russell
fa91bc6719 tdb: Revert "lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop"
This reverts commit e17df483fbedb81aededdef5fbb6ae1d034bc2dd.

tdb_reopen_all also restores the active lock, required for TDB_CLEAR_IF_FIRST.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-07-31 14:40:28 +02:00
Stefan Metzmacher
42b28ee95d .gitignore: ignore more generated files
metze
2009-07-31 14:38:44 +02:00
Stefan Metzmacher
258250f1ac winsif.idl: add definition of winsif_WinsDoScanvengingNew()
metze
2009-07-31 14:38:43 +02:00
Stefan Metzmacher
8ad17b4501 winsif.idl: add definition of winsif_WinsStatusWHdl()
metze
2009-07-31 14:38:43 +02:00
Stefan Metzmacher
d3ec23f405 winsif.idl: add definition of winsif_WinsStatusNew()
metze
2009-07-31 14:38:43 +02:00
Stefan Metzmacher
50662d22d8 winsif.idl: add definition of winsif_WinsGetDbRecsByName()
metze
2009-07-31 14:38:42 +02:00
Stefan Metzmacher
e7466831a8 winsif.idl: add definition of winsif_WinsGetBrowserNames()
metze
2009-07-31 14:38:42 +02:00
Stefan Metzmacher
833f253d93 winsif.idl: add definition of winsif_WinsSetFlags()
metze
2009-07-31 14:38:42 +02:00
Stefan Metzmacher
655efd069d winsif.idl: add definition of winsif_WinsDeleteWins()
metze
2009-07-31 14:38:41 +02:00
Stefan Metzmacher
5899bc002a winsif.idl: add definition of winsif_WinsGetBrowserNames_Old()
metze
2009-07-31 14:38:41 +02:00
Stefan Metzmacher
5fd30f8dfb winsif.idl: add definition of winsif_WinsGetNameAndAdd()
metze
2009-07-31 14:38:41 +02:00
Stefan Metzmacher
7bea52ab16 winsif.idl: add definition of winsif_WinsWorkerThreadUpdate()
metze
2009-07-31 14:38:40 +02:00
Stefan Metzmacher
47174d3130 winsif.idl: add definition of winsif_WinsResetCounters()
metze
2009-07-31 14:38:40 +02:00
Stefan Metzmacher
c91be0915e winsif.idl: add definition of winsif_WinsSetPriorityClass()
metze
2009-07-31 14:38:39 +02:00
Stefan Metzmacher
6d0ab082ff winsif.idl: add definition of winsif_WinsPullRange()
metze
2009-07-31 14:38:39 +02:00
Stefan Metzmacher
e29763fd3f winsif.idl: add definition of winsif_WinsDelDbRecs()
metze
2009-07-31 14:38:39 +02:00
Stefan Metzmacher
b540aa4296 winsif.idl: add definition of winsif_WinsBackup()
metze
2009-07-31 14:38:38 +02:00
Stefan Metzmacher
7430582346 winsif.idl: add definition of winsif_WinsTerm()
metze
2009-07-31 14:38:38 +02:00
Stefan Metzmacher
39ec220d49 winsif.idl: add definition of winsif_WinsGetDbRecs()
metze
2009-07-31 14:38:38 +02:00
Stefan Metzmacher
f6084589f9 winsif.idl: add definition of winsif_WinsDoScavenging()
metze
2009-07-31 14:38:37 +02:00
Stefan Metzmacher
15c330af32 winsif.idl: add definition of winsif_WinsDoStaticInit()
metze
2009-07-31 14:38:37 +02:00
Stefan Metzmacher
b62ee9972e winsif.idl: add definition of winsif_WinsTrigger()
metze
2009-07-31 14:38:36 +02:00
Stefan Metzmacher
dbd963fa87 winsif.idl: add definition of winsif_WinsStatus()
metze
2009-07-31 14:38:36 +02:00
Stefan Metzmacher
f6c0ba9869 winsif.idl: add definition of WinsRecordAction()
metze
2009-07-31 14:38:36 +02:00
Stefan Metzmacher
639df54cf5 winsif.idl: add missing function calls
metze
2009-07-31 14:38:35 +02:00
Stefan Metzmacher
d01e8d22fa s4:librpc: rename wins.idl => winsif.idl
metze
2009-07-31 14:38:35 +02:00
Stefan Metzmacher
3abe59cb2d librpc: rerun "make idl"
metze
2009-07-31 14:13:55 +02:00
Stefan Metzmacher
2ed71264e1 pidl:Samba3/ClientNDR: add support tevent_req based _send/recv() client functions
metze
2009-07-31 14:10:14 +02:00
Stefan Metzmacher
28a4656738 pidl:Samba3/ClientNDR: rename ParseFunction => ParseFunctionSync and add ParseFunction as glue
This prepares the following ParseFunctionAsync* commits.

metze
2009-07-31 12:49:47 +02:00
Stefan Metzmacher
6a1ff90708 pidl:Samba3/ClientNDR: allow passing optional variable prefixes to ParseOutputArgument()
metze
2009-07-31 12:49:46 +02:00
Stefan Metzmacher
9e4cf82b74 pidl/Samba4.pm: allow an optional prefix passed to DeclLong()
metze
2009-07-31 12:49:46 +02:00
Stefan Metzmacher
dcdefc17b9 s3:rpc_client: add dispatch_send/recv() to struct rpc_pipe_client
metze
2009-07-31 12:49:45 +02:00
Yannick Bergeron
c3e12444f5 Increase the max_grp value to 128 (AIX NGROUPS_MAX value) instead of 32 to allow AIX to call sys_getgrouplist only once 2009-07-31 04:34:37 -04:00
Stefan Metzmacher
41b95da435 pidl:Samba4/Python: fix mapType() => mapTypeName()
This tries to fix commit 8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd.

The problem was:

Undefined subroutine &Parse::Pidl::Samba4::Python::mapType called at /home/metze/master4/pidl/lib/Parse/Pidl/Samba4/Python.pm line 848.

Jelmer: please check this.

metze
2009-07-31 10:16:40 +02:00
Jeremy Allison
fc4e21bdae Tidy up treatment of ctime.
Jeremy.
2009-07-30 14:27:32 -07:00
Jeremy Allison
65165433ec Fix bug #6529 - Offline files conflict with Vista and Office 2003.
We need to send a notify message when a timestamp is changed that
can't be reflected in the underlying POSIX filesystem.
Jeremy.
2009-07-30 13:19:26 -07:00
Jeremy Allison
84bfd7395c Remove the extraneous logic in smb_set_info_standard - we
do the time twiddling logic at the smb_set_file_time level.
Jeremy.
2009-07-30 13:16:40 -07:00
Jeremy Allison
e411ec6a8a SMB_INFO_STANDARD is not a valid info level on set,
and was being read incorrectly anyway. Remove.
Jeremy.
2009-07-30 13:13:23 -07:00
Rusty Russell
36c0f0f99a realloc() has that horrible overloaded free semantic when size is 0:
current code does a free of the old record in this case, then fail.
2009-07-30 13:10:33 -07:00
Rusty Russell
a88c281ddc If the record is at the end of the database, pretending it has length 1
might take us out-of-bounds.  Only pretend to be length 1 for the malloc.
2009-07-30 13:09:33 -07:00
Jelmer Vernooij
8eff9f9a31 python: Cope with the dom_sid2 alias in pidl's python generating code.
This fixes some problems in the samr Python bindings that pidl was
(correctly) warning about.
2009-07-30 20:28:29 +02:00
Jelmer Vernooij
6768cfe624 DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.
Use py_talloc_reference in DCE/RPC code, fixes
					access to SAMR pipe.
2009-07-30 20:04:42 +02:00
Jelmer Vernooij
eda7f35bc8 Remove RFC's from the release tarballs to make the lives of the Debian
maintainers of Samba4 a bit easier.
2009-07-30 12:29:21 +02:00