kai/samba.git
13 years agolibcli/security Add unix_token and unix_info to auth_session_info too
Andrew Bartlett [Sat, 12 Feb 2011 00:21:03 +0000 (11:21 +1100)]
libcli/security Add unix_token and unix_info to auth_session_info too

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Mar  1 07:13:43 CET 2011 on sn-devel-104

13 years agos3-auth struct security_unix_token replaces UNIX_USER_TOKEN
Andrew Bartlett [Fri, 11 Feb 2011 07:49:15 +0000 (18:49 +1100)]
s3-auth struct security_unix_token replaces UNIX_USER_TOKEN

13 years agolibrpc/idl Add helper structures for use by samba3 in auth_session_info
Andrew Bartlett [Fri, 11 Feb 2011 07:47:21 +0000 (18:47 +1100)]
librpc/idl Add helper structures for use by samba3 in auth_session_info

The unix info and in particular unix token needs to be preserved into
the struct auth_session_info.

Andrew Bartlett

13 years agopidl Add support for uid_t and gid_t types
Andrew Bartlett [Fri, 11 Feb 2011 07:45:32 +0000 (18:45 +1100)]
pidl Add support for uid_t and gid_t types

These are mapped to uint64_t, which should be big enough.  This is
proposed to be used for internal Samba representations, where it would
be more painful to convert all the callers to an uint64_t calling
convention.

Andrew Bartlett

13 years agos3-rpc_server Handle session key as a constant buffer
Andrew Bartlett [Thu, 10 Feb 2011 10:37:51 +0000 (21:37 +1100)]
s3-rpc_server Handle session key as a constant buffer

This way, we don't have to check for memory allocation failures.

Andrew Bartlett

13 years agos4:dsdb/common/util.c - remove "samdb_find_or_add_value"
Matthias Dieter Wallnöfer [Wed, 23 Feb 2011 09:18:03 +0000 (10:18 +0100)]
s4:dsdb/common/util.c - remove "samdb_find_or_add_value"

This isn't used anymore.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
13 years agos4:dsdb/common/util.c - fully remove "samdb_msg_add_string"
Matthias Dieter Wallnöfer [Wed, 23 Feb 2011 09:13:56 +0000 (10:13 +0100)]
s4:dsdb/common/util.c - fully remove "samdb_msg_add_string"

This isn't needed anymore and will be substituted by
"ldb_msg_add_string".

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
13 years agos4:libnet/libnet_samsync_ldb.c - add a "samdb_msg_add_string" wrapper
Matthias Dieter Wallnöfer [Wed, 23 Feb 2011 09:24:34 +0000 (10:24 +0100)]
s4:libnet/libnet_samsync_ldb.c - add a "samdb_msg_add_string" wrapper

Add this in order to allow the "ADD_OR_DEL" macros to work.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
13 years agos4:remove many invocations of "samdb_msg_add_string"
Matthias Dieter Wallnöfer [Thu, 14 Oct 2010 20:26:44 +0000 (22:26 +0200)]
s4:remove many invocations of "samdb_msg_add_string"

This call can be substituted by "ldb_msg_add_string". We only need to be
careful on local objects or talloc'ed ones which live shorter than the message.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
13 years agoautobuild: enabled samba3-waf build
Andrew Tridgell [Tue, 1 Mar 2011 00:53:49 +0000 (01:53 +0100)]
autobuild: enabled samba3-waf build

this is just a build check for now. See the mailing list discussion.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Mar  1 06:22:07 CET 2011 on sn-devel-104

13 years agolib/util: new merged debug system
Andrew Bartlett [Thu, 24 Feb 2011 05:14:03 +0000 (16:14 +1100)]
lib/util: new merged debug system

