]>
git.ipfire.org Git - thirdparty/samba.git/log
Michael Adam [Tue, 8 Apr 2008 15:53:45 +0000 (17:53 +0200)]
libsmbconf: testsuite: set the debufg fd to stderr.
...so that we see some debug output
Michael
Michael Adam [Tue, 8 Apr 2008 15:52:46 +0000 (17:52 +0200)]
libsmbconf: testsuite: use POPT_COMMON_SAMBA instead of POPT_COMMON_CONFIGFILE
so we can for instance set the debug level on the command line.
Michael
Michael Adam [Tue, 8 Apr 2008 15:51:57 +0000 (17:51 +0200)]
libsmbconf: testsuite: add talloc_stackframe to main().
Michael
Michael Adam [Tue, 8 Apr 2008 10:07:35 +0000 (12:07 +0200)]
libsmbconf: testsuite: add support for "--configfile" option.
Michael
Michael Adam [Tue, 8 Apr 2008 09:02:17 +0000 (11:02 +0200)]
libsmbconf: add testsuite to the library.
Currently only the init function is tested, more tests to come...
Michael
Michael Adam [Tue, 8 Apr 2008 08:16:03 +0000 (10:16 +0200)]
libsmbconf: add talloc context to the get_includes methods.
Michael
Michael Adam [Mon, 7 Apr 2008 23:56:32 +0000 (01:56 +0200)]
libsmbconf: add get_includes() and set_includes() to the API.
Includes have to get a special treatment, at least for registry.
Includes are not like other smbconf parameters: they are some kind
of metainformation. "include" has two effects when stated twice so
it can not be stored boldly into registry, since there can only be
one value named "include" in registry per key.
I will provide special handling for includes for the registry backend.
This patch provides the necessary methods in the smbconf API.
Michael
Michael Adam [Mon, 7 Apr 2008 20:49:11 +0000 (22:49 +0200)]
libsmbconf: activate the verbatim-flag in text backend: store parameters as they come.
with verbatim == true, parameters are stored as they come from the input file,
duplicates are listed multiple times, etc.
Michael
Michael Adam [Mon, 7 Apr 2008 20:43:33 +0000 (22:43 +0200)]
libsmbconf: pass txt_private_data instead of only cache to do_parameter/section
in preparation of using the verbatim flag.
Michael
Michael Adam [Mon, 7 Apr 2008 21:28:48 +0000 (23:28 +0200)]
libsmbconf: load file after special initialization
otherwise verbatim parameter can have no effect.
Michael
Michael Adam [Mon, 7 Apr 2008 20:33:01 +0000 (22:33 +0200)]
libsmbconf: add a "verbatim" parameter to smbconf_init_txt_simple().
Michael
Michael Adam [Mon, 7 Apr 2008 13:29:11 +0000 (15:29 +0200)]
libsmbconf: reformat smbconf_format_registry_value() - indentations/tabs
Michael
Michael Adam [Mon, 7 Apr 2008 13:15:57 +0000 (15:15 +0200)]
libsmbconf: untangle assignment and test in for-loop condition.
Michael
Michael Adam [Mon, 7 Apr 2008 13:12:44 +0000 (15:12 +0200)]
libsmbconf: fix a comment
Michael
Michael Adam [Mon, 7 Apr 2008 22:08:41 +0000 (00:08 +0200)]
libsmbconf: search from the back when getting parameter from text backend
so we make sure to always deliver the value last read.
Michael
Michael Adam [Mon, 7 Apr 2008 22:03:39 +0000 (00:03 +0200)]
libsmbconf: add smbconf_reverse_find_in_array() to find last occurence of a string.
Michael
Michael Adam [Mon, 7 Apr 2008 13:09:28 +0000 (15:09 +0200)]
libsmbconf: move smbconf_find_in_array() to smbconf_util.c
Michael
Michael Adam [Mon, 7 Apr 2008 13:06:41 +0000 (15:06 +0200)]
libsmbconf: reorder prototypes in smbconf_private.h
Michael
Michael Adam [Mon, 7 Apr 2008 13:05:33 +0000 (15:05 +0200)]
libsmbconf: rename smbconf_txt_find_in_array() to smbconf_find_in_array()
Michael
Michael Adam [Mon, 7 Apr 2008 13:01:44 +0000 (15:01 +0200)]
libsmbconf: move utility functions from main module to new smbconf_util.c
Michael
Michael Adam [Wed, 9 Apr 2008 13:36:55 +0000 (15:36 +0200)]
charcnv: add talloc_strdup_lower() - talloc variant of strdup_lower().
Michael
Michael Adam [Tue, 8 Apr 2008 15:44:40 +0000 (17:44 +0200)]
registry: add support for REG_MULTI_SZ to registry_push_value().
This enables us to fetch multi_sz values from registry...
Michael
Michael Adam [Wed, 9 Apr 2008 22:44:25 +0000 (00:44 +0200)]
vlp: fix an implicit cast compile warning.
Michael
Michael Adam [Wed, 9 Apr 2008 16:54:20 +0000 (18:54 +0200)]
net: don't process net_registry_util.c with make proto
it has its own herader net_registry_util.h
Michael
Michael Adam [Wed, 9 Apr 2008 12:30:18 +0000 (14:30 +0200)]
net rpc registry: add getvalue command.
This is the same as already implemented for "net registry".
usage: net rpc registry getvalue <key> <valuename>
Michael
Michael Adam [Wed, 9 Apr 2008 10:31:05 +0000 (12:31 +0200)]
net registry: add a getvalue subcommand that prints a single given value.
usage: "net registry getvalue <keyname> <valuename>"
Michael
Michael Adam [Wed, 9 Apr 2008 10:29:34 +0000 (12:29 +0200)]
net (registry util): refactor printing of value without name out.
This renames print_registry_value() to print_registry_value_with_name().
The new function is called print_registry_value().
Michael
Karolin Seeger [Wed, 9 Apr 2008 14:14:04 +0000 (16:14 +0200)]
Fix typos.
Karolin
Günther Deschner [Wed, 9 Apr 2008 11:50:30 +0000 (13:50 +0200)]
Add NetUserEnum example.
Guenther
Günther Deschner [Wed, 9 Apr 2008 11:47:51 +0000 (13:47 +0200)]
Add NetUserEnum to libnetapi.
Guenther
Günther Deschner [Wed, 9 Apr 2008 11:42:48 +0000 (13:42 +0200)]
Re-run make idl.
Guenther
Günther Deschner [Wed, 9 Apr 2008 11:41:54 +0000 (13:41 +0200)]
Add NetUserEnum to libnetapi IDL.
Guenther
Günther Deschner [Wed, 9 Apr 2008 11:38:39 +0000 (13:38 +0200)]
Add Add NetUserDel example.
Guenther
Günther Deschner [Wed, 9 Apr 2008 11:35:49 +0000 (13:35 +0200)]
Add NetUserDel to libnetapi.
Guenther
Günther Deschner [Wed, 9 Apr 2008 11:32:19 +0000 (13:32 +0200)]
Re-run make idl.
Guenther
Günther Deschner [Wed, 9 Apr 2008 11:31:53 +0000 (13:31 +0200)]
Add NetUserDel to libnetapi IDL.
Guenther
Günther Deschner [Wed, 9 Apr 2008 11:28:30 +0000 (13:28 +0200)]
Add NetUserAdd example.
Guenther
Günther Deschner [Wed, 9 Apr 2008 10:38:22 +0000 (12:38 +0200)]
Add NetUserAdd to libnetapi.
Guenther
Günther Deschner [Wed, 9 Apr 2008 10:36:02 +0000 (12:36 +0200)]
Re-run make idl.
Guenther
Günther Deschner [Wed, 9 Apr 2008 10:35:09 +0000 (12:35 +0200)]
Add NetUserAdd to libnetapi IDL.
Guenther
Günther Deschner [Wed, 9 Apr 2008 11:17:42 +0000 (13:17 +0200)]
Fix parameters string for rpc_trustdom_add_internals().
Guenther
Volker Lendecke [Wed, 9 Apr 2008 07:48:59 +0000 (09:48 +0200)]
Try anonymous session setup
... if there's no trust password
Attempt to fix bug 5350
Volker Lendecke [Wed, 9 Apr 2008 06:40:59 +0000 (08:40 +0200)]
Remove reference to pointless socket options
Jeremy Allison [Tue, 8 Apr 2008 22:08:47 +0000 (15:08 -0700)]
Check x_fflush returns.
Jeremy.
Günther Deschner [Tue, 8 Apr 2008 21:09:24 +0000 (23:09 +0200)]
Fix lsa_QueryTrustedDomainInfo caller.
Guenther
Günther Deschner [Tue, 8 Apr 2008 21:04:22 +0000 (23:04 +0200)]
Re-run make idl.
Guenther
Günther Deschner [Tue, 8 Apr 2008 21:02:48 +0000 (23:02 +0200)]
Fix IDL for lsa_LookupPrivName.
Guenther
Günther Deschner [Tue, 8 Apr 2008 20:58:16 +0000 (22:58 +0200)]
Re-run make idl.
Guenther
Günther Deschner [Tue, 8 Apr 2008 20:57:16 +0000 (22:57 +0200)]
Fix IDL for lsa_QueryTrustedDomainInfo.
Guenther
Günther Deschner [Tue, 8 Apr 2008 20:55:52 +0000 (22:55 +0200)]
Fix lsa_TrustedDomainInfo callers.
Guenther
Günther Deschner [Tue, 8 Apr 2008 20:54:18 +0000 (22:54 +0200)]
Re-run make idl.
Guenther
Günther Deschner [Tue, 8 Apr 2008 20:52:26 +0000 (22:52 +0200)]
Fix IDL for lsa_QueryTrustedDomainInfoBySid.
Guenther
Günther Deschner [Tue, 8 Apr 2008 20:51:55 +0000 (22:51 +0200)]
Fix IDL for lsa_QueryTrustedDomainInfoByName.
Guenther
Günther Deschner [Tue, 8 Apr 2008 20:50:05 +0000 (22:50 +0200)]
Fix IDL for lsa_QueryDomainInformationPolicy.
Guenther
Günther Deschner [Tue, 8 Apr 2008 19:41:16 +0000 (21:41 +0200)]
Fix the build of reply_setattrE().
How ever could this compile ?
Guenther
Günther Deschner [Tue, 8 Apr 2008 17:54:57 +0000 (19:54 +0200)]
Move is_valid_policy_hnd() out of net.
Guenther
Günther Deschner [Tue, 8 Apr 2008 17:42:26 +0000 (19:42 +0200)]
Try to use kerberos in libnetapi.
Guenther
Günther Deschner [Tue, 8 Apr 2008 16:45:26 +0000 (18:45 +0200)]
Add DsGetDcName libnetapi example.
Guenther
Günther Deschner [Tue, 8 Apr 2008 16:43:51 +0000 (18:43 +0200)]
Add DsGetDcName call to libnetapi library.
Guenther
Günther Deschner [Tue, 8 Apr 2008 12:38:10 +0000 (14:38 +0200)]
Re-run make idl.
Guenther
Günther Deschner [Tue, 8 Apr 2008 12:37:09 +0000 (14:37 +0200)]
Add DsGetDCName call to libnetapi.idl.
Guenther
Günther Deschner [Tue, 8 Apr 2008 15:17:17 +0000 (17:17 +0200)]
Fix includes in libnetapi examples common.c
Guenther
Stefan Metzmacher [Tue, 8 Apr 2008 16:50:49 +0000 (18:50 +0200)]
selftest: run the BASE-DELAYWRITE test 4 times faster in make test
metze
Jeremy Allison [Tue, 8 Apr 2008 14:43:30 +0000 (07:43 -0700)]
Use size_t for strlen return, not int. Karolin please
pull.
Jeremy.
Günther Deschner [Tue, 8 Apr 2008 12:34:30 +0000 (14:34 +0200)]
Use popt in libetapi example code.
Guenther
Günther Deschner [Tue, 8 Apr 2008 12:29:21 +0000 (14:29 +0200)]
Prefill in username in libnetapi ctx.
Guenther
Günther Deschner [Tue, 8 Apr 2008 12:10:48 +0000 (14:10 +0200)]
Add CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS define.
This allows to switch on the cli->fallback_after_kerberos switch.
Guenther
Alexander Bokovoy [Tue, 8 Apr 2008 11:19:01 +0000 (15:19 +0400)]
Destroy DMAPI session when main smbd daemon exits.
DMAPI session is precious resource maintained at kernel level. We open one of them and use across multiple smbd daemons
but once last of them exits, DMAPI session needs to be destroyed. There are some HSM implementations which fail to
shutdown when opened DMAPI sessions left. Ensure we shutdown our session when it is really not needed anymore.
This is what recommended by DMAPI specification anyway.
Alexander Bokovoy [Tue, 8 Apr 2008 11:17:53 +0000 (15:17 +0400)]
Allow broader range of HSM systems in vfs_tsmsm
Allow to specify value of DMAPI attribute returned during offline file checks, 'tsmsm: dmapi value'.
Previously tsmsm module has supported only IBM TSM SM engine which reports file state by *existence*
of a certain DMAPI attribute. Other HSM systems report a certain value as DMAPI request's result.
Port from Tridge's v3-0-ctdb git tree.
Jeremy Allison [Tue, 8 Apr 2008 04:11:16 +0000 (21:11 -0700)]
Rewrite the wrap checks to deal with gcc 4.x optimisations.
Karolin, please pull once Volker has reviewed. Thanks.
Jeremy.
Günther Deschner [Tue, 8 Apr 2008 00:42:50 +0000 (02:42 +0200)]
Restructure inner workings of libnetapi a bit.
Guenther
Günther Deschner [Tue, 8 Apr 2008 00:26:21 +0000 (02:26 +0200)]
Add libnetapi generated files.
Guenther
Günther Deschner [Tue, 8 Apr 2008 00:25:31 +0000 (02:25 +0200)]
Build libnetapi.idl.
Guenther
Günther Deschner [Tue, 8 Apr 2008 00:25:00 +0000 (02:25 +0200)]
Add libnetapi.idl.
Guenther
Günther Deschner [Tue, 8 Apr 2008 00:14:44 +0000 (02:14 +0200)]
Whatsnew
James Peach [Mon, 7 Apr 2008 22:28:10 +0000 (15:28 -0700)]
Remove unused variable.
Bill Ricker [Mon, 7 Apr 2008 22:02:56 +0000 (15:02 -0700)]
Fix Kerberos interop with Mac OS X 10.5 clients.
Ignore optional req_flags. Use the Kerberos mechanism OID negotiated
with the client rather than hardcoding OID_KERBEROS5_OLD.
James Peach [Mon, 7 Apr 2008 22:00:41 +0000 (15:00 -0700)]
Use bool for BOOL and true/false for True/False. We need lowercase
bool to get the declarations picked up by the prototype parser.
Michael Adam [Mon, 7 Apr 2008 21:36:29 +0000 (23:36 +0200)]
dbwrap: fix more "tdb_chainunlock failed" messages
TALLOC_FREE(rec) before transaction_cancel also in dbwrap_trans_delete().
Michael
Michael Adam [Mon, 7 Apr 2008 14:38:14 +0000 (16:38 +0200)]
winbindd: fix break out early condition in fill_grent_mem().
if (!&new_glist) would always be skipped, if (new_glist == NULL) is
what must have been meant...
Michael
Bo Yang [Mon, 7 Apr 2008 13:51:42 +0000 (09:51 -0400)]
Only cache password policy results that worked, otherwise we
cannot login until the cache expires even if a connection
to a DC has been restored.
Stefan Metzmacher [Mon, 7 Apr 2008 07:27:22 +0000 (09:27 +0200)]
smbd: make it possible to change the write time delay for testing
metze
Stefan Metzmacher [Mon, 7 Apr 2008 07:21:19 +0000 (09:21 +0200)]
smbd: make it possible to disable get_file_infos() on searches
metze
Stefan Metzmacher [Tue, 1 Apr 2008 09:40:23 +0000 (11:40 +0200)]
locking: combine get_delete_on_close_flag() and get_write_time() into get_file_infos()
This means we need to fetch the record only once.
metze
Stefan Metzmacher [Wed, 12 Mar 2008 17:26:43 +0000 (18:26 +0100)]
selftest: samba3 passes BASE-DELAYWRITE
metze
Stefan Metzmacher [Wed, 12 Mar 2008 14:39:38 +0000 (15:39 +0100)]
smbd: implement the strange write time update logic
We now never call file_ntimes() directly, every update
is done via smb_set_file_time().
This let samba3 pass the BASE-DELAYWRITE test.
The write time is only updated 2 seconds after the
first write() on any open handle to the current time
(not the time of the first write).
Each handle which had write requests updates the write
time to the current time on close().
If the write time is set explicit via setfileinfo or setpathinfo
the write time is visible directly and a following close
on the same handle doesn't update the write time.
metze
Stefan Metzmacher [Wed, 12 Mar 2008 14:32:47 +0000 (15:32 +0100)]
locking: store the write time in the locking.tdb
This is needed to implement the strange write time update
logic later. We need to store 2 time timestamps to
distinguish between the time the file system had before
the first client opened the file and a forced timestamp update.
metze
Volker Lendecke [Mon, 7 Apr 2008 10:19:25 +0000 (12:19 +0200)]
Fix an uninitialized variable
Björn Jacke [Mon, 7 Apr 2008 09:22:14 +0000 (11:22 +0200)]
increase log level for this failed setsockopt call. EINVAL is a normal error on Solaris when we do this on an already resetted connection.
Volker Lendecke [Mon, 7 Apr 2008 08:19:25 +0000 (10:19 +0200)]
Fix bug 5375
Thanks to Moskvin for testing
Volker Lendecke [Mon, 7 Apr 2008 08:18:36 +0000 (10:18 +0200)]
Fix a misleading debug message
Stefan Metzmacher [Wed, 2 Apr 2008 06:03:11 +0000 (08:03 +0200)]
net_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and wbcGetGroups()
metze
Stefan Metzmacher [Wed, 2 Apr 2008 06:02:02 +0000 (08:02 +0200)]
net_rpc: let get_user_tokens() use wbcListUsers()
metze
Stefan Metzmacher [Sun, 6 Apr 2008 09:58:58 +0000 (11:58 +0200)]
wbinfo: make use of wbcGetGroups()
metze
Stefan Metzmacher [Sun, 6 Apr 2008 09:55:57 +0000 (11:55 +0200)]
libwbclient: add wbcGetGroups()
metze
Volker Lendecke [Sun, 6 Apr 2008 10:26:15 +0000 (12:26 +0200)]
Fix a C++ warning
Volker Lendecke [Sun, 6 Apr 2008 10:26:01 +0000 (12:26 +0200)]
Remove external refs to winbindd_fd
Volker Lendecke [Sun, 6 Apr 2008 09:27:36 +0000 (11:27 +0200)]
wbcAllocateGid returns a gid_t, not a uid_t
Volker Lendecke [Sat, 5 Apr 2008 22:47:53 +0000 (00:47 +0200)]
Re-run "make idl"
Jeremy Allison [Fri, 4 Apr 2008 22:28:14 +0000 (15:28 -0700)]
When using plaintext ucs2 passwords clistr_push calls ucs2_align, which causes
the space taken by the unicode password to be one byte too
long (as we're on an odd byte boundary here). Reduce the
count by 1 to cope with this. Fixes smbclient against NetApp
servers which can't cope. Fix from
bryan.kolodziej@allenlund.com in bug #3840.
Jeremy.