Volker Lendecke [Fri, 28 Dec 2007 16:16:35 +0000 (17:16 +0100)]
Remove a global
Volker Lendecke [Fri, 28 Dec 2007 16:09:57 +0000 (17:09 +0100)]
don't store cache_readonly in gencache
tdb won't allow us to write anyway
Volker Lendecke [Fri, 28 Dec 2007 16:02:34 +0000 (17:02 +0100)]
Remove static zeros
Volker Lendecke [Fri, 28 Dec 2007 16:02:07 +0000 (17:02 +0100)]
Remove a static array
This might be worth it, mangle_hash is hardly used these days
Volker Lendecke [Fri, 28 Dec 2007 12:13:29 +0000 (13:13 +0100)]
Convert csamuser to memcache
Volker Lendecke [Sat, 22 Dec 2007 11:02:33 +0000 (12:02 +0100)]
bin/vlp needs a dependency on @LIBWBCLIENT_SHARED@
This failed to link if you compile with -j.
Karolin Seeger [Thu, 27 Dec 2007 13:08:40 +0000 (14:08 +0100)]
Improve error messages of 'net rpc user [add|delete]' commands.
Karolin
Jeremy Allison [Fri, 28 Dec 2007 08:02:13 +0000 (00:02 -0800)]
Ensure we turn off POSIX large read/write if encryption
is mandatory or signing is on.
Jeremy.
Jeremy Allison [Fri, 28 Dec 2007 07:51:03 +0000 (23:51 -0800)]
Add the capability to set "smb encrypt = required"
on a share (or global) and have the server reply with
ACCESS_DENIED for all non-encrypted traffic (except
that used to query encryption requirements and set
encryption state).
Jeremy.
Volker Lendecke [Thu, 27 Dec 2007 20:31:08 +0000 (21:31 +0100)]
Fix setting the initial permission bits
This fixes a make test failure on Solaris. When creating a new file,
file_set_dosmode() called from open_file_ntcreate calculates a new permission
mask, very likely different from what had been calculated in
open_file_ntcreate. Further down we overwrote the newly calculated value with
SMB_FCHMOD_ACL, ignoring what file_set_dosmode had calculated.
Why did Linux not see this? fchmod_acl on a newly created file without acls
would not retrieve an acl at all, whereas under Solaris acl(2) returns
something even for files with just posix permissions returns something.
Jeremy, given that we have very similar code in 3.0.28 this might also explain
some of the bug reports that people have concerning ACLs on new files.
Volker
P.S: This one took a while to find...
Jeremy Allison [Fri, 28 Dec 2007 00:54:07 +0000 (16:54 -0800)]
Add "smb encrypt" parameter. Can be set to "no, yes, required".
Currently if set required this is not enforced. I'll be adding
that soon.
Jeremy.
Volker Lendecke [Thu, 27 Dec 2007 23:12:14 +0000 (00:12 +0100)]
Fix the non-gcc branch of "likely"
Volker Lendecke [Thu, 27 Dec 2007 20:30:15 +0000 (21:30 +0100)]
Remove a silly static
Volker Lendecke [Thu, 27 Dec 2007 18:56:44 +0000 (19:56 +0100)]
Fix the build
Volker Lendecke [Thu, 27 Dec 2007 16:41:19 +0000 (17:41 +0100)]
Wrap the DEBUG checks in a "unlikely"
On my Laptop with some limited netbench runs this gains about 1.5% of
performance. When looking at the assembler output I would suspect the biggest
gain is by the fact that with this in place the calls to the debug functions is
moved to the function end, out of the way of the normal code paths. valgrind
tests pending I would suspect this to be much more cache friendly.
Comments?
Volker
Jeremy Allison [Thu, 27 Dec 2007 18:18:22 +0000 (10:18 -0800)]
Add CIFS_UNIX_TRANSPORT_ENCRYPTION_CAP capability to
our reported caps.
Jeremy.
Jeremy Allison [Thu, 27 Dec 2007 01:17:36 +0000 (17:17 -0800)]
Encryption works better when you add the client decrypt code :-).
Jeremy.
Jeremy Allison [Thu, 27 Dec 2007 01:12:36 +0000 (17:12 -0800)]
Add SMB encryption. Still fixing client decrypt but
negotiation works.
Jeremy.
Volker Lendecke [Wed, 26 Dec 2007 23:22:07 +0000 (00:22 +0100)]
typos
Volker Lendecke [Wed, 26 Dec 2007 22:44:24 +0000 (23:44 +0100)]
Fix some memleaks
Volker Lendecke [Wed, 26 Dec 2007 16:58:55 +0000 (17:58 +0100)]
Remove the sampwent interface
Volker Lendecke [Wed, 26 Dec 2007 16:45:49 +0000 (17:45 +0100)]
Convert pdbedit to use pdb_search_users
Volker Lendecke [Wed, 26 Dec 2007 16:06:06 +0000 (17:06 +0100)]
Properly destroy the pdb search object
Volker Lendecke [Mon, 24 Dec 2007 23:04:39 +0000 (00:04 +0100)]
smbpasswd_search_users
Volker Lendecke [Mon, 24 Dec 2007 11:58:40 +0000 (12:58 +0100)]
Add tdbsam_search_users
Volker Lendecke [Wed, 26 Dec 2007 13:18:11 +0000 (14:18 +0100)]
We need to return the correct atime
On systems with nanosecond atime we need to re-stat after messing with the fd,
at least Solaris 10 updates atime after we stat(2)ed the file.
Michael Adam [Wed, 26 Dec 2007 00:03:28 +0000 (01:03 +0100)]
Move libnet_smbconf_reg_open_basepath() in source file
to group helper functions more logically.
Michael
Michael Adam [Wed, 26 Dec 2007 00:01:14 +0000 (01:01 +0100)]
Rename libnet_smbconf_open_basepath() to libnet_smbconf_reg_open_basepath().
Michael
Michael Adam [Tue, 25 Dec 2007 23:58:11 +0000 (00:58 +0100)]
Rename libnet_smbconf_open_path() to libnet_smbconf_reg_open_path().
Michael
Michael Adam [Tue, 25 Dec 2007 23:53:19 +0000 (00:53 +0100)]
Rename libnet_smbconf_open_path_q() to libnet_smbconf_open_path()
removing previouse libnet_smbconf_open_path() and adding
DEBUG output (instead of d_fprintf error output) to new
libnet_smbconf_open_path().
Michael
Volker Lendecke [Tue, 25 Dec 2007 17:37:42 +0000 (18:37 +0100)]
Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage
Volker Lendecke [Tue, 25 Dec 2007 17:36:49 +0000 (18:36 +0100)]
AIX iface test needs rep_vasprintf
Volker Lendecke [Tue, 25 Dec 2007 13:19:50 +0000 (14:19 +0100)]
ifreq needs more from lib/replace
Volker Lendecke [Tue, 25 Dec 2007 12:49:17 +0000 (13:49 +0100)]
Next try to fix get_interfaces detection
Volker Lendecke [Tue, 25 Dec 2007 12:34:14 +0000 (13:34 +0100)]
make clean should remove everything in bin/
Jerry, you might want to review/change removing libwbclient.so.0
Volker Lendecke [Tue, 25 Dec 2007 11:00:53 +0000 (12:00 +0100)]
Interface detection should not go through the socket wrapper
Next try to get the build farm more in line again than it is now
Volker Lendecke [Tue, 25 Dec 2007 10:59:34 +0000 (11:59 +0100)]
Revert "Attempt to fix the ifreq detection"
This reverts commit
2d08959685b495caf1884babbece27775d8bcb4f.
Volker Lendecke [Tue, 25 Dec 2007 10:34:10 +0000 (11:34 +0100)]
Fix the build
Michael Adam [Tue, 25 Dec 2007 02:41:34 +0000 (03:41 +0100)]
Remove now unneeded talloc ctx parameter from do_JoinConfig().
Michael
Michael Adam [Tue, 25 Dec 2007 02:40:35 +0000 (03:40 +0100)]
Remove now unneeded talloc ctx parameter from do_join_modify_vals_config().
Michael
Michael Adam [Tue, 25 Dec 2007 02:39:31 +0000 (03:39 +0100)]
Remove now unneeded talloc ctx parameter from do_UnjoinConfig().
Michael
Michael Adam [Tue, 25 Dec 2007 02:38:06 +0000 (03:38 +0100)]
Remove now unneeded talloc ctx parameter from do_unjoin_modify_vals_config().
Michael
Michael Adam [Tue, 25 Dec 2007 02:35:00 +0000 (03:35 +0100)]
Add two missing free-s.
Michael
Michael Adam [Tue, 25 Dec 2007 02:34:04 +0000 (03:34 +0100)]
Remove talloc context parameter from libnet_smbconf_delparm().
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_delparm.
Michael
Michael Adam [Tue, 25 Dec 2007 02:29:41 +0000 (03:29 +0100)]
Add a missing free.
Michael
Michael Adam [Tue, 25 Dec 2007 02:29:05 +0000 (03:29 +0100)]
Remove talloc context parameter from libnet_smbconf_setparm().
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_setparm.
Michael
Michael Adam [Tue, 25 Dec 2007 02:16:25 +0000 (03:16 +0100)]
Typofix in comment.
Michael
Michael Adam [Tue, 25 Dec 2007 02:08:00 +0000 (03:08 +0100)]
Add comment header to function libnet_smbconf_drop().
Michael
Michael Adam [Tue, 25 Dec 2007 02:06:48 +0000 (03:06 +0100)]
Remove a d_fprintf() from libnet_smbconf_drop().
Michael
Michael Adam [Tue, 25 Dec 2007 02:05:06 +0000 (03:05 +0100)]
Remove talloc context parameter from libnet_smbconf_drop().
Make use of talloc_stackframe.
Michael
Michael Adam [Tue, 25 Dec 2007 02:01:59 +0000 (03:01 +0100)]
Rename drop_smbconf_internal() to libnet_smbconf_drop().
Michael
Michael Adam [Tue, 25 Dec 2007 01:55:07 +0000 (02:55 +0100)]
Move drop_smbconf_internal() to libnet_conf.c
Michael
Michael Adam [Tue, 25 Dec 2007 01:48:45 +0000 (02:48 +0100)]
Use the proper boolean constants in net_conf.c
Michael
Michael Adam [Tue, 25 Dec 2007 01:42:33 +0000 (02:42 +0100)]
Add error reporting to net_conf_delshare().
Michael
Michael Adam [Tue, 25 Dec 2007 01:31:41 +0000 (02:31 +0100)]
Simplify libnet_smbconf_delshare().
Remove talloc context parameter.
Remove d_printf error message.
Michael
Michael Adam [Tue, 25 Dec 2007 01:24:39 +0000 (02:24 +0100)]
Rename reg_delkey_internal() to libnet_smbconf_delshare().
Michael
Michael Adam [Tue, 25 Dec 2007 01:21:30 +0000 (02:21 +0100)]
Move reg_delkey_internal() to libnet/libnet_conf.c
Michael
Volker Lendecke [Mon, 24 Dec 2007 23:12:18 +0000 (00:12 +0100)]
Attempt to fix the ifreq detection
Michael Adam [Mon, 24 Dec 2007 00:03:14 +0000 (01:03 +0100)]
Do not leak memory in libnet_smbconf_delparm().
Michael
Michael Adam [Mon, 24 Dec 2007 00:00:46 +0000 (01:00 +0100)]
Do not leak memory in libnet_smbconf_setparm().
Michael
Michael Adam [Sun, 23 Dec 2007 23:57:04 +0000 (00:57 +0100)]
Use the appropriate boolean constants.
Michael
Michael Adam [Sun, 23 Dec 2007 23:56:24 +0000 (00:56 +0100)]
Make libnet_smbconf_value_exists() use talloc_stackframe().
And not pass a talloc context.
Michael
Michael Adam [Sun, 23 Dec 2007 23:53:22 +0000 (00:53 +0100)]
Make libnet_smbconf_key_exists() use talloc_stackframe().
And not pass a talloc context.
Michael
Michael Adam [Sun, 23 Dec 2007 23:47:43 +0000 (00:47 +0100)]
Don't leak memory in libnet_smbconf_getparm().
Michael
Michael Adam [Sun, 23 Dec 2007 22:58:58 +0000 (23:58 +0100)]
Fix rights error in libnet_smbconf_delparm().
Introduced by additional test for existence of given parameter.
Michael
Michael Adam [Sun, 23 Dec 2007 22:02:47 +0000 (23:02 +0100)]
Remove redundant check of return value.
Michael
Michael Adam [Sun, 23 Dec 2007 14:07:20 +0000 (15:07 +0100)]
Move logic of net_conf_getparm() to libnet_conf.c.
Michael
Stefan Metzmacher [Sun, 23 Dec 2007 19:09:16 +0000 (20:09 +0100)]
selftest: also export LD_LIBRARY_PATH for samba4's smbtorture
metze
Volker Lendecke [Sun, 23 Dec 2007 15:38:28 +0000 (16:38 +0100)]
Attempt to make the build farm run s4torture again
Volker Lendecke [Sun, 23 Dec 2007 14:53:09 +0000 (15:53 +0100)]
Attempt to fix the Solaris build
Lets see what the others in the build farm think about this
Volker Lendecke [Sat, 22 Dec 2007 13:52:34 +0000 (14:52 +0100)]
Convert the [gu]id_sid cache to memcache
Michael Adam [Sun, 23 Dec 2007 03:10:15 +0000 (04:10 +0100)]
Rename libnet_reg_createkey_internal() to libnet_smbconf_reg_createkey_internal().
Michael
Michael Adam [Sun, 23 Dec 2007 02:52:00 +0000 (03:52 +0100)]
Make libnet_smbconf_set_global_param() call libnet_smbconf_setparm().
This not only removes duplicate logic, but also the use of
libnet_smbconf_reg_setvalue_internal() instead of do_modify_val_config()
which is removed, does add important tests and canonicalizations.
Michael
Michael Adam [Sun, 23 Dec 2007 02:47:16 +0000 (03:47 +0100)]
Reorder libnet_conf.c some, adding "section" comments.
Michael
Michael Adam [Sun, 23 Dec 2007 02:41:55 +0000 (03:41 +0100)]
Move net_conf_setparm() to libnet_conf.c
renaming it to libnet_smbconf_setparm()
Michael
Michael Adam [Sun, 23 Dec 2007 02:34:36 +0000 (03:34 +0100)]
Move reg_setvalue_internal() to libnet_conf.c
renaming it to libnet_smbconf_setvalue_internal()
Michael
Michael Adam [Sun, 23 Dec 2007 02:13:30 +0000 (03:13 +0100)]
Remove occurrences of registry_key from libnet_join.c
Replace duplicated logic by calls of libnet_smbconf_set_global_param()
from libnet_conf.c, pushing logic from do_JoinConfig() and do_UnjoinConfig()
to do_join_modify_vals_config() and do_unjoin_modify_vals_config()
respectively.
Only the net_conf api functions should be exported by libnet_conf.c, not
the lower level registry access functions.
Michael
Michael Adam [Sun, 23 Dec 2007 02:02:19 +0000 (03:02 +0100)]
Replace direct deletion of registry value by use of libnet_smbconf_delparm().
Michael
Michael Adam [Sun, 23 Dec 2007 01:55:25 +0000 (02:55 +0100)]
Move logic of net_smbconf_delparm() to libnet/libnet_conf.c
Logic in new function libnet_smbconf_delparm().
Michael
Michael Adam [Sun, 23 Dec 2007 01:44:29 +0000 (02:44 +0100)]
Move smbconf_value_exists() to libnet/net_conf.c
renaming it to libnet_smbconf_value_exists().
Michael
Michael Adam [Sun, 23 Dec 2007 00:43:13 +0000 (01:43 +0100)]
Make libnet_smbconf_open_path_q() static.
Michael
Jeremy Allison [Sun, 23 Dec 2007 01:38:18 +0000 (17:38 -0800)]
If we detect a case insensitive filesystem make
sure we don't search directories on name misses
for non-mangled names.
Jeremy
Michael Adam [Sun, 23 Dec 2007 00:34:20 +0000 (01:34 +0100)]
Fix typo in output.
Michael
Volker Lendecke [Sat, 22 Dec 2007 23:35:06 +0000 (00:35 +0100)]
Fix wbcAllocate[GU]id
wbcRequestResponse() returns a wbcErr, not NSS_STATUS
Volker Lendecke [Sat, 22 Dec 2007 23:33:44 +0000 (00:33 +0100)]
Fix wbcPing()
Without request and response, wbcRequestResponse() will always return
WBC_ERR_INVALID_PARAM, so the ping will never reach winbind.
Volker Lendecke [Sat, 22 Dec 2007 23:32:09 +0000 (00:32 +0100)]
tiny simplification
James Peach [Sat, 22 Dec 2007 22:55:37 +0000 (14:55 -0800)]
Use filesystem capabilities to support case-insensitive filesystems.
If we know the underlying filesystem is case-insensitive, then we
know that it won't help to search for case variations of the requested
name.
Jeremy, please review (and revert if you disagree).
James Peach [Sat, 22 Dec 2007 22:10:06 +0000 (14:10 -0800)]
Fix "may be used uninitialized" compiler warnings.
James Peach [Sat, 22 Dec 2007 22:01:44 +0000 (14:01 -0800)]
Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
James Peach [Sat, 22 Dec 2007 22:01:25 +0000 (14:01 -0800)]
Cache the underlying filesystem capabilities at connection time.
This change alters the Samba connection code to cache the filesystem
capabilities when a new client connects. This can be used to enable
filesystem specific optimisations is a general manner.
Michael Adam [Sat, 22 Dec 2007 01:13:02 +0000 (02:13 +0100)]
Remove redundant connection_struct from check_magic() parameter list.
Michael
Michael Adam [Sat, 22 Dec 2007 01:01:26 +0000 (02:01 +0100)]
Remove redundant connection_struct from fd_close() parameter list.
Michael
Michael Adam [Sat, 22 Dec 2007 00:49:29 +0000 (01:49 +0100)]
Remove redundant connection_struct from fd_close_posix() parameter list.
Michael
Jeremy Allison [Sat, 22 Dec 2007 00:43:02 +0000 (16:43 -0800)]
Add NT error to debug to try and track this down.
Jermey.
Günther Deschner [Sat, 22 Dec 2007 00:13:53 +0000 (01:13 +0100)]
Fix the build of cifs.spnego.
Guenther
Günther Deschner [Fri, 21 Dec 2007 23:34:30 +0000 (00:34 +0100)]
Fix net_dom_join & net_dom_unjoin.
Guenther
Günther Deschner [Fri, 21 Dec 2007 23:12:59 +0000 (00:12 +0100)]
Fix uninitialized error code in do_unjoin_modify_vals_config().
Guenther
Günther Deschner [Fri, 21 Dec 2007 23:02:45 +0000 (00:02 +0100)]
Correct netapi header filename. Thanks Jeremy.
Guenther
Jeremy Allison [Fri, 21 Dec 2007 22:38:52 +0000 (14:38 -0800)]
Fix install - it was trying to install libnetapi.h whereas
the actual file is netapi.h. Guenther please check which
name this should be !
Jeremy.
Günther Deschner [Fri, 21 Dec 2007 22:04:26 +0000 (23:04 +0100)]
Until we better understand the WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT make sure we are
not joining as a DC.
Guenther