1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

71 Commits

Author SHA1 Message Date
Andrew Bartlett
2742ec0e34 Remove strlower_m() and strupper_m() from source4 and common code.
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
2011-05-03 07:37:07 +02:00
Jelmer Vernooij
fc720be5a2 source4/torture: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
Jelmer Vernooij
59a077d8f5 Fix some types
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
2011-02-28 23:30:06 +01:00
Günther Deschner
34722c72f6 pam: share pam errors in a common location.
Guenther
2011-02-08 14:05:36 +01:00
Jelmer Vernooij
35fbc7bbda 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
2010-12-11 04:16:13 +01:00
Jelmer Vernooij
3deece5591 s4: Remove the old perl/m4/make/mk-based build system.
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
2010-10-31 02:01:44 +00:00
Jelmer Vernooij
a57bd4e2d8 s4: Rename WBCLIENT to wbclient. 2010-10-24 00:20:04 +00:00
Jelmer Vernooij
2bcd7f6827 waf: Rename LIBWINBIND-CLIENT to libwinbind-client 2010-10-24 00:20:04 +00:00
Kai Blin
5ad0ed2181 libwbclient: Remove half-finished async implementation
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
2010-10-12 07:05:31 +00:00
Andrew Tridgell
6b266b85cf 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>
2010-07-16 18:24:27 +10:00
Andrew Tridgell
f9eae32f4b s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them 2010-04-06 20:27:11 +10:00
Andrew Tridgell
844acb2260 build: waf quicktest nearly works
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
845e0cbe6f build: commit all the waf build files in the tree 2010-04-06 20:26:48 +10:00
Matthias Dieter Wallnöfer
bfd31db9a9 s4:torture/winbind/struct_based.c - fix up (un)signedness of a function argument
Otherwise always a warning is generated.
2010-03-05 08:55:47 +01:00
Günther Deschner
f36dafd852 s4-smbtorture: fix WINBIND-STRUCT assumptions about getpwent() for s3.
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
2010-03-02 19:03:17 +01:00
Kai Blin
b99d9f86e4 libwbclient: Separate out the async functions 2010-02-13 14:30:36 +01:00
Kai Blin
791a2df656 s4 selftest: Fix and reenable WINBIND-STRUCT.NETBIOS_NAME test 2010-01-16 12:38:12 +01:00
Kai Blin
cf38a1f850 s3 test: Fix WINBINDD-STRUCT tests
The struct-based tests are working in make selftest, make them work in plain
"make test" as well.
2010-01-14 15:18:35 +01:00
Kai Blin
89e6eac290 s3 selftest: Fix LOOKUP_SID test.
WINBINDD_LIST_USERS does not give a domain name if we're a DC and the user is
from our domain.
2010-01-14 15:18:35 +01:00
Kai Blin
e95c04f0f1 s3 selftest: Fix WINBINDD_LIST_GROUPS test
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.
2010-01-14 15:18:35 +01:00
Kai Blin
a4f21d5dc8 s3 selftest: Allow the enumeration of users and groups
This fixes the WINBINDD_GETPWENT test.
2010-01-14 15:18:34 +01:00
Kai Blin
a6015a858d s3 selftest: Fix the WINBINDD_GETDCNAMEe test.
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.
2010-01-14 15:18:34 +01:00
Andrew Tridgell
84d0047377 s4-torture: ran minimal_includes.pl over source4/torture
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Günther Deschner
612deb2699 s4-smbtorture: add very basic libwbclient testsuite.
Guenther
2009-10-16 02:04:29 +02:00
Jelmer Vernooij
c023828962 Fix missing symbols issues when building with shared libraries. 2008-12-22 21:03:09 +01:00
Stefan Metzmacher
45cf68ce8f s4:torture: fix the build with auto dependencies
metze
2008-11-16 16:21:25 +01:00
Jelmer Vernooij
c0e14d5021 Repel pstring to nsswitch/. 2008-10-22 05:14:14 +02:00
Andrew Bartlett
0cbfc686c4 Fix failures in the winbind struct-based test.
Don't try to pass the 'privileged' socket directory around for expected value testing - it is just too hard...

A better test (once we unify the winbind protocol with Samba3) would
be a operation to see if you are on the priv pipe, and that will give
acutal end-to-end testing.

