Michael Adam [Thu, 22 Jan 2009 16:59:18 +0000 (17:59 +0100)]
s3:idmap: remove unused method set_id_hwm from idmap API
Michael
Michael Adam [Thu, 22 Jan 2009 16:56:19 +0000 (17:56 +0100)]
s3:idmap: remove unused alloc method get_id_hwm from idmap API
Michael
Michael Adam [Thu, 22 Jan 2009 14:52:34 +0000 (15:52 +0100)]
s3:idmap: remove unused method dump_data() from the idmap API
Michael
Michael Adam [Thu, 22 Jan 2009 13:44:24 +0000 (14:44 +0100)]
s3:idmap: remove the remove_mapping method from API and backends
Michael
Michael Adam [Thu, 22 Jan 2009 13:38:21 +0000 (14:38 +0100)]
s3:idmap: remove unused idmap_remove_mapping().
Michael
Michael Adam [Thu, 22 Jan 2009 13:36:51 +0000 (14:36 +0100)]
s4: remove REMOVE_MAPPING from wb_samba3_protocol
Michael
Michael Adam [Thu, 22 Jan 2009 13:34:50 +0000 (14:34 +0100)]
s3:winbind: remove the method REMOVE_MAPPING from winbind's API
Michael
Michael Adam [Thu, 22 Jan 2009 13:31:55 +0000 (14:31 +0100)]
s3:idmap: remove unused idmap_set_mapping().
Michael
Michael Adam [Thu, 22 Jan 2009 13:30:25 +0000 (14:30 +0100)]
s4: remove SET_MAPPING from wb_samba3_protocol
Michael
Michael Adam [Thu, 22 Jan 2009 13:29:15 +0000 (14:29 +0100)]
s3:winbind: remove the method SET_MAPPING from winbind's API
Michael
Michael Adam [Thu, 22 Jan 2009 12:57:21 +0000 (13:57 +0100)]
libwbclient: unimplement wbcRemoveGidMapping()
Michael
Michael Adam [Thu, 22 Jan 2009 12:56:09 +0000 (13:56 +0100)]
libwbclient: unimplement wbcRemoveUidMapping()
Michael
Michael Adam [Thu, 22 Jan 2009 12:54:03 +0000 (13:54 +0100)]
libwbclient: unimplement wbcSetGidMapping()
Michael
Michael Adam [Thu, 22 Jan 2009 12:51:53 +0000 (13:51 +0100)]
libwbclient: unimplement wbcSetUidMapping()
Michael
Michael Adam [Thu, 22 Jan 2009 12:49:42 +0000 (13:49 +0100)]
s3:idmap: remove unused idmap_set_gid_hwm()
Michael
Michael Adam [Thu, 22 Jan 2009 12:49:06 +0000 (13:49 +0100)]
s3:idmap: remove unused idmap_set_uid_hwm()
Michael
Michael Adam [Thu, 22 Jan 2009 12:46:25 +0000 (13:46 +0100)]
s4: remove SET_HWM and SET_DUAL_HWM from wb_samba3_protocol
Michael
Michael Adam [Sun, 27 Jun 2010 22:34:29 +0000 (00:34 +0200)]
s3:winbind: remove SET_HWM from winbind's API.
Michael Adam [Thu, 22 Jan 2009 12:39:33 +0000 (13:39 +0100)]
libwbclient: unimplement wbcSetGidHwm()
Michael
Michael Adam [Thu, 22 Jan 2009 12:37:11 +0000 (13:37 +0100)]
libwbclient: unimplement wbcSetUidHwm()
Michael
Michael Adam [Thu, 22 Jan 2009 12:33:54 +0000 (13:33 +0100)]
s3:net: rewrite "net idmap restore" using dbwrap
This removes the use of libwbclient from "net idmap".
This detects the idmap backend from the current smb.conf
and stores the id mapping tables in the corresponding data bases.
Currently, only tdb and tdb2 backends are supported.
Support for the ldap backend may be implemented later.
Michael Adam [Mon, 14 Jun 2010 10:25:11 +0000 (12:25 +0200)]
s3:net: change "net idmap dump" to use dbwrap instead of direct tdb access
This way, it will also work in a samba-ctdb cluster.
Michael Adam [Thu, 22 Jan 2009 11:20:46 +0000 (12:20 +0100)]
s3:net sam provision: compose sid before getting uid for Guest
Michael
Michael Adam [Thu, 22 Jan 2009 11:12:43 +0000 (12:12 +0100)]
s3:net sam provision: allocate the uid after composing the sid for Administrator
Michael
Michael Adam [Thu, 22 Jan 2009 11:01:16 +0000 (12:01 +0100)]
s3:pdb_ldap: move some code in ldapsam_create_dom_group()
to make the flow more similar to ldapsam_create_user().
This prepares for calling winbind_sid_to_gid() instead of
winbind_allocate_gid(): we need the group_sid for this...
Michael
Michael Adam [Thu, 22 Jan 2009 10:10:01 +0000 (11:10 +0100)]
s3:groupdb: allocate a gid after allocating a rid in pdb_default_create_alias()
Michael
Michael Adam [Tue, 1 Jun 2010 12:03:32 +0000 (14:03 +0200)]
s3:idmap_tdb2: fix a debug message
Michael Adam [Fri, 13 Aug 2010 23:54:37 +0000 (01:54 +0200)]
s3:test: add a new "valgrindtestenv" target, similar to gdbtestenv
this runs the daemins in xterm under valgrind instead of in gdb
Michael Adam [Fri, 13 Aug 2010 23:52:41 +0000 (01:52 +0200)]
s3:gdbtestenv: also start an xterm with nmbd. and start winbindd before smbd.
Michael Adam [Fri, 13 Aug 2010 23:49:52 +0000 (01:49 +0200)]
s3:gdbtestenv: also set the xterm's window title appropriately
Michael Adam [Fri, 13 Aug 2010 23:48:09 +0000 (01:48 +0200)]
s3:gdbtestenv: print the server's name in the icontitle instead of "server"
Michael Adam [Fri, 13 Aug 2010 15:29:07 +0000 (17:29 +0200)]
pidl: fix printing of server side ndr request debug messages
The macros NDR_PRINT_IN_DEBUG and NDR_PRINT_OUT_DEBUG are made for
the client side. For the server side, the NDR_SET_VALUES flag needs
to be added for the OUT struct and not for the IN struct, otherwise,
the OUT part can print uninitialized data and the IN part may
recalculate string lengths illegally.
Volker Lendecke [Fri, 13 Aug 2010 20:51:29 +0000 (22:51 +0200)]
s3: Fix some error messages
Jeremy Allison [Fri, 13 Aug 2010 17:47:08 +0000 (10:47 -0700)]
Eliminate any chance of a class of "uninitialized auto variable" errors.
Jeremy.
Rusty Russell [Fri, 13 Aug 2010 16:43:26 +0000 (02:13 +0930)]
tdb: workaround starvation problem in locking entire database.
We saw tdb_lockall() take 71 seconds under heavy load; this is because Linux
(at least) doesn't prevent new small locks being obtained while we're waiting
for a big log.
The workaround is to do divide and conquer using non-blocking chainlocks: if
we get down to a single chain we block. Using a simple test program where
children did "hold lock for 100ms, sleep for 1 second" the time to do
tdb_lockall() dropped signifiantly. There are ln(hashsize) locks taken in
the contended case, but that's slow anyway.
More analysis is given in my blog at http://rusty.ozlabs.org/?p=120
This may also help transactions, though in that case it's the initial
read lock which uses this gradual locking routine; the update-to-write-lock
code is separate and still tries to update in one go.
Even though ABI doesn't change, minor version bumped so behavior change
can be easily detected.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Günther Deschner [Tue, 10 Aug 2010 09:33:03 +0000 (11:33 +0200)]
s3-selftest: move make test to selftest.
The old "make test" can be still called as "make oldtest".
Guenther
Günther Deschner [Fri, 13 Aug 2010 16:28:48 +0000 (18:28 +0200)]
s3-selftest: fix testparm tests as non-root.
Thanks to Andreas for pointing this out.
Guenther
Andreas Schneider [Tue, 10 Aug 2010 11:45:55 +0000 (13:45 +0200)]
s3-smbd: Publish nt printers.
Reloading of the printers requires rpc services up and running! The
first call in reload_services will be skipped.
Signed-off-by: Simo Sorce <idra@samba.org>
Andreas Schneider [Tue, 10 Aug 2010 10:29:27 +0000 (12:29 +0200)]
s3-smbd: Move rpc services init to smbd parent.
The move to the parent makes it possible to use an internal rpc pipe
really early and as we migrated serveral parts of samba to rpc function
this is required. This should speed up the fork of a smbd a bit cause
the rpc services are already running.
We still have several problems here which aren't solved. We don't have a
dependency tree here. For example we have to make sure that the registry
is initialized before we can use the winreg pipe. The spoolss server
requires winreg, so we have to start winreg before we can start the
spoolss server. I'm sure there are more dependencies.
Signed-off-by: Simo Sorce <idra@samba.org>
Andreas Schneider [Tue, 10 Aug 2010 10:28:46 +0000 (12:28 +0200)]
s3-smbd: Regroup some init functions.
Signed-off-by: Simo Sorce <idra@samba.org>
Andreas Schneider [Mon, 9 Aug 2010 13:57:38 +0000 (15:57 +0200)]
s3-smbd: Fixed indent.
Signed-off-by: Simo Sorce <idra@samba.org>
Andreas Schneider [Mon, 9 Aug 2010 12:50:12 +0000 (14:50 +0200)]
s3-loadparm: Added some comments to lp_load_ex calls.
Signed-off-by: Simo Sorce <idra@samba.org>
Andreas Schneider [Mon, 9 Aug 2010 12:49:08 +0000 (14:49 +0200)]
s3-smbd: Cleanup the order of the init functions.
Signed-off-by: Simo Sorce <idra@samba.org>
Andreas Schneider [Mon, 9 Aug 2010 12:47:55 +0000 (14:47 +0200)]
s3-smbd: Make sure the event context is initialized.
Signed-off-by: Simo Sorce <idra@samba.org>
Günther Deschner [Fri, 13 Aug 2010 14:01:56 +0000 (16:01 +0200)]
s3-build: remove pointless RPC_PARSE_OBJ2.
Guenther
Günther Deschner [Fri, 13 Aug 2010 14:02:28 +0000 (16:02 +0200)]
s3-waf: remove pointless RPC_PARSE_SRC2.
Guenther
Volker Lendecke [Fri, 13 Aug 2010 13:08:38 +0000 (15:08 +0200)]
s3: Replace some cli_errstr calls by nt_errstr
Günther Deschner [Fri, 13 Aug 2010 13:24:00 +0000 (15:24 +0200)]
s3-libnet: also remove libnet/libnet_samsync_keytab.c.orig.
Guys, what are you doing here ? ;-)
Guenther
Günther Deschner [Fri, 13 Aug 2010 13:22:06 +0000 (15:22 +0200)]
s3-libnet: remove source3/libnet/libnet_join.c.orig, added by a previous commit.
Guenther
Günther Deschner [Fri, 13 Aug 2010 13:12:29 +0000 (15:12 +0200)]
s3-dcerpc: fix build warning seen with -O3.
"warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false"
Guenther
Andrew Bartlett [Mon, 9 Aug 2010 22:25:02 +0000 (08:25 +1000)]
s3-krb5 Only build ADS support if arcfour-hmac-md5 is available
Modern Kerberos implementations have either defines or enums for these
key types, which makes doing #ifdef difficult. This shows up in files
such as libnet_samsync_keytab.c, the bulk of which is not compiled on
current Fedora 12, for example.
The downside is that this makes Samba unconditionally depend on the
arcfour-hmac-md5 encryption type at build time. We will no longer
support libraries that only support the DES based encryption types.
However, the single-DES types that are supported in common with AD are
already painfully weak - so much so that they are disabled by default
in modern Kerberos libraries.
If not found, ADS support will not be compiled in.
This means that our 'net ads join' will no longer set the
ACB_USE_DES_KEY_ONLY flag, and we will always try to use
arcfour-hmac-md5.
A future improvement would be to remove the use of the DES encryption
types totally, but this would require that any ACB_USE_DES_KEY_ONLY
flag be removed from existing joins.
Andrew Bartlett
Signed-off-by: Simo Sorce <idra@samba.org>
Andrew Bartlett [Tue, 10 Aug 2010 02:00:29 +0000 (12:00 +1000)]
s3:libnet Add other required headers for libnet_samsync_keytab.c
Due to missing defines in modern kerberos libraries, this code was
not compiled and so this wasn't noticed.
Andrew Bartlett
Signed-off-by: Simo Sorce <idra@samba.org>
Björn Jacke [Fri, 13 Aug 2010 12:53:22 +0000 (14:53 +0200)]
tdb: add TDB_DEPS variable filled with required libraries
This is required for Solaris, which needs to link in librt to make use of
fdatasync().
Günther Deschner [Fri, 13 Aug 2010 11:33:40 +0000 (13:33 +0200)]
s3-build: pointless to link in libads and dcutils into smbcacls.
Guenther
Günther Deschner [Thu, 12 Aug 2010 15:08:08 +0000 (17:08 +0200)]
s3-build: separate out libads_printer.
Guenther
Günther Deschner [Thu, 12 Aug 2010 15:04:12 +0000 (17:04 +0200)]
s3-waf: separate out libads_printer.
Guenther
Günther Deschner [Thu, 12 Aug 2010 13:43:03 +0000 (15:43 +0200)]
s3-selftest: add testparm tests to selftest.
Guenther
Jeremy Allison [Thu, 12 Aug 2010 21:24:01 +0000 (14:24 -0700)]
Fix bug #7617 - smbd coredump due to uninitialized variables in the performance counter code.
In the file rpc_server.c, function _winreg_QueryValue()
uint8_t *outbuf
Should be :
uint8_t *outbuf = NULL;
As it is later freed by
if (free_buf) SAFE_FREE(outbuf);
in some cases, this frees the unintialized outbuf, which causes a coredump.
Jim McDonough [Thu, 12 Aug 2010 21:51:02 +0000 (17:51 -0400)]
s3-libnet: fix bug #6364: Pull realm from supplied username on libnet join
Günther Deschner [Thu, 12 Aug 2010 14:51:24 +0000 (16:51 +0200)]
s3-waf: fix the build.
Guenther
Björn Jacke [Thu, 12 Aug 2010 14:18:45 +0000 (16:18 +0200)]
s3: fall back to cups-config for underlinked libs
some OpenBSD systems have underlinked cups libraries. If linking against cups
alone fails, try to link against all the cups-config --libs cruft, which we
usually don't want. (bugzila #7244)
Björn Jacke [Mon, 9 Aug 2010 16:37:58 +0000 (18:37 +0200)]
Revert "s3: Use cups-config --libs"
This reverts commit
911db761148. This was introduced in
18f1f5b56b140
intentionally.
Günther Deschner [Thu, 12 Aug 2010 14:28:10 +0000 (16:28 +0200)]
ntlmssp: fix unitialized variable in ntlmssp_server_postauth().
Guenther
Stefan Metzmacher [Thu, 5 Aug 2010 19:01:25 +0000 (21:01 +0200)]
pidl:Samba3/ClientNDR: implement rpccli_ stubs on top of dcerpc_ stubs
metze
Stefan Metzmacher [Fri, 6 Aug 2010 10:20:07 +0000 (12:20 +0200)]
s3:Makefile: link in dcerpc client stubs
metze
Stefan Metzmacher [Fri, 6 Aug 2010 09:50:09 +0000 (11:50 +0200)]
s3:winbindd: add wbint dcerpc_binding_handle backend
metze
Stefan Metzmacher [Sat, 7 Aug 2010 12:37:21 +0000 (14:37 +0200)]
s3:rpc_server: add rpc_pipe_open_internal dcerpc_binding_handle backend
metze
Stefan Metzmacher [Fri, 6 Aug 2010 09:30:51 +0000 (11:30 +0200)]
s3:rpc_client: add dcerpc_binding_handle backend
metze
Stefan Metzmacher [Sat, 7 Aug 2010 12:48:57 +0000 (14:48 +0200)]
s4:librpc/rpc: make struct dcerpc_binding_handle private
metze
Stefan Metzmacher [Tue, 10 Aug 2010 11:27:12 +0000 (13:27 +0200)]
pidl:Samba4/NDR/Client: add sync dcerpc_pipe based stubs as compat for OpenChange
This will activate the compat wrappers for all functions of an interface:
#define DCERPC_IFACE_MYPROTO_COMPAT 1
#include <ndr_myproto_c.h>
This will activates the compat wrappers just for specific functions:
#define DCERPC_CALL_MYFN1_COMPAT 1
#define DCERPC_CALL_MYFN2_COMPAT 1
#include <ndr_myproto_c.h>
metze
Stefan Metzmacher [Thu, 5 Aug 2010 14:10:52 +0000 (16:10 +0200)]
pidl:Samba4/NDR/Client: add non struct base dcerpc_binding_handle client stubs
metze
Stefan Metzmacher [Thu, 5 Aug 2010 11:29:56 +0000 (13:29 +0200)]
pidl:Samba4/NDR/Client: convert code to $self->pidl()
metze
Stefan Metzmacher [Thu, 5 Aug 2010 10:59:46 +0000 (12:59 +0200)]
pidl:Samba4/NDR/Client: s/interface/if/
metze
Stefan Metzmacher [Thu, 5 Aug 2010 16:22:02 +0000 (18:22 +0200)]
pidl:Samba4/NDR/Client: make use of the new dcerpc_binding_handle_call() infrastructure
metze
Stefan Metzmacher [Wed, 10 Mar 2010 16:56:10 +0000 (17:56 +0100)]
pidl:Samba4/NDR/Client: remove old dcerpc_pipe based sync stubs
They're unused in Samba and only used by OpenChange.
I'll add a compat functions for OpenChange later.
metze
Stefan Metzmacher [Thu, 5 Aug 2010 16:18:30 +0000 (18:18 +0200)]
s4:librpc/rpc: add dcerpc_binding_handle dcerpc_pipe backend
metze
Stefan Metzmacher [Thu, 5 Aug 2010 16:14:04 +0000 (18:14 +0200)]
librpc/rpc: add dcerpc_binding_handle abstration
metze
Stefan Metzmacher [Tue, 10 Aug 2010 13:11:02 +0000 (15:11 +0200)]
s4:librpc/rpc: fix dcerpc_log_packet() prototype
metze
Stefan Metzmacher [Thu, 12 Aug 2010 08:50:47 +0000 (10:50 +0200)]
s4:librpc/rpc: autodetect the need of async call logic
metze
Stefan Metzmacher [Tue, 10 Aug 2010 12:29:42 +0000 (14:29 +0200)]
pidl:Samba3/ClientNDR: ignore "todo" functions
metze
Stefan Metzmacher [Thu, 12 Aug 2010 07:31:38 +0000 (09:31 +0200)]
testprogs/midltests: add some example IDL files and there midltests.exe output
metze
Volker Lendecke [Thu, 12 Aug 2010 10:55:11 +0000 (12:55 +0200)]
s3: Reduce the load on the echo handler
If the parent is fast enough, the echo handler should not step in. When the
socket becomes readable, the echo handler goes to sleep for a second. If within
that second, the parent has picked up the SMB request from the net, the echo
handler will just go back to select().
Volker Lendecke [Thu, 12 Aug 2010 10:48:43 +0000 (12:48 +0200)]
s3: Slightly simplify the logic in smbd_server_echo_handler
Volker Lendecke [Thu, 12 Aug 2010 10:48:30 +0000 (12:48 +0200)]
s3: Slightly simplify the logic in smbd_server_connection_handler
Volker Lendecke [Thu, 12 Aug 2010 10:25:41 +0000 (12:25 +0200)]
s3: ?true:false is a *bit* pointless :-)
Volker Lendecke [Tue, 10 Aug 2010 17:41:38 +0000 (19:41 +0200)]
Fix a typo
James Peach [Fri, 6 Aug 2010 22:21:31 +0000 (15:21 -0700)]
smbtorture: Don't crash RAW-QFILEINFO if there's no alternate name.
James Peach [Fri, 6 Aug 2010 22:25:12 +0000 (15:25 -0700)]
smbtorture: Make BASE-OPENATTR report a failure if it fails.
Günther Deschner [Wed, 11 Aug 2010 10:45:51 +0000 (12:45 +0200)]
s3-waf: fix the waf build with more recent MIT krb5 libs.
(such as MIT krb5 1.7.1 on fedora 13).
This whole area needs more work and love later, for now it builds at least.
Kai, please check.
Guenther
Kamen Mazdrashki [Mon, 9 Aug 2010 22:08:19 +0000 (01:08 +0300)]
s4-test: Implement DRS-RPC-msDSIntId test case
Kamen Mazdrashki [Tue, 10 Aug 2010 18:05:47 +0000 (21:05 +0300)]
s4-dsdb: fix attributes_by_msDS_IntId index sorting
Kamen Mazdrashki [Sat, 7 Aug 2010 09:52:07 +0000 (12:52 +0300)]
s4-test: Move dsdb_schema loading into public function
I will use this function for tests implementation later
Kamen Mazdrashki [Thu, 5 Aug 2010 01:55:04 +0000 (04:55 +0300)]
s4-test: Move RPC-DSSYNC test in DRS-RPC test suite
Kamen Mazdrashki [Thu, 5 Aug 2010 15:37:24 +0000 (18:37 +0300)]
s4-test: Move dssync.c to torture/drs/rpc
Kamen Mazdrashki [Thu, 5 Aug 2010 15:35:35 +0000 (18:35 +0300)]
s4-test: strip trailing white-spaces
Matthias Dieter Wallnöfer [Tue, 10 Aug 2010 19:01:11 +0000 (21:01 +0200)]
s4:objectclass LDB module - weak the check for the "rIDSet" delete constraint
Perform it only when a "rIDSet" does exist. Requested by ekacnet for
"upgradeprovision".
Matthias Dieter Wallnöfer [Mon, 9 Aug 2010 17:52:00 +0000 (19:52 +0200)]
s4:dsdb/common/util.c - provide a call which returns the forest function level
Sooner or later we'll need this too since not all operations depend only on the
current's domain function level (see the MS-ADTS docs).
Matthias Dieter Wallnöfer [Mon, 9 Aug 2010 17:48:03 +0000 (19:48 +0200)]
libds/common/flags.h - fix a comment's typo
Matthias Dieter Wallnöfer [Mon, 9 Aug 2010 17:45:45 +0000 (19:45 +0200)]
s4:dsdb/common/util.c - use LDB constants whenever possible
Andrew Bartlett [Fri, 6 Aug 2010 11:31:21 +0000 (21:31 +1000)]
libcli/auth Make the source3/ implementation of the NTLMSSP server common
This means that the core logic (but not the initialisation) of the
NTLMSSP server is in common, but uses different authentication backends.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>