1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-19 21:57:57 +03:00

21296 Commits

Author SHA1 Message Date
Karolin Seeger
9dfde0ebec Improve error messages of 'net rpc user [add|delete]' commands.
Karolin
(This used to be commit 4260c79bf7687bd2ebcc4ca5e0a5f020a759c1fb)
2007-12-28 09:44:40 +01:00
Jeremy Allison
38369ba741 Ensure we turn off POSIX large read/write if encryption
is mandatory or signing is on.
Jeremy.
(This used to be commit 5088b704791be2f36641fa0ec59dff7f289ae868)
2007-12-28 00:02:13 -08:00
Jeremy Allison
afce2b245a 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.
(This used to be commit d241bfa57729bb934ada6beabf842a2ca7b4f8a2)
2007-12-27 23:51:03 -08:00
Volker Lendecke
33f01360e0 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...
(This used to be commit 2135dfe91bf1ae114a18c15286b535662200677d)
2007-12-28 08:52:29 +01:00
Jeremy Allison
675f41dc14 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.
(This used to be commit df7e447623ac03d81bec384f5cfe83c3976cf7b2)
2007-12-27 16:54:07 -08:00
Volker Lendecke
94ee39c23f Fix the non-gcc branch of "likely"
(This used to be commit 1e07368b5f96e4ada622682e38d260eb0c6185f2)
2007-12-28 00:12:14 +01:00
Volker Lendecke
e9b8eb1446 Remove a silly static
(This used to be commit ef75dcc9ffda85d77c8f22d0db702efbf8e642ed)
2007-12-27 22:33:02 +01:00
Volker Lendecke
bd7fc51f2d Fix the build
(This used to be commit 7fb858b350856d626fed6f062029fcf09b8251e2)
2007-12-27 22:32:36 +01:00
Volker Lendecke
ee8212472d 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
(This used to be commit 51448a9dca95de9d35dd8eea68fde2554cb69921)
2007-12-27 20:19:17 +01:00
Jeremy Allison
5413ad4aca Add CIFS_UNIX_TRANSPORT_ENCRYPTION_CAP capability to
our reported caps.
Jeremy.
(This used to be commit e86d027823c85173c64e7b85406e98f6f7345b10)
2007-12-27 10:18:22 -08:00
Jeremy Allison
3a52874815 Encryption works better when you add the client decrypt code :-).
Jeremy.
(This used to be commit d67b2634068be9c69082a2b8c22c831aba371cd9)
2007-12-26 17:17:36 -08:00
Jeremy Allison
afc93255d1 Add SMB encryption. Still fixing client decrypt but
negotiation works.
Jeremy.
(This used to be commit d78045601af787731f0737b8627450018902b104)
2007-12-26 17:12:36 -08:00
Volker Lendecke
23c965d947 typos
(This used to be commit 30fa3477c8f810d8f2b4c4be218509544735274c)
2007-12-27 00:22:07 +01:00
Volker Lendecke
07867ec373 Fix some memleaks
(This used to be commit 78b0b66cbac349625257260d2e45d918e0c93617)
2007-12-26 23:45:10 +01:00
Volker Lendecke
e70c97ef85 Remove the sampwent interface
(This used to be commit 9e80b969fb40766de2c9b1a05d16bf4d4c6e46f7)
2007-12-26 18:57:15 +01:00
Volker Lendecke
c90f731ef2 Convert pdbedit to use pdb_search_users
(This used to be commit 8a8f2583b8bda22f65c7483dea54ac823ed1c0c3)
2007-12-26 18:57:15 +01:00
Volker Lendecke
5f196fafd3 Properly destroy the pdb search object
(This used to be commit 514cf532248723e7f775dc5f8f2e6936e02b7a1c)
2007-12-26 18:57:14 +01:00
Volker Lendecke
f633d348d7 smbpasswd_search_users
(This used to be commit 84af4fb65677cf137f14f57c8820c77c9d006d89)
2007-12-26 18:57:14 +01:00
Volker Lendecke
533c7c81fe Add tdbsam_search_users
(This used to be commit 02f0b0bd393bd942fc934f251bd6afed8e5424b0)
2007-12-26 18:57:14 +01:00
Volker Lendecke
250c57ccfb 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.
(This used to be commit 6e6ec0a563f8b7e3d4618ce60e776bcce53f40c4)
2007-12-26 14:55:57 +01:00
Michael Adam
f99af84e6a Move libnet_smbconf_reg_open_basepath() in source file
to group helper functions more logically.

