summaryrefslogtreecommitdiff
path: root/source4/torture/unix
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture: Improve error message in whoami testAndreas Schneider2018-01-141-2/+7
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Sun Jan 14 22:09:24 CET 2018 on sn-devel-144
* s4: popt: Global replace of cmdline_credentials -> ↵Jeremy Allison2017-05-112-4/+6
| | | | | | | | | | | 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: Change torture_register_suite() to add a TALLOC_CTX *.Jeremy Allison2017-05-051-2/+2
| | | | | | | | Change callers to use the passed in TALLOC_CTX * instead of talloc_autofree_context(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* lib: modules: Change XXX_init interface from XXX_init(void) to ↵Jeremy Allison2017-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | XXX_init(TALLOC_CTX *) Not currently used - no logic changes inside. This will make it possible to pass down a long-lived talloc context from the loading function for modules to use instead of having them internally all use talloc_autofree_context() which is a hidden global. Updated all known module interface numbers, and added a WHATSNEW. Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 22 01:17:00 CEST 2017 on sn-devel-144
* lib: Convert callers of sid_blob_parse to sid_parseVolker Lendecke2015-08-261-3/+13
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:torture: avoid use of uninitialized variable in error case.Michael Adam2015-03-231-1/+1
| | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Mon Mar 23 18:40:18 CET 2015 on sn-devel-104
* s4:torture/unix: add missing #include "torture/unix/proto.h"Stefan Metzmacher2014-04-022-0/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4-torture: Use torture_fail() in the unix.unix_info2 testAndrew Bartlett2012-08-201-2/+3
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Aug 20 15:36:48 CEST 2012 on sn-devel-104
* s4-torture: Move check of map-to-guest above SID list checkAndrew Bartlett2012-07-191-13/+13
| | | | | | This makes it easier to interpret failing output. Andrew Bartlett
* s4-torture: Allow unix.whoami to test against a member serverAndrew Bartlett2012-07-191-11/+55
| | | | | | | | | | | This compares only the domain SIDs betwen the two servers, rather than the full token, as well known and other SIDs may be added locally in both cases. This also expands the test environments this is run against to verify this between our AD server and domain members. Andrew Bartlett
* s4-torture: Also print GID values in whoami testAndrew Bartlett2012-07-191-0/+3
|
* torture: Print SIDs as additional debug output in unix.whoamiChristof Schmitt2012-07-191-0/+4
|
* selftest: Test unix.whoami with kerberos on plugin_s4_dcAndrew Bartlett2012-06-241-16/+4
| | | | | | | | This also tests the comparison with LDAP on anonymous connections and marks this as knownfail, while we investigate the correct behaviour here. Andrew Bartlett
* s4-torture: Expand whoami test to confirm the user token.Andrew Bartlett2012-06-201-2/+44
| | | | | | | | | | | | | This uses the tokenGroups attribute on LDAP and the posix whoami call to confirm that user token matches between LDAP and CIFS. I have a seperate patch for the anonymous case, because this isn't consistent at this stage, and we need to study and fix that. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 20 18:43:43 CEST 2012 on sn-devel-104
* s4-torture: Change the unix.whoami test to use torture_assert()Andrew Bartlett2012-06-201-24/+19
|
* libcli/smb Move cifs posix helper functions and headers in commonAndrew Bartlett2011-05-061-4/+0
| | | | | | unix_perms_to_wire() was a duplicate symbol in the top level build. Andrew Bartlett
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-3/+3
| | | | | | | | 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_ conversionAndrew Tridgell2010-07-162-12/+12
| | | | | | | 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>
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-1/+1
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-182-2/+0
|
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-202-7/+0
| | | | This reduces compile time somewhat.
* s4:torture: s/private/private_dataStefan Metzmacher2009-02-021-2/+2
| | | | metze
* Manually marshall dom_sid, so we can use a fixed size array forJelmer Vernooij2008-12-121-5/+0
| | | | | | | | | dom_sid.sub_auths rather than a dynamically allocated one. This makes it possible to use the same DCE/RPC object code for Samba 3 and Samba 4's DCE/RPC parsers and allows copying sids more easily (since they no longer contain any pointers). The cost of having additional manual marshalling code is limited (~35 additional lines of C code).
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-022-2/+4
| | | | | | Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
* Fix the build.Jelmer Vernooij2008-11-022-2/+2
|
* Eliminate another instance of global_loadparm.Jelmer Vernooij2008-10-242-2/+4
|
* Cope with API changes.Jelmer Vernooij2008-09-302-2/+6
|
* UNIX-WHOAMI: fix compiler warningsStefan Metzmacher2008-09-091-2/+2
| | | | | metze (This used to be commit ec5d8ddadb76ff0d2cb72872e4d145a7527f0ec6)
* Move subunit infrastructure code into lib/torture.Jelmer Vernooij2008-04-271-1/+1
| | | | (This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
* Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce2008-04-212-3/+3
| | | | | | | | 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)
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-0/+1
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* r26654: libcli/smb_composite: Rather than specifying each of the gazillion ↵Jelmer Vernooij2008-01-032-2/+9
| | | | | | options for SMB individually, just specify the smbcli_options struct. (This used to be commit 8a97886e24a4b969aa91409c06f423b71a45f6eb)
* r26644: Janitorial: Pass resolve_context explicitly to various SMB ↵Jelmer Vernooij2008-01-022-2/+6
| | | | | | functions, should help fix the build for OpenChange. (This used to be commit 385ffe4f4cc9a21a760c0f00410f56e2592fd507)
* r26409: Pass smb ports along.Jelmer Vernooij2007-12-212-4/+7
| | | | (This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f)
* r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij2007-12-211-25/+15
| | | | | | uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-102-31/+31
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25430: Add the loadparm context to all parametric options.Jelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit fd697d77c9fe67a00939a1f04b35c451316fff58)
* r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij2007-10-101-2/+2
| | | | | | number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r24728: Use more stock torture functions.Jelmer Vernooij2007-10-101-5/+5
| | | | (This used to be commit da3a7ee407a2b41bd01f45072cad12bf29250b33)
* r24631: Fix up format warnings, found on my Fedora 7 x86_64 workstation.Andrew Bartlett2007-10-101-2/+2
| | | | | Andrew Bartlett (This used to be commit 3d74d178bfd89127ff387939e848b240e638cc35)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-103-9/+6
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r22188: fix formating bugStefan Metzmacher2007-10-101-1/+1
| | | | | metze (This used to be commit e40912a2fd011351c6f0e7112f2984763bc53cb6)
* r21951: Hopefully fix valgrind warning.James Peach2007-10-101-0/+1
| | | | (This used to be commit e5d0487f3196da4e5aa79a6f285b3f3d23d303ca)
* r21949: After discussion with the Apple and Linux client maintainers,James Peach2007-10-101-2/+2
| | | | | | | changing the FindFirst response for the UNIX_INFO2 level to include a length field before the name. The name is not required to be null terminated. the lenght field does not count any null. (This used to be commit eef672bfff6b112ceceec2a58c78042352e83276)
* r21710: Add client support for the UNIX_INFO2 info level in the QueryFile,James Peach2007-10-102-1/+460
| | | | | | QueryPath and FindFirst calls. Add a new torture test to verify the server side. (This used to be commit 7f56da2d1fa0718e5282bb4aea7d9a63a62f0bc7)
* r21668: Add SMB_QFS_POSIX_WHOAMI to trans2.h so it's easy to find. AddJames Peach2007-10-101-12/+13
| | | | | | convenience API to create an anonymous credential. Don't clobber cmdline_credentials in the UNIX-WHOAMI test. (This used to be commit 73cea4e0c66f57057ed12b07bbb94b4e783ba6bf)
* r21659: Rename functions.James Peach2007-10-102-2/+2
| | | | (This used to be commit 6e645577a60bc79431a962b6522e8592b7c50e98)
* r21648: Start a UNIX extensions test set. Add a test for the SMBWhoami query.James Peach2007-10-102-0/+381
(This used to be commit ca89683dc28104a8cee23b0c1428350f22a68c99)