This is the s3 debug system, with a number of changes to tidy it up
for common use.  The debug class system is simplified by the removal of the
ISSET table, the system no longer attempts to cope with assignment of
DEBUGLEVEL, and the full class table is always available (rather than
just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup.  It is also no longer
confusingly described as a hack, but as the initial table.

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Mar  1 04:32:12 CET 2011 on sn-devel-104

13 years agolib/util move debug.[ch] out of the way
Andrew Bartlett [Mon, 28 Feb 2011 20:40:22 +0000 (07:40 +1100)]
lib/util move debug.[ch] out of the way

This will allow a modified version of the s3 debug system to be the
new common debug system.

Andrew Bartlett

13 years agos4-libnet_vampire: Ignore some attributes when building working schema cache
Kamen Mazdrashki [Tue, 1 Mar 2011 00:32:19 +0000 (02:32 +0200)]
s4-libnet_vampire: Ignore some attributes when building working schema cache

Working schema cache will be used to convert replicated Schema objects
again later, i.e. used as reference, so we don't need to resolve all
attribute OIDs for working Schema cache to be usable.

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Tue Mar  1 03:45:16 CET 2011 on sn-devel-104

13 years agos4-repl/working_schema: Ignore some attributes when bulding working schema cache
Kamen Mazdrashki [Tue, 1 Mar 2011 00:30:12 +0000 (02:30 +0200)]
s4-repl/working_schema: Ignore some attributes when bulding working schema cache

We don't need all object attributes resolved and converted for a working
schema to be functional.

13 years agos4-replicated_objects: Implement a mechanism to relax some attributes conversion
Kamen Mazdrashki [Tue, 1 Mar 2011 00:25:24 +0000 (02:25 +0200)]
s4-replicated_objects: Implement a mechanism to relax some attributes conversion

during replicated object convert stage.
The problem is that we may have loops in schema graph and we can't
resolve those loops in just one pass. Ignoring some attributes
conversion will allow us to have a functional schema cache that we
can use later to resolve all attribute OIDs on another pass

13 years agos3-debug Always use C99 true/false rather than True and False
Andrew Bartlett [Mon, 28 Feb 2011 21:52:25 +0000 (08:52 +1100)]
s3-debug Always use C99 true/false rather than True and False

This will help with the merge into the common code.

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Mar  1 02:58:55 CET 2011 on sn-devel-104

13 years agos3-build __FUNCTION__ is always available, always use it
Andrew Bartlett [Mon, 28 Feb 2011 13:46:30 +0000 (00:46 +1100)]
s3-build __FUNCTION__ is always available, always use it

This avoids duplication between FUNCTION_NAME and __FUNCTION__

13 years agolib/util/time: Merge time functions from source3/lib/time.c
Andrew Bartlett [Tue, 22 Feb 2011 06:59:51 +0000 (17:59 +1100)]
lib/util/time: Merge time functions from source3/lib/time.c

13 years agospoolss.idl: align spoolss_DriverFileInfo relative pointer to 4 byte
Stefan Metzmacher [Tue, 22 Feb 2011 14:56:30 +0000 (15:56 +0100)]
spoolss.idl: align spoolss_DriverFileInfo relative pointer to 4 byte

metze

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Mar  1 02:12:37 CET 2011 on sn-devel-104

13 years agospoolss.idl: align spoolss_PrinterEnumValues 'data' based on the type
Stefan Metzmacher [Tue, 22 Feb 2011 18:23:33 +0000 (19:23 +0100)]
spoolss.idl: align spoolss_PrinterEnumValues 'data' based on the type

metze

13 years agoTODO test/review librpc/ndr: remove align2 hack for relative pointers
Stefan Metzmacher [Tue, 22 Feb 2011 14:58:45 +0000 (15:58 +0100)]
TODO test/review librpc/ndr: remove align2 hack for relative pointers

metze

13 years agoTODO test/review librpc: align nstring and nstring_array to 2 byte
Stefan Metzmacher [Tue, 22 Feb 2011 14:57:21 +0000 (15:57 +0100)]
TODO test/review librpc: align nstring and nstring_array to 2 byte

metze

13 years agolibrpc/ndr: ndr align relative pointers based on the given flags
Stefan Metzmacher [Tue, 22 Feb 2011 14:45:44 +0000 (15:45 +0100)]
librpc/ndr: ndr align relative pointers based on the given flags

We used to do this only for the reverse relative pointers
and now we always do it.

metze

13 years agoTODO test/review librpc/ndr: let ndr_push/pull_DATA_BLOB() look at LIBNDR_FLAG_REMAIN...
Stefan Metzmacher [Tue, 22 Feb 2011 17:19:13 +0000 (18:19 +0100)]
TODO test/review librpc/ndr: let ndr_push/pull_DATA_BLOB() look at LIBNDR_FLAG_REMAINING before LIBNDR_ALIGN_FLAGS

metze

13 years agoRevert "Fix alignment issues in SPOOLSS "BUFFER" marshalling."
Stefan Metzmacher [Tue, 22 Feb 2011 10:00:07 +0000 (11:00 +0100)]
Revert "Fix alignment issues in SPOOLSS "BUFFER" marshalling."

This reverts commit 187f695469071d0550613e037b36170facb85460.

This is the wrong fix.

metze

13 years agoFix compiler warning on casting -1 to uint32.
Jeremy Allison [Mon, 28 Feb 2011 22:56:03 +0000 (14:56 -0800)]
Fix compiler warning on casting -1 to uint32.

13 years agoFix some types
Jelmer Vernooij [Mon, 28 Feb 2011 21:04:29 +0000 (22:04 +0100)]
Fix some types

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104

13 years agoFix one more warning introduced by changing the size of UNIX_USER_TOKEN->ngroups...
Jeremy Allison [Mon, 28 Feb 2011 20:38:18 +0000 (12:38 -0800)]
Fix one more warning introduced by changing the size of UNIX_USER_TOKEN->ngroups from size_t to uint32_t.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Feb 28 22:43:50 CET 2011 on sn-devel-104

13 years agoFix warning introduced by changing the size of UNIX_USER_TOKEN->ngroups from size_t...
Jeremy Allison [Mon, 28 Feb 2011 20:31:53 +0000 (12:31 -0800)]
Fix warning introduced by changing the size of UNIX_USER_TOKEN->ngroups from size_t to uint32_t.

13 years agoFix "cast from pointer to integer of different size" warnings on a 64-bit machine.
Jeremy Allison [Mon, 28 Feb 2011 20:25:40 +0000 (12:25 -0800)]
Fix "cast from pointer to integer of different size" warnings on a 64-bit machine.

13 years agontvfs: Add some missing dependencies on tevent/events.
Jelmer Vernooij [Mon, 28 Feb 2011 19:26:55 +0000 (20:26 +0100)]
ntvfs: Add some missing dependencies on tevent/events.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 28 21:57:16 CET 2011 on sn-devel-104

13 years agotevent: Add lib/tevent as include directory.
Jelmer Vernooij [Mon, 28 Feb 2011 18:20:46 +0000 (19:20 +0100)]
tevent: Add lib/tevent as include directory.

13 years agosamba_abi: Generate vscript entries even for ABI versions that didn't introduce
Jelmer Vernooij [Mon, 28 Feb 2011 16:13:07 +0000 (17:13 +0100)]
samba_abi: Generate vscript entries even for ABI versions that didn't introduce
any new symbols.

The version entries also appear in the symbol table and removing them
(we always add an entry for the current version) breaks the ABI.

13 years agotdb: Use <tdb.h> to include tdb so system headers are found when building against...
Jelmer Vernooij [Sun, 27 Feb 2011 19:45:42 +0000 (20:45 +0100)]
tdb: Use <tdb.h> to include tdb so system headers are found when building against system tdb.

13 years agoUse <tdb.h> to include tdb, so the system include file gets used when building against
Jelmer Vernooij [Sun, 27 Feb 2011 17:45:53 +0000 (18:45 +0100)]
Use <tdb.h> to include tdb, so the system include file gets used when building against
system tdb.

13 years agotdr: Inline proto header to allow tdr.h to be used as it's a public header.
Jelmer Vernooij [Sun, 27 Feb 2011 17:42:00 +0000 (18:42 +0100)]
tdr: Inline proto header to allow tdr.h to be used as it's a public header.

13 years agoUse <tevent.h> so the system tevent gets included, if enabled.
Jelmer Vernooij [Sun, 27 Feb 2011 17:39:10 +0000 (18:39 +0100)]
Use <tevent.h> so the system tevent gets included, if enabled.

13 years agoFinish the range checking on all FD_SET calls for select().
Jeremy Allison [Mon, 28 Feb 2011 19:23:53 +0000 (11:23 -0800)]
Finish the range checking on all FD_SET calls for select().

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Feb 28 21:10:08 CET 2011 on sn-devel-104

13 years agos3-torture: fix the build of rpc_open_tcp.
Günther Deschner [Mon, 28 Feb 2011 19:18:33 +0000 (20:18 +0100)]
s3-torture: fix the build of rpc_open_tcp.

Guenther

13 years agos3-smbd: Pass tevent context to messaging functions.
Andreas Schneider [Mon, 28 Feb 2011 13:32:54 +0000 (14:32 +0100)]
s3-smbd: Pass tevent context to messaging functions.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Feb 28 19:00:08 CET 2011 on sn-devel-104

13 years agos3-rpc_client: Move client pipe functions to own header.
Andreas Schneider [Mon, 28 Feb 2011 09:19:44 +0000 (10:19 +0100)]
s3-rpc_client: Move client pipe functions to own header.

13 years agos3:test: fix smbclient test on older systems (usage of mktemp)
Michael Adam [Mon, 28 Feb 2011 16:06:01 +0000 (17:06 +0100)]
s3:test: fix smbclient test on older systems (usage of mktemp)

--tmpdir is not a valid option to mktemp on older systems

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 28 18:12:46 CET 2011 on sn-devel-104

13 years agos3:test: fix registry roundtrip test on older systems (usage of mktemp)
Michael Adam [Mon, 28 Feb 2011 16:06:01 +0000 (17:06 +0100)]
s3:test: fix registry roundtrip test on older systems (usage of mktemp)

--tmpdir is not a valid option to mktemp on older systems

13 years agonsswitch: Eliminate select from wb_common
Volker Lendecke [Fri, 18 Feb 2011 12:57:35 +0000 (13:57 +0100)]
nsswitch: Eliminate select from wb_common

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 28 17:26:18 CET 2011 on sn-devel-104

13 years agoRemove sys_select[_intr]
Volker Lendecke [Fri, 18 Feb 2011 11:34:08 +0000 (12:34 +0100)]
Remove sys_select[_intr]

13 years agotevent: Add a poll backend
Volker Lendecke [Wed, 9 Feb 2011 14:28:10 +0000 (15:28 +0100)]
tevent: Add a poll backend

13 years agolibcli: Eliminate select from smb_readline_replacement
Volker Lendecke [Mon, 14 Feb 2011 11:14:12 +0000 (12:14 +0100)]
libcli: Eliminate select from smb_readline_replacement

13 years agos3: Eliminate select from libaddns
Volker Lendecke [Thu, 10 Feb 2011 10:01:54 +0000 (11:01 +0100)]
s3: Eliminate select from libaddns

13 years agos3: Eliminate sys_select from do_smb_resolve() -- untested
Volker Lendecke [Mon, 7 Feb 2011 16:19:03 +0000 (17:19 +0100)]
s3: Eliminate sys_select from do_smb_resolve() -- untested

13 years agos3: Eliminate sys_select from do_smb_browse() -- untested
Volker Lendecke [Mon, 7 Feb 2011 16:17:26 +0000 (17:17 +0100)]
s3: Eliminate sys_select from do_smb_browse() -- untested

13 years agos3: Eliminate sys_select_intr from smbfilter
Volker Lendecke [Wed, 9 Feb 2011 12:38:06 +0000 (13:38 +0100)]
s3: Eliminate sys_select_intr from smbfilter

13 years agos3: Remove unused receive_packet
Stefan Metzmacher [Fri, 18 Feb 2011 11:32:12 +0000 (12:32 +0100)]
s3: Remove unused receive_packet

13 years agos3: Eliminate sys_select_intr from read_fd_with_timeout
Volker Lendecke [Tue, 8 Feb 2011 16:57:12 +0000 (17:57 +0100)]
s3: Eliminate sys_select_intr from read_fd_with_timeout

13 years agos3: Eliminiate sys_select_intr from client.c
Volker Lendecke [Tue, 8 Feb 2011 16:56:10 +0000 (17:56 +0100)]
s3: Eliminiate sys_select_intr from client.c

13 years agos3: Add poll_intr_one_fd
Volker Lendecke [Tue, 8 Feb 2011 16:33:59 +0000 (17:33 +0100)]
s3: Add poll_intr_one_fd

13 years agos3: Add sys_poll_intr
Volker Lendecke [Tue, 8 Feb 2011 16:28:27 +0000 (17:28 +0100)]
s3: Add sys_poll_intr

13 years agos3: Eliminate sys_select from g_lock_lock
Volker Lendecke [Tue, 8 Feb 2011 10:59:04 +0000 (11:59 +0100)]
s3: Eliminate sys_select from g_lock_lock

13 years agos3: Eliminate sys_select from fd_is_readable
Volker Lendecke [Mon, 7 Feb 2011 16:02:44 +0000 (17:02 +0100)]
s3: Eliminate sys_select from fd_is_readable

13 years agos3: Eliminate select from packet_fd_read_sync
Volker Lendecke [Mon, 7 Feb 2011 15:59:38 +0000 (16:59 +0100)]
s3: Eliminate select from packet_fd_read_sync

13 years agos3: Add poll_one_fd()
Volker Lendecke [Mon, 7 Feb 2011 15:55:16 +0000 (16:55 +0100)]
s3: Add poll_one_fd()

13 years agos3: Remove select-based s3 event backend
Volker Lendecke [Mon, 7 Feb 2011 14:24:07 +0000 (15:24 +0100)]
s3: Remove select-based s3 event backend

13 years agos3: Use poll in nmbd
Volker Lendecke [Mon, 7 Feb 2011 14:20:39 +0000 (15:20 +0100)]
s3: Use poll in nmbd

13 years agos3: Use poll in winbind
Volker Lendecke [Thu, 3 Feb 2011 21:05:30 +0000 (22:05 +0100)]
s3: Use poll in winbind

13 years agos3: Use poll in smbd
Volker Lendecke [Thu, 3 Feb 2011 20:55:02 +0000 (21:55 +0100)]
s3: Use poll in smbd

13 years agos3: Use poll for the event loop
Volker Lendecke [Thu, 3 Feb 2011 15:34:07 +0000 (16:34 +0100)]
s3: Use poll for the event loop

13 years agos3: Add sys_poll
Volker Lendecke [Mon, 7 Feb 2011 15:29:13 +0000 (16:29 +0100)]
s3: Add sys_poll

13 years agolibreplace: poll based on select
Volker Lendecke [Wed, 9 Feb 2011 18:22:25 +0000 (19:22 +0100)]
libreplace: poll based on select

13 years agos3: Add timeval_to_msec
Volker Lendecke [Tue, 8 Feb 2011 11:55:02 +0000 (12:55 +0100)]
s3: Add timeval_to_msec

13 years agos3:msg_idmap: The solaris cc compiler does not like unnamed unions as struct members...
Michael Adam [Mon, 28 Feb 2011 14:52:25 +0000 (15:52 +0100)]
s3:msg_idmap: The solaris cc compiler does not like unnamed unions as struct members - fix the build

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 28 16:39:15 CET 2011 on sn-devel-104

13 years agos3: fix the waf build after adding smbd/msg_idmap.c
Michael Adam [Mon, 28 Feb 2011 14:36:11 +0000 (15:36 +0100)]
s3: fix the waf build after adding smbd/msg_idmap.c

13 years agos3: Survive an idle child that was killed
Christian Ambach [Wed, 23 Feb 2011 10:10:15 +0000 (11:10 +0100)]
s3: Survive an idle child that was killed

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 28 14:53:20 CET 2011 on sn-devel-104

13 years agos3: smbcontrol to notify smbd about idmap changes
Gregor Beck [Thu, 3 Feb 2011 15:30:29 +0000 (16:30 +0100)]
s3: smbcontrol to notify smbd about idmap changes

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 28 14:07:23 CET 2011 on sn-devel-104

13 years agos3: add functions to remove entries from idmap cache
Gregor Beck [Fri, 18 Feb 2011 13:47:03 +0000 (14:47 +0100)]
s3: add functions to remove entries from idmap cache

13 years agos3: add functions to remove entries from idmap memcache
Gregor Beck [Fri, 18 Feb 2011 13:45:14 +0000 (14:45 +0100)]
s3: add functions to remove entries from idmap memcache

13 years agos3: add functions to flush the idmap memcache
Gregor Beck [Fri, 18 Feb 2011 13:42:18 +0000 (14:42 +0100)]
s3: add functions to flush the idmap memcache

13 years agoWHATSNEW: document removed parameter "idmap alloc backend"
Michael Adam [Tue, 1 Feb 2011 10:59:25 +0000 (11:59 +0100)]
WHATSNEW: document removed parameter "idmap alloc backend"

13 years agoWHATSNEW: document new nfs quota backend for linux
Michael Adam [Tue, 1 Feb 2011 11:06:11 +0000 (12:06 +0100)]
WHATSNEW: document new nfs quota backend for linux

13 years agos3: Fix a typo
Volker Lendecke [Sat, 26 Feb 2011 13:01:08 +0000 (14:01 +0100)]
s3: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 27 20:14:20 CET 2011 on sn-devel-104

13 years agos3: Fix a comment
Volker Lendecke [Sat, 26 Feb 2011 12:41:43 +0000 (13:41 +0100)]
s3: Fix a comment

13 years agos3: Fix some nonempty blank lines
Volker Lendecke [Sat, 26 Feb 2011 11:36:19 +0000 (12:36 +0100)]
s3: Fix some nonempty blank lines

13 years agos3: Use strndup in parse_nss_param
Volker Lendecke [Sat, 26 Feb 2011 10:53:21 +0000 (11:53 +0100)]
s3: Use strndup in parse_nss_param

13 years agos3: properly find our standard nss_info backends
Volker Lendecke [Sun, 27 Feb 2011 18:09:28 +0000 (19:09 +0100)]
s3: properly find our standard nss_info backends

Right now, the nss_info backends are tied to the idmap backends (which is wrong
IMHO). In the domain child we don't load the idmap backend anymore, so we don't
have the nss info modules. This needs fixing properly.

13 years agos3: Fix a debug message
Volker Lendecke [Sun, 27 Feb 2011 15:11:36 +0000 (16:11 +0100)]
s3: Fix a debug message

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 27 16:59:19 CET 2011 on sn-devel-104

13 years agos3: Make is_zero_addr take a sockaddr_storage
Volker Lendecke [Sun, 27 Feb 2011 08:57:18 +0000 (09:57 +0100)]
s3: Make is_zero_addr take a sockaddr_storage

All callers had to cast this anyway

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104

13 years agos4/dsdb-util: Use DS_NTDSDSA_OPT_IS_GC flag definition
Kamen Mazdrashki [Tue, 22 Feb 2011 15:06:15 +0000 (17:06 +0200)]
s4/dsdb-util: Use DS_NTDSDSA_OPT_IS_GC flag definition

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Sun Feb 27 00:10:45 CET 2011 on sn-devel-104

13 years agos4/tests: Include 'replica_sync' test in S4 test suite
Kamen Mazdrashki [Tue, 22 Feb 2011 15:05:54 +0000 (17:05 +0200)]
s4/tests: Include 'replica_sync' test in S4 test suite

13 years agos4/drs-test: Remove unused imports
Kamen Mazdrashki [Tue, 22 Feb 2011 02:38:12 +0000 (04:38 +0200)]
s4/drs-test: Remove unused imports

13 years agos4/drs-test: remove netReplicateCmd test from 'deleted object' test case
Kamen Mazdrashki [Tue, 22 Feb 2011 02:16:55 +0000 (04:16 +0200)]
s4/drs-test: remove netReplicateCmd test from 'deleted object' test case

DCs synchronization is moved to the test case setUp method
as there is no guarantee for the order of execution of tests
in a test case - thus netReplicateCmd may be executed after
ReplicateDeleteOjbect test

13 years agos4/drs-tests: Disable replication during 'deleted object' test
Kamen Mazdrashki [Tue, 22 Feb 2011 01:40:07 +0000 (03:40 +0200)]
s4/drs-tests: Disable replication during 'deleted object' test

This allows us to remove the patch that prevents the test failure.

Also pass 'forced' flag to samba-tool drs replicate command, otherwise
DsReplicaSync will fail with 'replication not permitted' error

13 years agos4/drs-tests: Move enable/disable replication methods to DrsBase class so we can...
Kamen Mazdrashki [Mon, 21 Feb 2011 15:49:54 +0000 (17:49 +0200)]
s4/drs-tests: Move enable/disable replication methods to DrsBase class so we can re-use them

13 years agos4-drepl: Schedule event to trigger replication rather than calling run_pending_ops...
Kamen Mazdrashki [Sat, 26 Feb 2011 21:13:49 +0000 (23:13 +0200)]
s4-drepl: Schedule event to trigger replication rather than calling run_pending_ops directly

Executing dreplsrv_run_pending_ops() directly may cause a segfault
as in case of failure, the _drepl_replica_sync_done_cb() callback
gets called *before* drepl_replica_sync() returns. In such case,
irpc message gets freed twice - once when irpc_send_reply() gets called
and once when drepl_replica_sync() returns

13 years agos4-drepl: Fix replica sync callback to really store last error rather than last success
Kamen Mazdrashki [Sat, 26 Feb 2011 21:01:20 +0000 (23:01 +0200)]
s4-drepl: Fix replica sync callback to really store last error rather than last success

13 years agos4-drepl: Refactor dreplsrv_run_pull_ops() to
Kamen Mazdrashki [Sat, 26 Feb 2011 19:00:46 +0000 (21:00 +0200)]
s4-drepl: Refactor dreplsrv_run_pull_ops() to

1. Take into account DSA options - we should not send replication
   requests in case OUTBOUND_REPLICATION is disabled
2. Use replication flags for the operation to determine if
   a forced replication is requested
3. In case outbound replication is disabled and we don't have
   DRSUAPI_DRS_SYNC_FORCED flag set, then we should record
   WERR_DS_DRA_SINK_DISABLED error as a last replication result

13 years agos4-drepl: Pass replication options from DsReplicaSync call
Kamen Mazdrashki [Sat, 26 Feb 2011 18:36:19 +0000 (20:36 +0200)]
s4-drepl: Pass replication options from DsReplicaSync call

13 years agos3: Improve a dbg msg in aio_fork
Volker Lendecke [Wed, 23 Feb 2011 10:09:32 +0000 (11:09 +0100)]
s3: Improve a dbg msg in aio_fork

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Feb 26 17:42:37 CET 2011 on sn-devel-104

13 years agonss_wrapper: Fix a segfault when libnss_winbind.so is not loadable
Volker Lendecke [Wed, 23 Feb 2011 22:20:27 +0000 (23:20 +0100)]
nss_wrapper: Fix a segfault when libnss_winbind.so is not loadable

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Feb 26 13:19:01 CET 2011 on sn-devel-104

13 years agonss_wrapper: Make nwrap_module_init a bit more readable
Volker Lendecke [Wed, 23 Feb 2011 22:17:58 +0000 (23:17 +0100)]
nss_wrapper: Make nwrap_module_init a bit more readable

13 years agos3: Fix pdb_ads_enum_group_memberships args
Volker Lendecke [Sat, 26 Feb 2011 09:52:23 +0000 (10:52 +0100)]
s3: Fix pdb_ads_enum_group_memberships args

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Feb 26 11:37:10 CET 2011 on sn-devel-104

13 years agodirfd doesn't exist in some platforms.
Jeremy Allison [Sat, 26 Feb 2011 01:25:36 +0000 (17:25 -0800)]
dirfd doesn't exist in some platforms.

Hack that should get the buildfarm back to green.
Ensure dirfd() needs to be defined before we properly return fdopendir.
This will do until we get a proper dirfd() defined in libreplace.

From http://www.gnu.org/software/hello/manual/gnulib/dirfd.html

This function is missing on some platforms: AIX 7.1, HP-UX 11, OSF/1 5.1, Solaris 10, mingw.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Feb 26 04:19:55 CET 2011 on sn-devel-104

13 years agoRemoved unused code check_dos_char_slowly.
Jeremy Allison [Sat, 26 Feb 2011 01:25:20 +0000 (17:25 -0800)]
Removed unused code check_dos_char_slowly.