Michael
(This used to be commit 3fa3891f8721e9f02594cd1be2dc6b9b88692416)
2007-12-26 01:03:28 +01:00
Michael Adam
afca308742 Rename libnet_smbconf_open_basepath() to libnet_smbconf_reg_open_basepath().
Michael
(This used to be commit 4c0e7270c42788e7f77c402032ae74cf0f8a7106)
2007-12-26 01:01:14 +01:00
Michael Adam
18ea20e19b Rename libnet_smbconf_open_path() to libnet_smbconf_reg_open_path().
Michael
(This used to be commit 4b0e636965bd37e7c0deecb7b5eff0cc4487408b)
2007-12-26 00:58:11 +01:00
Michael Adam
e8cfbb0f4c 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
(This used to be commit e63cc54fab8a0b03573f76305eab366a3ee4eda1)
2007-12-26 00:53:19 +01:00
Volker Lendecke
8b88fa53b5 Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage
(This used to be commit e33286f4a68352e55df081d06307f64f190773b3)
2007-12-25 18:37:42 +01:00
Volker Lendecke
fae533d359 AIX iface test needs rep_vasprintf
(This used to be commit 3e5788cc9665acb450be793fb88db8e2a871aaa5)
2007-12-25 18:36:49 +01:00
Volker Lendecke
199ecd9a85 ifreq needs more from lib/replace
(This used to be commit e85290550ad33433f584009ffce34c81bea5b164)
2007-12-25 14:19:50 +01:00
Volker Lendecke
afec8b523a Next try to fix get_interfaces detection
(This used to be commit 2dc0282f245c62b83b80f8da0394201e1c00f284)
2007-12-25 13:49:17 +01:00
Volker Lendecke
ec54edd9eb make clean should remove everything in bin/
Jerry, you might want to review/change removing libwbclient.so.0
(This used to be commit 768e0439507caeff430358eb24dc9288a21c8a03)
2007-12-25 13:38:08 +01:00
Volker Lendecke
1c26f38c16 Interface detection should not go through the socket wrapper
Next try to get the build farm more in line again than it is now
(This used to be commit 38e178df12d30672f74bf272338954c7917b59e3)
2007-12-25 12:35:44 +01:00
Volker Lendecke
b410f254f0 Revert "Attempt to fix the ifreq detection"
This reverts commit 2d08959685b495caf1884babbece27775d8bcb4f.
(This used to be commit acb560900be29c407e7da955d16c2de7898e49b8)
2007-12-25 11:59:34 +01:00
Volker Lendecke
921d8782cc Fix the build
(This used to be commit 72dc71710813ea9f1d8864c4401fef25a25577bd)
2007-12-25 11:38:26 +01:00
Michael Adam
a107e8421d Remove now unneeded talloc ctx parameter from do_JoinConfig().
Michael
(This used to be commit be985d8d0ce80d12aa7f0b447b16b14aa0362826)
2007-12-25 03:41:34 +01:00
Michael Adam
8445e820f2 Remove now unneeded talloc ctx parameter from do_join_modify_vals_config().
Michael
(This used to be commit f8823ae1232022ed3f7f9be6b8959d413e8aed19)
2007-12-25 03:40:35 +01:00
Michael Adam
d25661a615 Remove now unneeded talloc ctx parameter from do_UnjoinConfig().
Michael
(This used to be commit 92b8e5ea4ba26d663ea4e6fb65e4225d8259ea60)
2007-12-25 03:39:31 +01:00
Michael Adam
fc8be9d710 Remove now unneeded talloc ctx parameter from do_unjoin_modify_vals_config().
Michael
(This used to be commit 4f7375a110a69530d6ef9781573f45a5bf8391a5)
2007-12-25 03:38:06 +01:00
Michael Adam
c2ab4bd705 Add two missing free-s.
Michael
(This used to be commit 4efac39c363d565c2c7211da73d5e1cf2ac3d0b2)
2007-12-25 03:35:00 +01:00
Michael Adam
44631bfd4d Remove talloc context parameter from libnet_smbconf_delparm().
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_delparm.

Michael
(This used to be commit 16f137393881edc78c9322f038ba38e53e3ee07d)
2007-12-25 03:34:04 +01:00
Michael Adam
726f32b672 Add a missing free.
Michael
(This used to be commit bf6031287f75a0e17092f60f9885e7e55cd0f93c)
2007-12-25 03:29:41 +01:00
Michael Adam
f3b0469b4a Remove talloc context parameter from libnet_smbconf_setparm().
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_setparm.

Michael
(This used to be commit efaffefc438f8375a083b194ac7a09e563000d3c)
2007-12-25 03:29:05 +01:00
Michael Adam
a66a5fd94b Typofix in comment.
Michael
(This used to be commit 5039a70246a475176fa8212ad78b430f2211951f)
2007-12-25 03:16:25 +01:00
Michael Adam
dff8e6b62c Add comment header to function libnet_smbconf_drop().
Michael
(This used to be commit e94edb6bdbc9379b48679d7c72618acfe862fe52)
2007-12-25 03:08:00 +01:00
Michael Adam
efd218fb07 Remove a d_fprintf() from libnet_smbconf_drop().
Michael
(This used to be commit 078e5e98b3589cec78893d44146a653dad9a7460)
2007-12-25 03:06:48 +01:00
Michael Adam
e5a87c2543 Remove talloc context parameter from libnet_smbconf_drop().
Make use of talloc_stackframe.

Michael
(This used to be commit aaceab1153f6c2a2adde83681913c771a16ca81f)
2007-12-25 03:05:06 +01:00
Michael Adam
2764f5a0a6 Rename drop_smbconf_internal() to libnet_smbconf_drop().
Michael
(This used to be commit 5873e6a1f8242e07b1699366a536350a7199c28c)
2007-12-25 03:01:59 +01:00
Michael Adam
8e53343a74 Move drop_smbconf_internal() to libnet_conf.c
Michael
(This used to be commit 4c2a3396bb687703f6b74655fda2014d1f75200b)
2007-12-25 02:55:07 +01:00
Michael Adam
9626fffe14 Use the proper boolean constants in net_conf.c
Michael
(This used to be commit 1fe4ea63b197cb7ebc054909d888d74b5ad6523c)
2007-12-25 02:48:45 +01:00
Michael Adam
734ddacc91 Add error reporting to net_conf_delshare().
Michael
(This used to be commit 8d02a2de61eb6b62fef1fbe57194c9d286423ba0)
2007-12-25 02:42:33 +01:00
Michael Adam
86486fcc98 Simplify libnet_smbconf_delshare().
Remove talloc context parameter.
Remove d_printf error message.

Michael
(This used to be commit 870d35c04889603843bae989fb9c01396b4c6ed1)
2007-12-25 02:37:02 +01:00
Michael Adam
9c20b9a731 Rename reg_delkey_internal() to libnet_smbconf_delshare().
Michael
(This used to be commit 7d501f0d78ec57509d0bc5ef0dc16fcd24ee27e7)
2007-12-25 02:24:39 +01:00