Andrew Bartlett
(This used to be commit 2d4103518a)
2008-09-11 11:49:24 +10:00
Jelmer Vernooij
60ae8f0657 Fix a bunch of dependencies.
(This used to be commit a63f458462)
2008-05-18 23:40:23 +02:00
Jelmer Vernooij
4c70cda986 Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b5211994)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147 Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88 Use variables for source directory in a couple more places.
(This used to be commit c41bd3005f)
2008-05-18 19:54:27 +02:00
Jelmer Vernooij
670122d724 Fix torture module initializion.
(This used to be commit d5bf4e9065)
2008-05-10 23:46:51 +02:00
Tiago Batista
674d089bea Tiago Batista posted a patch to fix the build:
Trying to compile the latest git tree, I got some errors
"auth/pam_error.h not found" errors, it looks like it moved to
auth/ntlm/pam_errors.h.

Andrew Bartlett
(This used to be commit 95831a015a)
2008-05-06 08:12:03 +10:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121d)
2008-04-27 14:02:46 +01:00
Andrew Bartlett
80ad7025cf Adjust the expectations of the struct based winbind test.
These expectations (such as what happens when we have no trusted
domains) were incorrect, compared with Samba3 (which is the reference
for this protocol).

Andrew Bartlett
(This used to be commit 29d5de9e8f)
2008-04-16 17:33:58 +02:00
Andrew Bartlett
a58df2f54c Fix struct_based winbind test for 'check machine account'.
The problem here was that we did not fill in the error strings in the
success case, and the testsuite checked against the incorrect
'freindly' error string.

Andrew Bartlett
(This used to be commit df05f11883)
2008-04-16 16:11:17 +02:00
Andrew Bartlett
cb5873f36d Fix some of the winbind tests.
Some of the test expectations were incorrect.

Andrew Bartlett
(This used to be commit bc0e94360e)
2008-04-15 16:31:08 +02:00
Jelmer Vernooij
e9017ba418 Use _OBJ_FILES variables in a couple more places.
(This used to be commit 92856d5054)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
bbdfbf8d9d r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
(This used to be commit a33a553054)
2007-12-21 05:47:20 +01:00
Stefan Metzmacher
f3dbce01ef r25721: remove unused var
metze
(This used to be commit d878351e82)
2007-12-21 05:43:27 +01:00
Michael Adam
2cf665b8fd r25509: Extend the WINBIND-STRUCT-LOOKUP_NAME_SID test to also
verify failure of the lookup for an invalid SID and an
invalid name.

Michael
(This used to be commit 69043a7b1c)
2007-10-10 15:07:44 -05:00
Michael Adam
f64d696395 r25477: Add user and group retrieval functions (used in LIST_USERS/GROUPS tests).
Add winbind separator and winbind domain name retrieval functions.

Add WINBIND-STRUCT-LOOKUP_NAME_SID test that walks through the list
of groups and names, converts each name with LOOKUPSID and the resulting
sid with LOOKUPNAME and compares the result with the original name.

Michael
(This used to be commit df12ed56c9)
2007-10-10 15:07:43 -05:00
Michael Adam
8d78021abd r25469: Finish WINBIND-STRUCT-SHOW_SEQUENCE test:
* Extract retrieval of list of sequence numbers into its own function.
* Unclutter comment output.
* Add tests for BUILTIN and local domain not being disconnected.
* Improve use of torture_assert macros.

Michael
(This used to be commit d804214954)
2007-10-10 15:07:43 -05:00
Jelmer Vernooij
2f3551ca7c r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
(This used to be commit 3468952e77)
2007-10-10 15:07:34 -05:00
Michael Adam
4d7273715f r25444: Add an initial version of a WINBIND-STRUCT-GETPWENT test.
To be extended...

Michael
(This used to be commit 315ffc0191)
2007-10-10 15:07:34 -05:00
Michael Adam
3f466b1aab r25443: Enhance the WINBINDD-STRUCT-SHOW_SEQUENCE test:
Compare the lists of sequence numbers obtained by
(a) calling SHOW_SEQUENCE without domain argument and
(b) walking the list of trusted domains.
output the sequence numbers of the individual domains upon success.

Michael
(This used to be commit 21db6eb43c)
2007-10-10 15:07:34 -05:00
Michael Adam
ca61e8668c r25440: Add simple WINBINDD_SETPWENT and WINBINDD_ENDPWENT tests.
WINBINDD_GETPWENT is to follow.

Michael
(This used to be commit a989a7e40b)
2007-10-10 15:07:33 -05:00
Michael Adam
07f20e3f57 r25439: Extend the SHOW_SEQUENCE test somewhat to walk the list of trusted domains.
Michael
(This used to be commit d24eecb80e)
2007-10-10 15:07:33 -05:00
Michael Adam
6371962e89 r25409: Add SHOW_SEQUENCE winbind test (struct based).
Michael
(This used to be commit 080b602e4f)
2007-10-10 15:07:27 -05:00