Gregor Beck
64f8306e8e
s3-net: add roundtrip tests for registry import/export
2011-01-21 10:10:03 +01:00
Volker Lendecke
46a3019d36
s3: Fix the code to immediately disconnect from a non-working ctdbd
2011-01-21 10:10:02 +01:00
Rusty Russell
385d925f7e
s3:vfs:gpfs: fix logic when gpfs:winattr is false (the default!)
...
On my autocluster setup, it's not set. Maybe it should be? Otherwise
smbclient and some Windows client programs will get errors like:
# smbclient //localhost/data -Uadministrator%XXX
Domain=[VSOFS1] OS=[Unix] Server=[Samba 3.4.2-ctdb-10]
smb: \> put /etc/resolv.conf resolv.conf
NT_STATUS_ACCESS_DENIED closing remote file \resolv.conf
smb: \>
Caused by attempting to update the time on close.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael Adam <obnox@samba.org>
2011-01-21 10:10:02 +01:00
Stefan Metzmacher
b7d6d3b840
s3:librpc: remove prototype of dcerpc_binding_handle_set_ref_alloc()
...
This function doesn't exist anymore.
metze
2011-01-21 07:21:10 +01:00
Jeremy Allison
78b931ce6c
Remove all uses of "./" in pathnames - make canonical. This will become important when we need to guarantee canonical names for hashing.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jan 21 02:59:56 CET 2011 on sn-devel-104
2011-01-21 02:59:56 +01:00
Jeremy Allison
de4b09ca01
Ensure we don't use "./" in findfirst pathnames. Use a directory open of "." instead.
2011-01-20 16:30:28 -08:00
Jeremy Allison
bb54f72b94
Make processing of incoming stream rename paths common between reply_mv and ntrename. Ensure we don't depend on "./" in the streams module.
2011-01-20 16:27:56 -08:00
Stefan Metzmacher
c3ad9bf157
s3:smbd: use anonymous_shared_free() for shared memory signing state
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan 20 07:48:29 CET 2011 on sn-devel-104
2011-01-20 07:48:29 +01:00
Stefan Metzmacher
34ea909636
lib/util: s/allocate_anonymous_shared/anonymous_shared_allocate/
...
metze
2011-01-20 05:31:45 +01:00
Andreas Schneider
4744da8762
s3-param: Fixed code block in max_open_files().
...
When the HAVE_GETRLIMIT and RLIMIT_NOFILE macros are defined the block
isn't closed.
Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Wed Jan 19 23:10:50 CET 2011 on sn-devel-104
2011-01-19 23:10:50 +01:00
Andreas Schneider
7a97518e12
s3-smbd: Fixed a possible null pointer dereference.
2011-01-19 22:27:48 +01:00
Volker Lendecke
7f87d58900
s3: Add wbinfo --dc-info
...
wbinfo --dc-info prints the current DC name and IP address. This helps
diagnosing problems that might happen when a later wbinfo --ping-dc fails.
This patch started out by using the SAF and NBT cache entires, but those are
relatively short-lived. So I decided to invent a new gencache entry with a very
long timeout. We need to go via the gencache because when for some reason a
winbind child process is stuck, we can't query it for the current DC it's
connected to. This must eventually go away again when we have a fully async
winbind.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan 19 08:40:28 CET 2011 on sn-devel-104
2011-01-19 08:40:28 +01:00
Jeremy Allison
1b43996022
Add DELETE-LN test to show bug #7863 - Unlink may unlink wrong file when hardlinks are involved
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jan 19 03:06:32 CET 2011 on sn-devel-104
2011-01-19 03:06:32 +01:00
Olly Betts
f8f1711f61
Fix "net usersidlist" not to skip every other user
...
Remove double increment from for loop over users in get_user_tokens(),
left over from when this used to be a while loop. Bug was introduced
in 1e39a619
.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jan 19 01:34:29 CET 2011 on sn-devel-104
2011-01-19 01:34:29 +01:00
Günther Deschner
49969e6aeb
s3-winbind: no need to include ../librpc/gen_ndr/cli_lsa.h in
...
winbindd/winbindd_msrpc.c.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 19 00:37:46 CET 2011 on sn-devel-104
2011-01-19 00:37:46 +01:00
Günther Deschner
5efe6566a0
s3-rpc_client: no need to include ../librpc/gen_ndr/ndr_lsa_c.h anymore.
...
Guenther
2011-01-18 23:54:31 +01:00
Günther Deschner
6feed0c9d2
s3-netlogon: no need to include ../librpc/gen_ndr/ndr_lsa_c.h anymore.
...
Guenther
2011-01-18 23:54:31 +01:00
Günther Deschner
6ed4121d54
s3-netlogon: no need to include ../librpc/gen_ndr/cli_samr.h anymore.
...
Guenther
2011-01-18 23:54:31 +01:00
Günther Deschner
430664d769
s3-net: use correct spoolss header in net rpc.
...
Guenther
2011-01-18 23:54:31 +01:00
Günther Deschner
66bc2f9127
s3-net: use correct spoolss header in net_ads.c.
...
Guenther
2011-01-18 23:54:30 +01:00
Jeremy Allison
7754b75065
Fix error where Windows client spoolss returns WERR_INVALID_DATA W_ERROR(0x0000000D)
...
on opening a printer. We can't return zero for devmode->size. Guenther please check !
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jan 18 23:45:33 CET 2011 on sn-devel-104
2011-01-18 23:45:33 +01:00
Andreas Schneider
93da0aab97
s3-rpc_client: Fixed status check of dcerpc_lsa_lookup_sids_noalloc.
...
Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Mon Jan 17 17:35:50 CET 2011 on sn-devel-104
2011-01-17 17:35:50 +01:00
Andreas Schneider
296a958c57
s3-rpc_client: Fixed return values of dcerpc_lsa_lookup_sids_generic.
2011-01-17 16:50:55 +01:00
Andreas Schneider
ad65605643
s3-auth: Fixed account lockout check.
2011-01-17 16:50:50 +01:00
Volker Lendecke
9b94f36605
s3: Make sure we call wbcAuthenticateUserEx correctly
...
There are cases where we fill in params.password.response.lm_data with non-NULL
where params.password.response.lm_length is 0. wbcAuthenticateUserEx does not
like that.
I haven't been able to reproduce this with smbclient yet, I've seen it with a
proprietary smb client implementation.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jan 17 16:30:11 CET 2011 on sn-devel-104
2011-01-17 16:30:11 +01:00
Stefan Metzmacher
528bcedbc5
s3:build: don't use librpc/gen_ndr/cli_echo.[ch] anymore
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jan 17 09:34:12 CET 2011 on sn-devel-104
2011-01-17 09:34:12 +01:00
Stefan Metzmacher
494e57d913
s3:torture: use dcerpc_echo_X() functions
...
metze
2011-01-17 08:48:25 +01:00
Stefan Metzmacher
85db5c9f8f
s3:rpcclient: use dcerpc_echo_X() functions
...
metze
2011-01-17 08:48:25 +01:00
Volker Lendecke
d3abc90401
s3: Avoid a few calls to cli_errstr
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jan 17 08:47:25 CET 2011 on sn-devel-104
2011-01-17 08:47:25 +01:00
Volker Lendecke
c7a5933e4b
s3: Remove some unused code
2011-01-17 08:03:43 +01:00
Volker Lendecke
6f3e11088c
s3: Convert cli_lock64 to cli_smb
2011-01-17 08:03:43 +01:00
Volker Lendecke
dd2f234412
s3: Convert cli_lock to use cli_locktype
2011-01-17 08:03:43 +01:00
Volker Lendecke
0e2854f743
s3: Convert cli_locktype to cli_smb
2011-01-17 08:03:43 +01:00
Volker Lendecke
7b054ecaed
s3: Make passing up "result_parent" from cli_smb optional
2011-01-17 08:03:43 +01:00
Volker Lendecke
b33f1147a6
s3: Remove unused cli_send_keepalive
2011-01-17 08:03:42 +01:00
Volker Lendecke
6e684c8460
s3: Remove unused cli_send/receive_trans
2011-01-17 08:03:42 +01:00
Volker Lendecke
cba5a26734
s3: Convert try_trans2 to cli_trans
2011-01-17 08:03:42 +01:00
Volker Lendecke
8ac68fc3cb
s3: Convert cli_api to cli_trans
2011-01-17 08:03:42 +01:00
Volker Lendecke
cb412d22eb
s3: Make cli_setpathinfo_basic use cli_setpathinfo
2011-01-17 08:03:42 +01:00
Volker Lendecke
21d5485e06
s3: Add cli_setpathinfo
2011-01-17 08:03:42 +01:00
Volker Lendecke
2068b96dce
s3: Rename cli_setpathinfo->cli_setpathinfo_basic
2011-01-17 08:03:42 +01:00
Volker Lendecke
2d44a0583b
s3: Remove unused cli_send/receive_nt_trans
2011-01-17 08:03:42 +01:00
Volker Lendecke
d5decfbb26
s3: Convert try_nttrans to cli_trans
2011-01-17 08:03:41 +01:00
Volker Lendecke
5dee39b5bf
s3: Move dump_ntquota* to smbcquotas.c
2011-01-17 08:03:41 +01:00
Volker Lendecke
a1f541723d
s3: Convert cli_set_fs_quota_info to cli_trans
2011-01-17 08:03:41 +01:00
Volker Lendecke
797c027cc8
s3: Convert cli_get_fs_quota_info to cli_trans
2011-01-17 08:03:41 +01:00
Volker Lendecke
483e0447f5
s3: Convert cli_list_user_quota to cli_trans
2011-01-17 08:03:41 +01:00
Volker Lendecke
eb7db50f60
s3: Convert cli_set_user_quota to cli_trans
2011-01-17 08:03:41 +01:00
Volker Lendecke
e2a96711d7
s3: Convert cli_get_user_quota to cli_trans
2011-01-17 08:03:41 +01:00
Volker Lendecke
bc5554bdcc
s3: Fix some nonempty blank lines
2011-01-17 08:03:40 +01:00
Volker Lendecke
d9204622e3
s3: Fix a C++ warning
2011-01-17 08:03:40 +01:00
Volker Lendecke
674dcd68a6
s3: Remove cli_send_trans from cli_qpathinfo_alt_name
2011-01-17 08:03:40 +01:00
Volker Lendecke
fc8bfeea31
s3: Remove cli_send_trans from cli_oem_change_password
2011-01-17 08:03:40 +01:00
Volker Lendecke
77f8b004dc
s3: Avoid some calls to cli_errstr
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Jan 15 17:18:54 CET 2011 on sn-devel-104
2011-01-15 17:18:54 +01:00
Volker Lendecke
50b3458261
s3: Convert cli_set_secdesc to cli_trans
2011-01-15 16:34:35 +01:00
Volker Lendecke
4fc5699a79
s3: Fix some nonempty blank lines
2011-01-15 16:34:35 +01:00
Jeremy Allison
dbaeb52ebe
Add OPLOCK4 test which explores how Windows copes with oplock and share mode breaks on hard links.
...
Jeremy.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jan 15 00:59:46 CET 2011 on sn-devel-104
2011-01-15 00:59:46 +01:00
Volker Lendecke
109cbe37a2
s3: Fix bug 7917: Yet another bug in chain_reply
...
Found by Michael Hanscho <samba@micha.priv.at> with a WinCE client.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jan 14 17:42:05 CET 2011 on sn-devel-104
2011-01-14 17:42:05 +01:00
Günther Deschner
d7af8753ab
s3-waf: fix the build after rpc_winreg removal.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jan 14 11:38:40 CET 2011 on sn-devel-104
2011-01-14 11:38:40 +01:00
Christian Ambach
70b4c08c81
s3:vfs aio_fork children do not go away
...
on RHEL 5.5, recvmsg() does not return when it is reading
from the socket and the process on the other side closes
its connection. This left aio children around that should
have gone already and were just wasting system resources.
This patch makes the child go away by writing invalid
data to it so that the child exits.
Pair-Programmed-With: Volker Lendecke <vl@samba.org>
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jan 14 09:57:18 CET 2011 on sn-devel-104
2011-01-14 09:57:18 +01:00
Christian Ambach
fa07208cee
s3:vfs fix children cleanup in aio_fork
...
the cleanup loop in aio_fork always stopped operation
on the first inactive child it found. In case lots of
children need to be reaped, it will take multiple runs
before all children are gone
2011-01-14 09:11:19 +01:00
Paul B. Henson
99a74ff5e6
Fix bug #7909 - map SYNCHRONIZE acl permission statically in zfs_acl vfs module.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jan 13 20:02:32 CET 2011 on sn-devel-104
2011-01-13 20:02:31 +01:00
Günther Deschner
a556896d1e
s3-build: remove RPCCLI_WINREG subsystem.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Thu Jan 13 15:06:36 CET 2011 on sn-devel-104
2011-01-13 15:06:36 +01:00
Günther Deschner
2e54b01bde
s3-waf: remove RPCCLI_WINREG subsystem.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:16:46 +01:00
Günther Deschner
166504adb7
s3-net_registry: prefer dcerpc_winreg_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:16:39 +01:00
Günther Deschner
da433458e5
s3-net: prefer dcerpc_winreg_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:15:00 +01:00
Günther Deschner
a451c54b3d
s3-spoolss: no need to include cli_winreg header anymore.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:14:36 +01:00
Günther Deschner
d97eb89c2a
s3-rpcclient: prefer dcerpc_winreg_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:14:28 +01:00
Günther Deschner
7e959004d7
s3-build: remove RPCCLI_SRVSVC subsystem.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:14:04 +01:00
Günther Deschner
9204e04f27
s3-waf: remove RPCCLI_SRVSVC subsystem.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:13:55 +01:00
Günther Deschner
bded49f5d6
s3-rpcclient: prefer dcerpc_srvsvc_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:13:46 +01:00
Günther Deschner
8aa5b067b9
s3-net: prefer dcerpc_srvsvc_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:12:52 +01:00
Günther Deschner
1ea6dd35f4
s3-smbtree: prefer dcerpc_srvsvc_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:12:23 +01:00
Günther Deschner
4189c00cae
s3-lanman: prefer dcerpc_srvsvc_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:12:14 +01:00
Günther Deschner
44e048f7a8
s3-libsmbclient: prefer dcerpc_srvsvc_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:11:55 +01:00
Günther Deschner
fccfd29283
s3-smbclient: prefer dcerpc_srvsvc_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:11:29 +01:00
Günther Deschner
1ef94dffe6
s3-libnetapi: prefer dcerpc_srvsvc_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:11:16 +01:00
Günther Deschner
aa4efa154f
s3-build: remove RPCCLI_NETLOGON subsystem.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:09:38 +01:00
Günther Deschner
9a9ee03ae8
s3-waf: remove RPCCLI_NETLOGON subsystem.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:09:27 +01:00
Günther Deschner
5e4b327c4f
s3-rpcclient: prefer dcerpc_netr_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:09:18 +01:00
Günther Deschner
c9b3404c68
s3-winbind: prefer dcerpc_netr_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 14:08:09 +01:00
Günther Deschner
232378c6e5
s3-rpc_client: prefer dcerpc_netr_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:36:54 +01:00
Günther Deschner
1259e93ac0
s3-net: prefer dcerpc_netr_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:23:02 +01:00
Günther Deschner
f3eb5c234e
s3-libnet: prefer dcerpc_netr_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:22:28 +01:00
Günther Deschner
425753ebe3
s3-libnetapi: prefer dcerpc_netr_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:21:08 +01:00
Günther Deschner
f9ca6904a4
s3-net: remove some pointless fstrings in "net rpc service".
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:18:45 +01:00
Günther Deschner
d0c05ab2ec
s3-net: restructure "net rpc service" and add open_scm().
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:18:13 +01:00
Günther Deschner
3e2821acda
s3-net: restructure "net rpc service" and add open_service().
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:17:30 +01:00
Günther Deschner
5ad7d6aaa8
s3-build: remove RPCCLI_SVCCTL subsystem.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:12:04 +01:00
Günther Deschner
067e548818
s3-waf: remove RPCCLI_SVCCTL subsystem.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:11:40 +01:00
Günther Deschner
8e588550b9
s3-svcctl: prefer dcerpc_svcctl_X functions.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-01-13 12:11:08 +01:00
Volker Lendecke
8c6b0b61e5
s3: Fix some nonempty blank lines
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan 12 19:04:25 CET 2011 on sn-devel-104
2011-01-12 19:04:24 +01:00
Björn Baumbach
f5af66e67d
s3-rpcclient: Fix bug #7880 : cmd_spoolss_deletedriver() returned without checking all architectures.
...
Continues now with next architecture if no driver is available.
Because of the broken behavior of the rpccli_*() functions,
we need special error code handling.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-01-12 17:25:53 +01:00
Günther Deschner
dac7ccee9f
s3-net: fix query_service_state() error handling.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 15:22:56 CET 2011 on sn-devel-104
2011-01-12 15:22:56 +01:00
Günther Deschner
9bad150705
s3-net: add missing breaks in switch statement in get_share_info().
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 14:31:05 CET 2011 on sn-devel-104
2011-01-12 14:31:05 +01:00
Günther Deschner
1cd7f6c0e1
s3-drsuapi: fix error handling after converting to dcerpc_drsuapi_X functions.
...
Guenther
2011-01-12 13:41:16 +01:00
Günther Deschner
415a390ba8
s3-libnetapi: add missing error check after switchting to dcerpc_wkssvc_X functions.
...
Guenther
2011-01-12 13:32:10 +01:00
Günther Deschner
fa5fdb1a4e
s3-waf: finally enable large file support.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 11:59:22 CET 2011 on sn-devel-104
2011-01-12 11:59:22 +01:00
Volker Lendecke
35f08a2958
s3: Remove a pointless else
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan 12 11:12:56 CET 2011 on sn-devel-104
2011-01-12 11:12:56 +01:00
Günther Deschner
e2a3ff184e
s3-waf: add check for SO_PEERCRED.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Jan 12 02:29:48 CET 2011 on sn-devel-104
2011-01-12 02:29:48 +01:00