s4: popt: Global replace of cmdline_credentials -> popt_get_cmdline_credentials(). Add one use of popt_set_cmdline_credentials(). Fix 80 column limits when cmdline_credentials changes to popt_get_cmdline_credentials(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
s4:torture: Fix cleanup of the secrets object in session_key test BUG: https://bugzilla.samba.org/show_bug.cgi?id=12433 The test is known to be failing if sealing is turned on in some circumstances. In this case a secret is created and then the function dcerpc_fetch_session_key() fails. The secret is not removed! We use torturesecret-%08x with random() to fill in the number. Sometimes it happens that random() returns a number we already used. So we end up trying to create a secret for an entry which already exists and run into a collision This change makes sure we always cleanup behind us and do not leave secret objects we created. Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Nov 17 22:30:36 CET 2016 on sn-devel-144
s4:torture: Normalizes names in session_key test BUG: https://bugzilla.samba.org/show_bug.cgi?id=12433 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
s4:torture: Strip trailing whitespaces in session_key.c BUG: https://bugzilla.samba.org/show_bug.cgi?id=12433 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
s4:torture/rpc: make use of dcerpc_binding_set_flags() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
s4:torture/rpc: remove unused variable in session_key.c Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
s4-smbtorture: Make test names lowercase and dot-separated. This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Revert "s4-smbtorture: skip bigendian tests against s3 in RPC-LSA-SECRETS." This reverts commit 3587bb63e21c3f033a17bb493dceb64b05fe85d6.
s4:torture/rpc: rename rpc.h => torture_rpc.h The reason for this is that some systems include <rpc/rpc.h> from within system headers. HP-UX 11.00 does so somewhere deep inside of <shadow.h>. For torture/winbind/struct_based.c <rpc/rpc.h> resolves to torture/rpc/rpc.h and breaks the build. metze
s4:torture/rpc/session_key.c: add explicit check for NTSTATUS r.out.result Guenther Signed-off-by: Stefan Metzmacher <metze@samba.org>
s4:torture/rpc/lsa*: make use of dcerpc_binding_handle stubs metze
Change uint_t to unsigned int in source4 Signed-off-by: Stefan Metzmacher <metze@samba.org>
s4-smbtorture: skip bigendian tests against s3 in RPC-LSA-SECRETS. Guenther
s4-torture: ran minimal_includes.pl over source4/torture This reduces compile time somewhat.
s4-torture: fixed a fd/mem leak in the RPC-LSA-SECRETS test This test left a large number of lsa pipes open, which could trigger the server running out of fds
s4-smbtorture: rename SECRETS to LSA-SECRETS. Guenther
Don't use lsa_Delete any more, as smbd now refuses it. (This used to be commit 8e1285a1ee60e3d3b7352ab7269d535c41916b46)
Remove more event_context_init() uses from function calls within deep down the code. Make sure we pass around the event_context where we need it instead. All test but a few python ones fail. Jelmer promised to fix them. (This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
r26588: Janitorial: Rename torture_*_add_*test to torture_*_add_*test_const. Also rename the corresponding wrap_ functions. (This used to be commit e59c2eaf681f076d175b9779d1c27b5f74a57c96)