Michael Adam [Sun, 2 Nov 2008 20:38:57 +0000 (21:38 +0100)]
UNFINISHED - [s3]smbconf: add smbconf_flat backend
Michael
Michael Adam [Fri, 24 Oct 2008 11:53:53 +0000 (13:53 +0200)]
[s3]net conf: work on dyn_CONFIGSOURCE instead of reg:HKLM\software\samba\smbconf
This does in principle support all possible smbconf backends.
Write support is currently only available via the registry backend.
Example of calling this:
"net conf --configsource='reg:HKLM\software\samba\smbconf.1' list"
"net conf --configsource=registry list"
"net conf --configsource=reg: list"
"net conf --configsource=file:/etc/samba/smb.conf list"
"net conf --configsource=/etc/samba/smb.conf list"
Michael
Michael Adam [Fri, 24 Oct 2008 11:49:16 +0000 (13:49 +0200)]
[s3]net conf: support dangling parameters by specifying "" as section name.
for {get,set,del}parm
Michael
Michael Adam [Thu, 23 Oct 2008 09:21:46 +0000 (11:21 +0200)]
[s3]loadparm: Remove occurrences of config_backend / ConfigBackend
Michael
Michael Adam [Fri, 24 Oct 2008 08:40:47 +0000 (10:40 +0200)]
[s3]rpc_server: check for writeability of CONFIGSOURCE in Join/Unjoin.
instead of checking whether the config backend is registry.
Michael
Michael Adam [Fri, 24 Oct 2008 08:39:46 +0000 (10:39 +0200)]
[s3]net ads: check for writeability of CONFIGSOURCE in join/leave
instead of checking whether the config backend is registry.
Michael
Michael Adam [Fri, 24 Oct 2008 08:38:02 +0000 (10:38 +0200)]
[s3]libnet: open dyn_CONFIGSOURCE and check its write support in libnet_join
This replaces the old code that checked whether the config backend was
registry and opened the registry config explicitly if this was the case.
Now the code can copy with any writeable config backend given as --configsource
Michael
Michael Adam [Fri, 24 Oct 2008 08:13:17 +0000 (10:13 +0200)]
[s3]libnetapi: open dyn_CONFIGSOURCE and check for writeability in NetServerSetInfo_l_1005
This replaces the old code that checked whether the config backend was
registry and opened the registry config explicitly if this was the case.
Now the code can copy with any writeable config backend given as --configsource
Michael
Michael Adam [Thu, 23 Oct 2008 10:34:48 +0000 (12:34 +0200)]
[s3]net: specify --configsource instead of --configfile in the common help text
Michael
Michael Adam [Thu, 23 Oct 2008 10:33:06 +0000 (12:33 +0200)]
[s3]stf: test --configsource instead of --configfile in smbcontrol.py
Michael
Michael Adam [Thu, 23 Oct 2008 10:29:25 +0000 (12:29 +0200)]
[s3]test: use --configsource instead of --configfile in ntlm_auth tests
Michael
Michael Adam [Thu, 23 Oct 2008 10:28:40 +0000 (12:28 +0200)]
[s3]test: use --configsource instead of --configfile in selftest
Michael
Michael Adam [Wed, 22 Oct 2008 22:04:36 +0000 (00:04 +0200)]
[s3]popt: rename POPT_COMMON_CONFIGFILE to POPT_COMMON_CONFIGSOURCE
and extend it by a --configsource option, keeping --configfile as
a synonym (both call set_dyn_CONFIGSOURCE()).
Michael
Michael Adam [Thu, 17 Apr 2008 07:57:41 +0000 (09:57 +0200)]
[s3]popt: add a --configsource command line flag to popt_common_samba.
Keep --configfile as a synonym, also setting dyn_CONFIGSOURCE (!)
Michael
Michael Adam [Thu, 23 Oct 2008 22:34:39 +0000 (00:34 +0200)]
[s3]dynconfig: remove dyn_CONFIGFILE (we have dyn_CONFIGSOURCE now)
Michael
Michael Adam [Thu, 23 Oct 2008 22:22:38 +0000 (00:22 +0200)]
[s3]swat: use CONFIGSOURCE and possibly strip "file:" prefix
Michael
Michael Adam [Thu, 23 Oct 2008 22:07:42 +0000 (00:07 +0200)]
[s3]swat: move access to get_dyn_CONFIGFILE() to one wrapper function
Michael
Michael Adam [Wed, 22 Oct 2008 23:36:46 +0000 (01:36 +0200)]
[s3]popt_common_callback: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:29:33 +0000 (01:29 +0200)]
[s3]mkbuildoptins: print CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:27:31 +0000 (01:27 +0200)]
[s3]libsmbclient: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:23:04 +0000 (01:23 +0200)]
[s3]smbd: use CONFIGSOURCE when building srvsvc NetShareInfo/Add/Del commands
Michael
Michael Adam [Wed, 22 Oct 2008 23:21:36 +0000 (01:21 +0200)]
[s3]smbd: use CONFIGSOURCE when building command for api_RNetShareAdd
Michael
Michael Adam [Wed, 22 Oct 2008 23:19:27 +0000 (01:19 +0200)]
[s3]pam_smbpass.so: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:15:48 +0000 (01:15 +0200)]
[s3]libnss_wins: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:14:03 +0000 (01:14 +0200)]
[s3]rpcclient: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:12:55 +0000 (01:12 +0200)]
[s3]test_lp_load: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:10:12 +0000 (01:10 +0200)]
[s3]smbw_sample: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:08:30 +0000 (01:08 +0200)]
[s3]smbtree: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:07:50 +0000 (01:07 +0200)]
[s3]smbfilter: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:07:02 +0000 (01:07 +0200)]
[s3]smbpasswd: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:05:47 +0000 (01:05 +0200)]
[s3]smbcquotas: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:05:21 +0000 (01:05 +0200)]
[s3]smbcontrol: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:04:48 +0000 (01:04 +0200)]
[s3]smbcacls: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:04:17 +0000 (01:04 +0200)]
[s3]sharesec: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:03:45 +0000 (01:03 +0200)]
[s3]pdbedit: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:03:16 +0000 (01:03 +0200)]
[s3]nmblookup: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:02:36 +0000 (01:02 +0200)]
[s3]net ads: use CONFIGSOURCE instead of CONFIGFILE in messages
Michael
Michael Adam [Wed, 22 Oct 2008 23:02:03 +0000 (01:02 +0200)]
[s3]net: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 23:00:46 +0000 (01:00 +0200)]
[s3]eventlogadm: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:59:39 +0000 (00:59 +0200)]
[s3]smbtorture: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:59:11 +0000 (00:59 +0200)]
[s3]pdbtest: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:58:40 +0000 (00:58 +0200)]
[s3]msgtest: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:58:12 +0000 (00:58 +0200)]
[s3]masktest: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:57:29 +0000 (00:57 +0200)]
[s3]locktest2: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:56:51 +0000 (00:56 +0200)]
[s3]locktest: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:54:54 +0000 (00:54 +0200)]
[s3]libnet: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:53:36 +0000 (00:53 +0200)]
[s3]libsmbconf: use CONFIGSOURCE instead of CONFIGFILE in testsuite.
Michael
Michael Adam [Wed, 22 Oct 2008 22:50:42 +0000 (00:50 +0200)]
[s3]pidfile: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:42:55 +0000 (00:42 +0200)]
[s3]libnetapi: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:41:21 +0000 (00:41 +0200)]
[s3]ntlm_auth: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 22:40:53 +0000 (00:40 +0200)]
[s3]wbinfo: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 21:05:26 +0000 (23:05 +0200)]
[s3]smbstatus: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 24 Sep 2008 20:01:42 +0000 (22:01 +0200)]
[s3]util_str: add talloc versions of string_set and string_free.
In preparation of reducing mixed malloc/talloc usage in loadparm.
Michael
Michael Adam [Wed, 22 Oct 2008 20:37:09 +0000 (22:37 +0200)]
[s3]smbspool: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 14:03:12 +0000 (16:03 +0200)]
[s3]smbclient: use CONFIGSOURCE instead of CONFIGFILE
Michael
Michael Adam [Wed, 22 Oct 2008 13:59:34 +0000 (15:59 +0200)]
[s3]loadparm: remove lp_configfile() - use lp_configsource() instead!
Michael
Michael Adam [Wed, 22 Oct 2008 13:58:08 +0000 (15:58 +0200)]
[s3]torture/vfstest: use configsource (CONFIGSOURCE) instead of configfile (CONFIGFILE)
Michael
Michael Adam [Wed, 22 Oct 2008 13:56:18 +0000 (15:56 +0200)]
[s3]winbind: use configsource (CONFIGSOURCE) instead of configfile (CONFIGFILE)
Michael
Michael Adam [Wed, 22 Oct 2008 13:54:56 +0000 (15:54 +0200)]
[s3]nmbd: use configsource (CONFIGSOURCE) instead of configfile (CONFIGFILE)
Michael
Michael Adam [Wed, 22 Oct 2008 13:53:06 +0000 (15:53 +0200)]
[s3]smbd: use configsource (CONFIGSOURCE) instead of configfile (CONFIGFILE)
Michael
Michael Adam [Thu, 17 Apr 2008 08:40:30 +0000 (10:40 +0200)]
[s3]testparm: use CONFIGSOURCE instead of CONFIGFILE
and rename variable config_file to configsource
Michael
Michael Adam [Tue, 21 Oct 2008 16:34:56 +0000 (18:34 +0200)]
[s3]dynconfig: add a dyn_CONFIGSOURCE variable (more general than CONFIGFILE)
Michael
Michael Adam [Sun, 19 Oct 2008 23:18:41 +0000 (01:18 +0200)]
UNFINISHED - [s3]loadparm: use libsmbconf throughout.
This brings all possible config sources on an equal level.
essential changes:
* replace "config file" by "config source", keeping "config file" as a synonym
* replace the file_list by a sources_list
* remove the special handling process_registry_[shares/globals]
* remove lp_load_with_registry_shares : this is controlled now
by global_only and new parameter handle_messaging_sources to lp_load
that controls whether a source that requires messaging (like
registry in a ctdb-environment) will be processed.
* the servers now only load the globals from the config, even
from the text backend.
(TODO: add loading of text shares on demand by the server)
Michael
Michael Adam [Tue, 11 Nov 2008 09:28:40 +0000 (10:28 +0100)]
[s3]vfs_acl_tdb: fix the build.
ndr_push_struct_blob has a different signature in master as well.
Michael
Jeremy Allison [Tue, 11 Nov 2008 04:18:01 +0000 (20:18 -0800)]
Fix the build (ndr_pull_struct_blob has a different signature in master).
Jeremy.
Jeremy Allison [Tue, 11 Nov 2008 01:57:22 +0000 (17:57 -0800)]
Added vfs_acl_tdb.c module to do ACLs completely in userspace. Passes all of RAW-ACLS except for the last test which uses a non-POSIX chown. More testing/documentation to follow.
Jeremy.
Michael Adam [Mon, 10 Nov 2008 08:51:39 +0000 (09:51 +0100)]
[s3]make keytab filename argument mandatory to "net rpc vampire keytab"
This prevents unintended overwriting of the default path /etc/krb5.keytab (e.g.).
Michael
Andrew Bartlett [Mon, 10 Nov 2008 22:45:40 +0000 (09:45 +1100)]
It is not valid to talloc_free() ldb_dn_get_linearized()
Michael Adam [Mon, 10 Nov 2008 14:13:15 +0000 (15:13 +0100)]
[s3]build: prevent make errors for picky makes when $(EXTRA_ALL_TARGETS) is empty
picky make implementations don't like lines with only tabs in rules or dependencie
Michael
Michael Adam [Mon, 10 Nov 2008 14:10:37 +0000 (15:10 +0100)]
[s3]build: build cifs.upcall at build time instead of at install time.
This is to prevent problems with packaging scripts that pass CFLAGS
to make but not to make install...
Based on a patch for v3-2 by Martin Schwenke <martin@meltin.net>.
Michael
Kai Blin [Fri, 7 Nov 2008 08:13:26 +0000 (09:13 +0100)]
ntlm_auth: Put huge NTLMv2 blobs into extra_data on CRAP auth.
This fixes bug #5865
Jeremy Allison [Sun, 9 Nov 2008 07:06:21 +0000 (23:06 -0800)]
Remove debug code added in error.
Jeremy.
Jeremy Allison [Sun, 9 Nov 2008 06:57:57 +0000 (22:57 -0800)]
Fix a subtle logic bug in the adaption of se_create_child_secdesc(), pass RAW-ACL inheritance tests. Only access masks for SD get/set left to fix.
Jeremy.
Volker Lendecke [Fri, 7 Nov 2008 20:02:11 +0000 (21:02 +0100)]
Make "construct_reply_common" static
Volker Lendecke [Fri, 7 Nov 2008 19:38:05 +0000 (20:38 +0100)]
Do not write into inbuf for the transs request
Instead, fix up the outbuf in send_xx_reply. In those routines, we know
what we are returning.
Volker Lendecke [Fri, 7 Nov 2008 11:29:24 +0000 (12:29 +0100)]
Remove direct inbuf refs from send_trans_reply
Volker Lendecke [Thu, 6 Nov 2008 19:16:04 +0000 (20:16 +0100)]
change CHECK_READ to use smb_request instead of inbuf
Volker Lendecke [Thu, 6 Nov 2008 11:14:08 +0000 (12:14 +0100)]
Remove a direct inbuf reference from reply_nttrans()
Volker Lendecke [Wed, 5 Nov 2008 18:19:17 +0000 (19:19 +0100)]
Remove a direct inbuf reference (should have been removed with
8987641d...)
Volker Lendecke [Wed, 5 Nov 2008 18:16:06 +0000 (19:16 +0100)]
Remove the change to the user context in process_blocking_lock_queue()
Volker Lendecke [Tue, 4 Nov 2008 21:04:58 +0000 (22:04 +0100)]
Converting notify.c to store a request, not an inbuf
Stefan Metzmacher [Sat, 8 Nov 2008 08:15:51 +0000 (09:15 +0100)]
s3: add missing librpc/gen_ndr/ndr_dom_sid.h
metze
Stefan Metzmacher [Fri, 7 Nov 2008 15:49:52 +0000 (16:49 +0100)]
s4: dsdb/schema: fix the equality and comment of DN+String syntax
metze
Stefan Metzmacher [Fri, 7 Nov 2008 22:32:28 +0000 (23:32 +0100)]
s3: make idl
metze
Stefan Metzmacher [Fri, 7 Nov 2008 09:49:59 +0000 (10:49 +0100)]
security.idl: sometimes ACEs have some padding at the end
metze
Stefan Metzmacher [Fri, 7 Nov 2008 22:16:27 +0000 (23:16 +0100)]
s4: use toplevel security.idl
metze
Stefan Metzmacher [Fri, 7 Nov 2008 20:31:04 +0000 (21:31 +0100)]
s3: security.idl: split of dom_sid stuff into dom_sid.idl
And use the toplevel ndr_sec_helper.c
metze
Stefan Metzmacher [Sat, 8 Nov 2008 07:01:19 +0000 (08:01 +0100)]
s4: fix samba4.samba3sam.python test
metze
Stefan Metzmacher [Fri, 7 Nov 2008 21:41:12 +0000 (22:41 +0100)]
librpc/ndr: move ndr_sec_helper.c to the toplevel
metze
Stefan Metzmacher [Fri, 7 Nov 2008 21:33:45 +0000 (22:33 +0100)]
s4: ndr_sec_helper: remove unused include
metze
Stefan Metzmacher [Fri, 7 Nov 2008 16:52:01 +0000 (17:52 +0100)]
s4: security.idl: for now move server_id also to dom_sid.idl
We should move server_id somewhere else...
metze
Stefan Metzmacher [Fri, 7 Nov 2008 15:45:37 +0000 (16:45 +0100)]
s4: security.idl: split of dom_sid stuff into dom_sid.idl
This prepares having a shared security.idl file
metze
Jeremy Allison [Fri, 7 Nov 2008 07:29:20 +0000 (23:29 -0800)]
If we didn't inherit any ACE's the ACE pointer should be NULL.
Jeremy.
Jeremy Allison [Fri, 7 Nov 2008 04:48:13 +0000 (20:48 -0800)]
Make us clean under valgrind --leak-check=full by using talloc_autofree_context() instead of NULL.
Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting
to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should
be deleted when their parent context is deleted, so freeing them at some arbitrary point later
will be a double-free.
Jeremy.
Herb Lewis [Fri, 7 Nov 2008 04:40:20 +0000 (20:40 -0800)]
Convert to use VFS layer.
Jeremy Allison [Fri, 7 Nov 2008 02:53:00 +0000 (18:53 -0800)]
Add wrapper str_list_make_v3() to replace the old S3 behavior of
str_list_make(). From Dan Sledz <dan.sledz@isilon.com>:
In samba 3.2 passing NULL or an empty string returned NULL.
In master, it now returns a list of length 1 with the first string set
to NULL (an empty list).
Jeremy.
Günther Deschner [Thu, 6 Nov 2008 22:25:11 +0000 (23:25 +0100)]
s4-test: skip netr_DatabaseRedo test.
Guenther
Volker Lendecke [Sun, 26 Oct 2008 17:56:29 +0000 (18:56 +0100)]
For proxied named pipes, connect to np/<pipe_name> and send auth info
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Wed, 29 Oct 2008 11:20:02 +0000 (12:20 +0100)]
s3: build ndr_named_pipe_auth.c
metze
Stefan Metzmacher [Thu, 6 Nov 2008 09:19:20 +0000 (10:19 +0100)]
s3: rpc: let serverinfo_to_SamInfo3() work with no pipe_session_key
metze