Michael Adam [Tue, 24 Jun 2008 10:46:13 +0000 (12:46 +0200)]
nmbd: untangle logic in nmbd_messaging_context() slightly.
Michael
(This used to be commit
3baf9eb6a2cc6a4a153303b457d3a7067948495e)
Michael Adam [Tue, 24 Jun 2008 10:44:50 +0000 (12:44 +0200)]
nmbd: don't panic if messaging_init() fails - return NULL instead.
Michael
(This used to be commit
e6a403209c29bd2ec2242d654ad45276de02cb44)
Michael Adam [Tue, 24 Jun 2008 10:34:49 +0000 (12:34 +0200)]
winbind: remove duplicate debug message for failing messaging_init().
Leave the message inside winbind_messaging_context() for now.
There might be callers, where this debug message could prove useful...
Michael
(This used to be commit
e9177ec56a8fe596d6fcfc4a95df87e39f757818)
Michael Adam [Tue, 24 Jun 2008 10:30:38 +0000 (12:30 +0200)]
winbind: untangle logic in winbind_messaging_context() slightly.
Michael
(This used to be commit
e710a9b73ea2fd176de7093125bc5f3f3f3a9404)
Michael Adam [Tue, 24 Jun 2008 10:29:05 +0000 (12:29 +0200)]
winbindd: don't panic if messaging_init() fails - return NULL instead.
Leave appropriate handling to the callers.
Michael
(This used to be commit
3e0c24323af5f10fa68ae8aad552b7346536c908)
Michael Adam [Mon, 23 Jun 2008 15:35:08 +0000 (17:35 +0200)]
smbd: untangle logic in smbd_messaging_context() slightly.
Michael
(This used to be commit
fae4c21b14b9d288e06f6b4b4e1527e2c6d58dca)
Michael Adam [Mon, 23 Jun 2008 15:32:32 +0000 (17:32 +0200)]
smbd: don't panic if messaging_init() fails but return NULL
leaving panic or more appropriate action to callers.
This can for instance happen in a clustered setup, when
ctdb is not running. This allows for a more defined behaviour,
reducing chicken-egg-problems.
Michael
(This used to be commit
3b6541ff483d5fea4fd30bb6a01a560c05028d4e)
Günther Deschner [Thu, 26 Jun 2008 10:07:07 +0000 (12:07 +0200)]
drsuapi: rerun make idl and add drsblobs generated files.
Guenther
(This used to be commit
6725b751d88b4bacac5171efe4f5193bc1125f19)
Günther Deschner [Thu, 26 Jun 2008 09:57:37 +0000 (11:57 +0200)]
drsuapi: add drsblobs.idl from samba4.
Guenther
(This used to be commit
58dc161ac91d018dfb02acac2aa2a45841478412)
Günther Deschner [Thu, 26 Jun 2008 08:22:40 +0000 (10:22 +0200)]
net_vampire: add some error output to libnet_dssync.
Guenther
(This used to be commit
891d4cca0ca5ccb075940517af25f3760a315219)
Günther Deschner [Thu, 26 Jun 2008 07:49:13 +0000 (09:49 +0200)]
errors: add WERR_DS_DRA_BAD_NC and WERR_DS_DRA_BAD_DN.
Guenther
(This used to be commit
2efe18f7c96d8d122943342b9af1db62a1432771)
Jeremy Allison [Wed, 25 Jun 2008 22:24:18 +0000 (15:24 -0700)]
Merge branch 'v3-3-test' of ssh://jra@git.samba.org/data/git/samba into v3-3-test
(This used to be commit
9075c5f2ada8f96ae8d6cbcfc36663969e9bf34f)
Jeremy Allison [Wed, 25 Jun 2008 22:23:32 +0000 (15:23 -0700)]
Part of fix for #5551. Split out the group enumeration functions to a BUILTIN and a Domain
specific version. Stops the domain groups appearing twice.
Jeremy.
(This used to be commit
77b99530e0ce0ab0f335d8b22774548d30690550)
Günther Deschner [Wed, 25 Jun 2008 09:50:50 +0000 (11:50 +0200)]
rpcclient: add samr chgpasswd command.
Guenther
(This used to be commit
b90ae343722eb73c5874d875aa439e4ef92ed06a)
Günther Deschner [Wed, 25 Jun 2008 09:50:17 +0000 (11:50 +0200)]
rpc_client: add rpccli_samr_chgpasswd_user() call.
Guenther
(This used to be commit
10fd2baa8320f96286d53b677cf38f3ca3aa88a7)
Günther Deschner [Wed, 25 Jun 2008 19:49:57 +0000 (21:49 +0200)]
rename rpccli_samr_chgpasswd3 to rpccli_samr_chgpasswd_user3.
Guenther
(This used to be commit
b1209a039b45985e0b28777e04cba5bcc3de061e)
Günther Deschner [Wed, 25 Jun 2008 08:35:59 +0000 (10:35 +0200)]
rename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.
Guenther
(This used to be commit
5b4650d56c04be0c498413f17afb2cf6d0e7d548)
Jeremy Allison [Wed, 25 Jun 2008 19:44:18 +0000 (12:44 -0700)]
Final (hopefully :-) part of fix for bug #5551. Allow passdb backend to enumerate domain groups.
Jeremy
(This used to be commit
2181770e4589d475b95b4103a8f95a58787f1f86)
Volker Lendecke [Wed, 25 Jun 2008 14:24:33 +0000 (16:24 +0200)]
Andrew Tridgell [Wed, 25 Jun 2008 11:27:17 +0000 (21:27 +1000)]
make parametic options case insensitive
This is needed as some options are uppercased internally in Samba, such as the idmap config option
Without this change it is not possible to set these options via net conf which lowercases options
(This used to be commit
c10aad9f136b7c2ef4809fd8558013ab2ee40cf6)
Günther Deschner [Tue, 24 Jun 2008 22:47:17 +0000 (00:47 +0200)]
netapi: add NetUserChangePassword() example code.
Guenther
(This used to be commit
ac5aaf29004584d0f1821689eb985d837cda1aa1)
Günther Deschner [Tue, 24 Jun 2008 22:47:41 +0000 (00:47 +0200)]
netapi: add NetUserChangePassword() to public headers.
Guenther
(This used to be commit
5d06891238d7dddedeb6fe2aca677c765b90c74a)
Günther Deschner [Tue, 24 Jun 2008 22:32:02 +0000 (00:32 +0200)]
netapi: add NetUserChangePassword skeleton.
Guenther
(This used to be commit
f4ce6887103d0f50bf9a91251e2aceb77674604f)
Günther Deschner [Tue, 24 Jun 2008 22:29:25 +0000 (00:29 +0200)]
re-run make idl.
Guenther
(This used to be commit
397d305e90e90f475b6de0efac7dd9630d698efd)
Günther Deschner [Tue, 24 Jun 2008 22:29:06 +0000 (00:29 +0200)]
netapi: add NetUserChangePassword() to IDL.
Guenther
(This used to be commit
7020a5bd6e90c178085bb8d04325ac5ba83b4c3d)
Günther Deschner [Tue, 24 Jun 2008 22:21:37 +0000 (00:21 +0200)]
rpc_client: let cli_get_session_key() return talloced session key.
Thanks, Volker, for pointing this out.
Guenther
(This used to be commit
b47899195e0c190445953243fe80da4e92994dd1)
Jeremy Allison [Wed, 25 Jun 2008 01:01:59 +0000 (18:01 -0700)]
Fix for bug #5551, smbd recursing back into winbindd from a winbindd call.
Jeremy.
(This used to be commit
a07fe72538e8e724b9736d5a85cc590864c5cab2)
Jeremy Allison [Tue, 24 Jun 2008 23:37:15 +0000 (16:37 -0700)]
Fix bug #5555. Don't return NT_STATUS_PASSWORD_MUST_CHANGE error on machine account logon.
Jeremy.
(This used to be commit
10da498a2349bf5944183adf5a9284eafa2b8b74)
Günther Deschner [Mon, 23 Jun 2008 21:13:21 +0000 (23:13 +0200)]
net_vampire: add basic libnet_dssync() infrastructure.
Guenther
(This used to be commit
9486e532da602da587769d4ff8a1a2825e541a30)
Günther Deschner [Tue, 10 Jun 2008 19:35:34 +0000 (21:35 +0200)]
rpc_client: add cli_get_session_key().
Guenther
(This used to be commit
93b56755f739889da3a67b18a6430b14306d84f7)
Günther Deschner [Tue, 24 Jun 2008 08:34:16 +0000 (10:34 +0200)]
net: add basic support for sealed RPC connections (using NET_FLAGS_SEAL).
Guenther
(This used to be commit
7541a0103ad22000e94ffc6d057ffd5d33d1a930)
Günther Deschner [Mon, 23 Jun 2008 14:02:04 +0000 (16:02 +0200)]
crypto: add decrypt_drsuapi_blob from samba4.
Guenther
(This used to be commit
3b6352a60e6683963af1641786f9c230d49ebfb5)
Günther Deschner [Tue, 24 Jun 2008 18:57:17 +0000 (20:57 +0200)]
re-run make idl.
Guenther
(This used to be commit
05d6f2e00cf5a7ad3d8a38149e9b9b1e408a666c)
Günther Deschner [Tue, 24 Jun 2008 18:57:03 +0000 (20:57 +0200)]
drsuapi: add some more attribute IDs.
Guenther
(This used to be commit
fce7a195f1e299b3427a992027de68151784f586)
Günther Deschner [Wed, 18 Jun 2008 10:52:00 +0000 (12:52 +0200)]
net_vampire: add code to vampire a SAM database to a keytab file.
Guenther
(This used to be commit
ee6e422c0e035aa4779fa718bb6f142827cc2de0)
Günther Deschner [Tue, 24 Jun 2008 10:30:34 +0000 (12:30 +0200)]
net_vampire: add username/password to samsync_context.
Guenther
(This used to be commit
e884304206b512a1ffc70b7a4da8db3c6dfd4f11)
Günther Deschner [Tue, 24 Jun 2008 11:06:38 +0000 (13:06 +0200)]
libads: use ads_connect_user_creds in some places.
Guenther
(This used to be commit
ebf31203e7cf22e32b986c536279688b17a65d22)
Günther Deschner [Tue, 24 Jun 2008 11:02:03 +0000 (13:02 +0200)]
libads: add ads_connect_user_creds() that won't overwrite given user creds.
Guenther
(This used to be commit
026018c9f1ed0680b3ca5b26dd6b8dc466e27e0d)
Günther Deschner [Tue, 24 Jun 2008 10:11:06 +0000 (12:11 +0200)]
libads: add ADS_AUTH_USER_CREDS to avoid magic overwriting of usernames.
Guenther
(This used to be commit
b5aaf5aa0f280f69e05b613271c96473a79b812e)
Günther Deschner [Wed, 18 Jun 2008 10:48:35 +0000 (12:48 +0200)]
kerberos: add smb_krb5_keytab_name().
Guenther
(This used to be commit
c273ce8798062d1b55100411f3e92a01bdbf611c)
Günther Deschner [Wed, 18 Jun 2008 10:45:57 +0000 (12:45 +0200)]
kerberos: make smb_krb5_kt_add_entry public, allow to pass keys without salting them.
Guenther
(This used to be commit
7c4da23be1105dc224033b21eb486e7fcdc7d9c5)
Karolin Seeger [Tue, 24 Jun 2008 13:55:30 +0000 (15:55 +0200)]
net ads: Fix typos.
Karolin
(This used to be commit
63c1a5146e25e05678d2bef95286add5c95a5f38)
Karolin Seeger [Tue, 24 Jun 2008 13:53:23 +0000 (15:53 +0200)]
rpc_client: Avoid warning in builds without krb5 headers.
warning: ‘cli_auth_kerberos_data_destructor’ defined but not used
Karolin
(This used to be commit
b5f9176b6ca8c137d5c065abed943fa437b5531f)
Volker Lendecke [Mon, 23 Jun 2008 06:38:27 +0000 (08:38 +0200)]
Remove "conn" from pipes_struct
For spoolss, we need the client's IP address
(This used to be commit
64a4dfaa826cf9319ef3f5c65023352bf8af539e)
Volker Lendecke [Mon, 23 Jun 2008 06:33:04 +0000 (08:33 +0200)]
Correct calculation of "remark" in srv_srvsvc_nt.c
Very likely the client is not interested in the values for the IPC$ share :-)
(This used to be commit
40ca5764cf4310769c002b8cb6041fe2af4e6d0b)
Volker Lendecke [Sun, 22 Jun 2008 20:19:10 +0000 (22:19 +0200)]
Move the responsibility to keep the cwd from srv_dfs_nt to msdfs.c
(This used to be commit
7db382588ac90fe250b72cf4cd07afb39fcae7c0)
Günther Deschner [Wed, 18 Jun 2008 10:42:27 +0000 (12:42 +0200)]
re-run make idl.
Guenther
(This used to be commit
cd3a69e153d3ffb128e09871b44826041deff15a)
Günther Deschner [Wed, 18 Jun 2008 10:42:11 +0000 (12:42 +0200)]
drsuapi: fill in some more drsuapi_DsAttributeIds.
Guenther
(This used to be commit
7974c2c8afe2ed295d8da4daa45ba5b7cb0a7584)
Günther Deschner [Mon, 23 Jun 2008 15:29:01 +0000 (17:29 +0200)]
net_vampire: more libnet_samsync restructuring.
Guenther
(This used to be commit
3bcda522f025aff249678a8a086218679fc19c6b)
Günther Deschner [Mon, 23 Jun 2008 15:03:53 +0000 (17:03 +0200)]
net_vampire: prepend libnet_ to the public samsync functions.
Guenther
(This used to be commit
f020c947cfb1482176af8827ed9c361d7c21e26f)
Günther Deschner [Tue, 17 Jun 2008 19:53:01 +0000 (21:53 +0200)]
net_vampire: move out display routines to one file.
Guenther
(This used to be commit
64b48a07e714d7eb97dd49c11d9ca62951d79524)
Günther Deschner [Tue, 17 Jun 2008 19:44:30 +0000 (21:44 +0200)]
net_vampire: move out passdb routines to one file.
Guenther
(This used to be commit
74d431270d9b4cc1524f79fa2ad743420afef417)
Günther Deschner [Tue, 17 Jun 2008 19:42:27 +0000 (21:42 +0200)]
net_vampire: fix included header.
Guenther
(This used to be commit
1dbe6ea8607549649f69e1b63cc427efe67e0778)
Günther Deschner [Tue, 17 Jun 2008 19:32:12 +0000 (21:32 +0200)]
net_vampire: display more deltas while doing samdump.
Guenther
(This used to be commit
43579907c3cbd5a4c07fe1f8da13c9a2a7db3f32)
Günther Deschner [Tue, 17 Jun 2008 19:22:06 +0000 (21:22 +0200)]
net_vampire: move pull_netr_AcctLockStr() to libnet.
Guenther
(This used to be commit
8ec64a96e43d2e55e81f725fe693178ecdc65e88)
Günther Deschner [Mon, 16 Jun 2008 11:36:53 +0000 (13:36 +0200)]
time: move uint64s_nt_time_to_unix_abs() to lib/time.c
Guenther
(This used to be commit
58f54f180f0a942776455ab6e813628422493dac)
Andreas Schneider [Mon, 23 Jun 2008 14:29:40 +0000 (16:29 +0200)]
Add documentation for kerberos support in libsmbclient.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
(This used to be commit
fa803ce183376c938f92b0f31a7d89d522fd309f)
Andreas Schneider [Mon, 23 Jun 2008 09:00:20 +0000 (11:00 +0200)]
Add krb5 support for the testbrowse example.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
(This used to be commit
84b1ea39a4f27ebcf06a2bafed78396c7353df0e)
Michael Adam [Mon, 23 Jun 2008 09:11:08 +0000 (11:11 +0200)]
libsmbconf: add "includes" to the forbidden_valnames[].
This removes the warning messages 'Unknown parameter encountered: "includes"'.
Michael
(This used to be commit
b20019ceaaf4a8964792f6ba37f50f91b6847e7f)
Michael Adam [Mon, 23 Jun 2008 09:09:38 +0000 (11:09 +0200)]
libsmbconf: fastpaths first in smbconf_reg_valname_valid().
Before dropping into lp_parameter_is_valid().
Michael
(This used to be commit
59beb7acd777a4c224dce90fbbff7a137d2b89c1)
Karolin Seeger [Mon, 23 Jun 2008 08:15:53 +0000 (10:15 +0200)]
Samba3 HOWTO: Remove trailing whitespaces.
Karolin
(cherry picked from commit
c7a9c903acbba9c70211e6f3c25964533bbc1622)
(cherry picked from commit
62e485eebd8a40b5692caa79bb3ed6108f0b835b)
(This used to be commit
f4933b1fac811f9a2f2a35f195d83b8ec6199590)
Karolin Seeger [Mon, 23 Jun 2008 08:28:09 +0000 (10:28 +0200)]
man pages: Correct version in man winbindd again.
Karolin
(cherry picked from commit
ef44968276bfde2fdd3370e2558fb469357414be)
(cherry picked from commit
9fd1d784cf6044c5c03cf7ab0f2373e08df64295)
(This used to be commit
7e09a1f1c22b4323be910504f77626dda47b5225)
John H Terpstra [Wed, 28 May 2008 16:02:26 +0000 (11:02 -0500)]
John H Terpstra [Wed, 28 May 2008 16:00:49 +0000 (11:00 -0500)]
Added TDB File documentation requested by some users.
(cherry picked from commit
5035311af639336fdc51fa9829e984ff281216f9)
(cherry picked from commit
a7531f4964ac8f861a41e9fa446e5a3aa69eaaa2)
(This used to be commit
e5c2665ef8cb44f1ef1ec16d21358e5f37b81d6b)
John H Terpstra [Mon, 19 May 2008 18:02:08 +0000 (13:02 -0500)]
Clarification that hosts resolution is done by winbind only on IRIX, all other systems use libnss_wins.so.
(cherry picked from commit
3a8ea6be389bedbcdb5668664d862768c026f669)
(cherry picked from commit
8522db2075f8c9e869c6224f2852ce355bba987d)
(This used to be commit
09fa3c61d96e218885c9d661ab4855b9c872233f)
John H Terpstra [Mon, 19 May 2008 18:00:01 +0000 (13:00 -0500)]
Clarification that hosts resolution is done by winbind only on IRIX, all other systems use libnss_wins.so.
(cherry picked from commit
2a953d6ba252e5ba4e28b7fae5979e7c47fe9bd0)
(cherry picked from commit
59bb2b0c9a6397bb0202055d7b00dce30d7bf03b)
(This used to be commit
5144c1b2d6891ecf5d21a0b3982276bdbcf27960)
Volker Lendecke [Mon, 23 Jun 2008 05:14:46 +0000 (07:14 +0200)]
init_shared_module -> init_samba_module
(This used to be commit
9b174871a87677f7dfbd897a80e526f203906bea)
Volker Lendecke [Sun, 22 Jun 2008 18:33:28 +0000 (20:33 +0200)]
Remove the "exists" parameter from create_msdfs_link
Jeremy, setting "exists" to True in _dfs_Add prevented the initial creation of
a new symlink for me, because the SMB_VFS_UNLINK failed. This also exists in
3.2. I only check it into 3.3 as I would like you to look at it first.
Thanks,
Volker
(This used to be commit
f58b098a4172949018e84c4d0c722d6eb9bba514)
Volker Lendecke [Sun, 22 Jun 2008 18:27:20 +0000 (20:27 +0200)]
Check for sec_initial_uid() instead of uid==0 in dfs management
(This used to be commit
948607f16112f6529f3a54cd6bbe978e8a600bc8)
Volker Lendecke [Sun, 22 Jun 2008 09:28:57 +0000 (11:28 +0200)]
Reduce memory usage in form_junctions() a little bit
(This used to be commit
d031e6d8cabe2dd0b29e90d173d45843e145176a)
Volker Lendecke [Sun, 22 Jun 2008 16:36:37 +0000 (18:36 +0200)]
Fix an abort in junction_to_local_path
(This used to be commit
587bd636cb70d09600111ced040adaa55af35d0f)
Volker Lendecke [Sun, 22 Jun 2008 11:06:35 +0000 (13:06 +0200)]
Volker Lendecke [Sun, 22 Jun 2008 10:50:30 +0000 (12:50 +0200)]
Fix an uninitialized variable access in callers of parse_msdfs_symlink
At least form_junctions() does not initialize refcount, and I don't see it in
get_referred_path(). For the latters, the callers might initialize it. But even
if they did, I think parse_msdfs_symlink() should unconditionally return the
number of referrals it found. I don't think it makes sense to count them up
from somewhere else.
(This used to be commit
73172113484a2c6c9af014f59e84707716c61a7d)
Volker Lendecke [Sat, 21 Jun 2008 14:39:05 +0000 (16:39 +0200)]
Fix a double-closedir() in form_junctions()
(This used to be commit
1d7ad0dea7ebf7a46af6e695797e5132264307d6)
Volker Lendecke [Sat, 21 Jun 2008 14:15:02 +0000 (16:15 +0200)]
Attempt to fix the darwin build
(This used to be commit
c919f5146990fa4b1b0cde79d55e5e3008b94e3f)
Volker Lendecke [Fri, 20 Jun 2008 12:30:02 +0000 (14:30 +0200)]
Use "init_shared_module" instead of "init_module" for initializing .so's
(This used to be commit
0c2fd687b25e32d446ef799927db6933bc61223d)
Volker Lendecke [Fri, 20 Jun 2008 14:22:49 +0000 (16:22 +0200)]
Make pipes_struct its own talloc ctx
(This used to be commit
829b1ad4697f2f1ea008377d591456722dccd025)
Volker Lendecke [Fri, 20 Jun 2008 14:22:32 +0000 (16:22 +0200)]
Fix a SAFE_FREE/TALLOC_FREE mixup
(This used to be commit
b39852f51313059899630ba63509fee904ba3613)
Kai Blin [Fri, 20 Jun 2008 22:07:21 +0000 (00:07 +0200)]
net: Don't crash on invalid command line options.
This backs out the workaround Jerry added in
4c3bfea9f8d238f9100eaa264b9b2941dff5a6dd.
Thanks for the catch.
(This used to be commit
20e0bb4800938863cb0aac1a19473748132043fc)
Jeremy Allison [Fri, 20 Jun 2008 20:23:31 +0000 (13:23 -0700)]
Fix bug #5531 - fix conversion of ns units when converting from nttime to timespec.
Fix from hkurma@datadomain.com.
Jeremy.
(This used to be commit
8c87a4319cc83f55fb105cae81a8efbc3fb5b98b)
Jeremy Allison [Fri, 20 Jun 2008 19:49:14 +0000 (12:49 -0700)]
Fix bug #5533. Winbindd fails to cope correctly with a workgroup name containing a '.'.
Jeremy.
(This used to be commit
96325ff44dc404a68d4ebd423cf78210ec3ff902)
root [Thu, 19 Jun 2008 17:14:32 +0000 (12:14 -0500)]
net: Fix crash when specifying invalid options on the command line
(This used to be commit
4c3bfea9f8d238f9100eaa264b9b2941dff5a6dd)
Volker Lendecke [Thu, 19 Jun 2008 16:48:10 +0000 (18:48 +0200)]
Remove current_user references from nttrans.c
(This used to be commit
5f8a5e68ea166fbeda3af6e5ec381ec09d06f0f6)
Volker Lendecke [Thu, 19 Jun 2008 16:46:57 +0000 (18:46 +0200)]
Remove current_user references from trans2.c
This involved replacing the CHECK_NTQUOTA_HANDLE_OK macro by a function.
(This used to be commit
5595cdf837edb82db69a3e57bcf3108be7feeeb8)
Volker Lendecke [Thu, 19 Jun 2008 16:36:54 +0000 (18:36 +0200)]
Remove some current_user references from trans2.c
(This used to be commit
4c31cc0b62f532eafdc44398b29b773ad8cb0646)
Volker Lendecke [Thu, 19 Jun 2008 16:21:41 +0000 (18:21 +0200)]
Remove reference to current_user from reply.c
(This used to be commit
e895e44cc7d675d128430fb53c138e5e8736e59f)
Volker Lendecke [Thu, 19 Jun 2008 14:54:12 +0000 (16:54 +0200)]
Wrap the unix token info in a unix_user_token in auth_serversupplied_info
No functional change, this is a preparation for more current_user ref removal
(This used to be commit
dcaedf345e62ab74ea87f0a3fa1e3199c75c5445)
Volker Lendecke [Thu, 19 Jun 2008 14:31:59 +0000 (16:31 +0200)]
Remove the "current_user" arg from fsp_belongs_conn
fsp_belongs_conn only used the vuid struct member anyway, and this is available
in the smb_request structure as well.
(This used to be commit
64e9372ab997739d46669c0cc4a4c6edb11d5e64)
Volker Lendecke [Thu, 19 Jun 2008 14:31:59 +0000 (16:31 +0200)]
Remove the "current_user" arg from check_fsp
check_fsp only used the vuid struct member anyway, and this is available in the
smb_request structure as well.
(This used to be commit
8d364c4c3311b406847158fc37e9208d298cf8ba)
Michael Adam [Thu, 19 Jun 2008 15:21:04 +0000 (17:21 +0200)]
loadparm: use the return value of the special handlers in lp_load().
Up to now, the bool return value was silently ignored.
Michael
(This used to be commit
c65d425fec964bc0b8778b596615a8bcce0378aa)
Michael Adam [Thu, 19 Jun 2008 15:20:22 +0000 (17:20 +0200)]
loadparm: don't treat a missing include file as an error in handle_include().
Michael
(This used to be commit
a8ef8870beb91fcd2745aa59de6c59b49ea00e39)
Michael Adam [Thu, 19 Jun 2008 15:19:21 +0000 (17:19 +0200)]
testsuite: enable the testparm_s3 tests.
Michael
(This used to be commit
0f5c13e5735990f4325f98156a7dc410276372fe)
Michael Adam [Thu, 19 Jun 2008 15:14:39 +0000 (17:14 +0200)]
testsuite: add a testparm_s3 test script.
This is a first testparm/lp_load test that runs testparm on a couple
of configuration files. The main purpose for now is to test the options
that have special handlers (to check whether the handlers succeed).
In particular, all the Macro expansions that are available via
alloc_sub_basic() are tested with the include handler. This is to
catch such crashbugs as #5548 where %m expansion led to a segfault.
The tests now are very simple. Just check if testparm completes
successfully on the given config files. This can (and should) be
elaborated in the future.
Michael
(This used to be commit
eb28146d40b8a8bc2c20b8d222abf191ea178d5a)
Michael Adam [Thu, 19 Jun 2008 11:52:49 +0000 (13:52 +0200)]
testsuite: update introductory comment to test_net_regsistry.sh
This is now used to test rpc and local access depending on
command line parameters.
Michael
(This used to be commit
73c17b630317b5019e5d5f2b989b8de081a73e07)
Volker Lendecke [Thu, 19 Jun 2008 13:48:05 +0000 (15:48 +0200)]
Remove current_user_info reference from vfs_recycle.c
(This used to be commit
fdc03c0a5ba0da4fbc4610880e06150c11d4c737)
Volker Lendecke [Thu, 19 Jun 2008 13:46:44 +0000 (15:46 +0200)]
Remove current_user_info reference from vfs_fake_perms.c
(This used to be commit
a227181e8d2ed0824a323a3d4b4cfda5e438f8ce)
Volker Lendecke [Thu, 19 Jun 2008 13:44:15 +0000 (15:44 +0200)]
Remove current_user_info reference from vfs_expand_msdfs.c
(This used to be commit
05a66980a9b5a7c6222ceb038d819d23fd172186)
Volker Lendecke [Thu, 19 Jun 2008 13:43:52 +0000 (15:43 +0200)]
current_user is not used in vfs_aixacl2.c
(This used to be commit
407136abdf45ad832382dba44e1c9a3b4f253f09)
Volker Lendecke [Tue, 17 Jun 2008 14:22:43 +0000 (16:22 +0200)]
RWX on a file does not imply DELETE access
Without this the changed checks in can_delete_file_in_directory give DELETE
access where there is none. So we can end up granting the ntcreate&x preparing
the unlink where we should not, which leads to a NT_STATUS_ACCESS_DENIED at
close time later, which in turn does *not* give the access denied error message
in the Windows GUI.
can_delete_file_in_directory will grant access now by looking at the directory
permissions.
(This used to be commit
51b5364c2afb3a18df4bec2bc1624760ccc01676)
Volker Lendecke [Thu, 19 Jun 2008 12:53:46 +0000 (14:53 +0200)]
Fix checks in can_delete_file_in_directory()
With at least NFSv4 ACLs around the write permission for the owner is a bogus
check if we can delete a file in a directory. Like in Windows, there are two
ways which can grant us such: First, the DELETE permission on the file itself,
or if that does not help, the DELETE_CHILD permission on the directory. It
might be a bit more code that runs, but essentially we should end up with the
same set of syscalls in the non-acl case.
(This used to be commit
daa9b056645a45edfb3a70e3536011ebe5678970)