summaryrefslogtreecommitdiff
path: root/source4/torture/winbind
Commit message (Collapse)AuthorAgeFilesLines
* s4: popt: Global replace of cmdline_credentials -> ↵Jeremy Allison2017-05-111-1/+2
| | | | | | | | | | | 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: Add a TALLOC_CTX * to torture_winbind_struct_init().Jeremy Allison2017-05-052-3/+3
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s4: torture: Add TALLOC_CTX * to torture_winbind_init().Jeremy Allison2017-05-051-1/+1
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s4: torture: Change torture_register_suite() to add a TALLOC_CTX *.Jeremy Allison2017-05-051-3/+3
| | | | | | | | 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
* s4:torture/winbind: add more debug output to samba4.winbind.struct.domain_infoStefan Metzmacher2015-12-141-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this we hopefully find the reason for the following flakey test: [1566(10157)/1882 at 1h47m18s] samba4.winbind.struct(ad_member:local) Running WINBINDD_DOMAIN_INFO (struct based) DOMAIN 'BUILTIN' => '' [ ] [S-1-5-32] DOMAIN 'LOCALADMEMBER' => '' [ ] [S-1-5-21-4121020324-2900821022-46155812] DOMAIN 'SAMBADOMAIN' => 'samba.example.com' [ PR AD NA ] [S-1-5-21-929009974-669086582-3038401809] DOMAIN 'TORTURE300' => 'torturedom300.samba._none_.example.com' [ AD NA ] [S-1-5-21-97398-379795-300] DOMAIN 'TORTURE301' => 'torturedom301.samba._none_.example.com' [ AD NA ] [S-1-5-21-97398-379795-301] DOMAIN 'TORTURE302' => 'torturedom302.samba._none_.example.com' [ AD NA ] [S-1-5-21-97398-379795-302] DOMAIN 'TORTURE303' => 'torturedom303.samba._none_.example.com' [ AD NA ] [S-0-0] UNEXPECTED(failure): samba4.winbind.struct.domain_info(ad_member:local) REASON: Exception: Exception: ../source4/torture/winbind/struct_based.c:460: Expression `ok' failed: SID's doesn't match With the changes we get: [1566(10158)/1882 at 1h47m51s] samba4.winbind.struct(ad_member:local) Running WINBINDD_DOMAIN_INFO (struct based) LIST[0] 'BUILTIN' => '' [S-1-5-32] LIST[1] 'LOCALADMEMBER' => '' [S-1-5-21-734569583-677146317-1850798319] LIST[2] 'SAMBADOMAIN' => 'samba.example.com' [S-1-5-21-1870621479-3245899124-866531092] LIST[3] 'TORTURE300' => 'torturedom300.samba._none_.example.com' [S-1-5-21-97398-379795-300] LIST[4] 'TORTURE301' => 'torturedom301.samba._none_.example.com' [S-1-5-21-97398-379795-301] LIST[5] 'TORTURE302' => 'torturedom302.samba._none_.example.com' [S-1-5-21-97398-379795-302] LIST[6] 'TORTURE303' => 'torturedom303.samba._none_.example.com' [S-1-0-0] LIST[7] 'TORTURE304' => 'torturedom304.samba._none_.example.com' [S-1-0-0] LIST[8] 'TORTURE305' => 'torturedom305.samba._none_.example.com' [S-1-0-0] LIST[9] 'TORTURE306' => 'torturedom306.samba._none_.example.com' [S-1-5-21-97398-379795-306] LIST[10] 'TORTURE307' => 'torturedom307.samba._none_.example.com' [S-1-5-21-97398-379795-307] LIST[11] 'TORTURE308' => 'torturedom308.samba._none_.example.com' [S-1-5-21-97398-379795-308] LIST[12] 'TORTURE309' => 'torturedom309.samba._none_.example.com' [S-1-5-21-97398-379795-309] LIST[13] 'TORTURE310' => 'torturedom310.samba._none_.example.com' [S-1-5-21-97398-379795-310] LIST[14] 'TORTURE311' => 'torturedom311.samba._none_.example.com' [S-1-5-21-97398-379795-311] DOMAIN[0] 'BUILTIN' => '' [ ] [S-1-5-32] DOMAIN[1] 'LOCALADMEMBER' => '' [ ] [S-1-5-21-734569583-677146317-1850798319] DOMAIN[2] 'SAMBADOMAIN' => 'samba.example.com' [ PR AD NA ] [S-1-5-21-1870621479-3245899124-866531092] DOMAIN[3] 'TORTURE300' => 'torturedom300.samba._none_.example.com' [ AD NA ] [S-1-5-21-97398-379795-300] DOMAIN[4] 'TORTURE301' => 'torturedom301.samba._none_.example.com' [ AD NA ] [S-1-5-21-97398-379795-301] DOMAIN[5] 'TORTURE302' => 'torturedom302.samba._none_.example.com' [ AD NA ] [S-1-5-21-97398-379795-302] DOMAIN[6] 'TORTURE303' => 'torturedom303.samba._none_.example.com' [ AD NA ] [S-0-0] UNEXPECTED(failure): samba4.winbind.struct.domain_info(ad_member:local) REASON: Exception: Exception: ../source4/torture/winbind/struct_based.c:471: Expression `ok' failed: SID's doesn't match [S-1-0-0] != [S-0-0] Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Dec 14 23:26:40 CET 2015 on sn-devel-104
* torture-winbind: Assert that the list of trusted domains is not NULLAndrew Bartlett2015-05-061-6/+6
| | | | | | | | | | By doing this, we avoid the test being dependent on if the lsa trusted domains tests have run. Otherwise, we may have a non-null extra_data against the internal winbind, but only 1 trusted domain (torturedom), but not the local domains that were expected Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture/winbind: add torture:winbindd_domain_without_prefix optionStefan Metzmacher2015-04-091-3/+5
| | | | | | | | | | | | | | | We should not assume that names in the domain specified by 'torture:winbindd_netbios_domain' have no DOMAIN\ prefix. On an AD DC we prefix all principals. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11183 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Apr 9 19:35:38 CEST 2015 on sn-devel-104
* s4:torture/winbind: remove allow_warnings=TrueStefan Metzmacher2015-03-201-1/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:torture/winbind: avoid compiler warningsStefan Metzmacher2015-03-201-3/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Make winbind client library thread-safe by adding contextMatthew Newton2015-03-101-1/+1
| | | | | | | | | | Rather than keep state in global variables, store the current context such as the winbind file descriptor in a struct that is passed in. This makes the winbind client library thread-safe. Signed-off-by: Matthew Newton <matthew-git@newtoncomputing.co.uk> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Fix the O3 developer buildVolker Lendecke2015-03-031-1/+1
| | | | | | | | | | Different gcc versions complain at different places Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Mar 3 13:14:53 CET 2015 on sn-devel-104
* Fix the developer O3 buildVolker Lendecke2015-02-251-1/+1
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Wed Feb 25 16:32:29 CET 2015 on sn-devel-104
* torture: Improve winbindd.pac test to check multiple GENSEC mechanimsAndrew Bartlett2014-12-181-10/+57
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
* s4:torture/winbind: remove unused variables in struct_based.cStefan Metzmacher2014-11-251-4/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* torture: Reorder torture_winbind_struct_domain_info testsAndrew Bartlett2014-10-061-18/+19
| | | | | | | | | | | | | | | This tries to ensure we get enough information to debug this intermittent failure. I think this may be a real failure, but it is hard to tell without more info. This patch prints out the full details of what the domain returned before doing the assertions. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* third_party/popt: Initial support for popt.Ira Cooper2014-08-091-1/+1
| | | | | | | ctdb, ldb, and samba are supported builds for third_party popt. Signed-off-by: Ira Cooper <ira@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Set winbind separator = /Andrew Bartlett2014-06-041-1/+1
| | | | | | | | | | This avoids a pile of shell-script escape pain, and fixes some tests. Andrew Bartlett Change-Id: Ie1d0e32ab484a5b0ddbc4073831fe6de27e38e92 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4:torture/winbind: explicitly use allow_warnings=TrueStefan Metzmacher2014-04-021-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:torture/winbind: remove unused variableStefan Metzmacher2014-04-021-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* auth/gensec: remove tevent_context argument from gensec_update()Stefan Metzmacher2014-03-271-2/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* torture: Ensure that GSSAPI and SPNEGO packets are accepted by dlz_bind9Andrew Bartlett2013-09-041-0/+1
| | | | | | | | | | | | | | This exercises some more of the dlz_bind9 code outside BIND, by sending in a ticket to be access checked, wrapped either in SPNEGO or just in GSSAPI. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Sep 4 11:25:10 CEST 2013 on sn-devel-104
* s4-torture: Complete test for winbindd PAC parsingChristof Schmitt2012-09-201-6/+86
| | | | | | | Decode the PAC through the wbcAuthenticateUserEx call, also decode it locally and compare the result. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-torture: Add start of a test to confirm winbindd PAC parsingAndrew Bartlett2012-08-291-0/+153
| | | | | | | So far this confirms that we can accept a ticket using the secrets.tdb entry. Andrew Bartlett
* Remove strlower_m() and strupper_m() from source4 and common code.Andrew Bartlett2011-05-031-1/+0
| | | | | | | | | This function is problematic because a string may expand in size when changed into upper or lower case. This will then push characters off the end of the string in the s3 implementation, or panic in the former s4 implementation. Andrew Bartlett
* source4/torture: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-0/+1
|
* Fix some typesJelmer Vernooij2011-02-281-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
* pam: share pam errors in a common location.Günther Deschner2011-02-081-1/+1
| | | | Guenther
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-112-21/+21
| | | | | | | | 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: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-16/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* s4: Rename WBCLIENT to wbclient.Jelmer Vernooij2010-10-241-1/+1
|
* waf: Rename LIBWINBIND-CLIENT to libwinbind-clientJelmer Vernooij2010-10-241-1/+1
|
* libwbclient: Remove half-finished async implementationKai Blin2010-10-122-2/+2
| | | | | | | | The old approach on doing async libwbclient was never really finished. Go ahead and remove this implementation. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Oct 12 07:05:31 UTC 2010 on sn-devel-104
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-5/+5
| | | | | | | 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>
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: waf quicktest nearly worksAndrew Tridgell2010-04-061-1/+1
| | | | | Rewrote wafsamba using a new dependency handling system, and started adding the waf test code
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+8
|
* s4:torture/winbind/struct_based.c - fix up (un)signedness of a function argumentMatthias Dieter Wallnöfer2010-03-051-1/+2
| | | | Otherwise always a warning is generated.
* s4-smbtorture: fix WINBIND-STRUCT assumptions about getpwent() for s3.Günther Deschner2010-03-021-5/+16
| | | | | | | | | In samba3 it is not an error when no users are returned in getpwent() calls (e.g. on a DC w/o interdomain trusts). Kai, please check. Guenther
* libwbclient: Separate out the async functionsKai Blin2010-02-131-1/+1
|
* s4 selftest: Fix and reenable WINBIND-STRUCT.NETBIOS_NAME testKai Blin2010-01-161-4/+5
|
* s3 test: Fix WINBINDD-STRUCT testsKai Blin2010-01-141-2/+2
| | | | | The struct-based tests are working in make selftest, make them work in plain "make test" as well.
* s3 selftest: Fix LOOKUP_SID test.Kai Blin2010-01-141-4/+12
| | | | | WINBINDD_LIST_USERS does not give a domain name if we're a DC and the user is from our domain.
* s3 selftest: Fix WINBINDD_LIST_GROUPS testKai Blin2010-01-141-9/+22
| | | | | | | If there's no groups in the database, there are no entries in extra_data. This caused WINBINDD_LIST_GROUPS test to fail. Use the fact that WINBINDD_LIST_GROUPS now reports the number of groups in data.num_entries to identify the "no groups" case.
* s3 selftest: Allow the enumeration of users and groupsKai Blin2010-01-141-1/+1
| | | | This fixes the WINBINDD_GETPWENT test.
* s3 selftest: Fix the WINBINDD_GETDCNAMEe test.Kai Blin2010-01-141-0/+10
| | | | | | The WINBINDD_GETDCNAME test expected an NSS_STATUS_SUCCESS return from all calls. However, this does not apply for BUILTIN and the DC's own domain. Make the test work again by skipping those two.
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-1/+0
| | | | This reduces compile time somewhat.
* s4-smbtorture: add very basic libwbclient testsuite.Günther Deschner2009-10-162-2/+3
| | | | Guenther
* Fix missing symbols issues when building with shared libraries.Jelmer Vernooij2008-12-221-1/+2
|
* s4:torture: fix the build with auto dependenciesStefan Metzmacher2008-11-161-1/+1
| | | | metze