1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

185 Commits

Author SHA1 Message Date
Andrew Bartlett
98f7632554 If the string does not convert back, print the buggy result. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
a60fd29b43 Fix bigballofmud.so, and add a test to show a bug I'm having with push_ucs2.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Martin Pool
346c763fd1 Test harness that exercises check_dos_char() 0001-01-01 00:00:00 +00:00
Andrew Tridgell
591a500ed7 reversed the sense of the TCON test, now that we know that win2003
fixes this. This means that TCON fails on win2000, but passes on Samba
and win2003
0001-01-01 00:00:00 +00:00
Volker Lendecke
6ab88f31d6 This changes our handling of invalid service types that the
client requested on tconx. We now return the same error
code like NT4SP6 and W2kSP3 return.

TCONDEV is a little test for this.

Volker
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ca982a9f1d added simple tests for SMBchkpath and SMBioctl 0001-01-01 00:00:00 +00:00
Andrew Tridgell
be98069c4e updated the TCON test so that win2000 passes. Samba now fails this
test.

It is an interesting test because it shows that win2000 completely
ignores the TID and VUID fields in a SMBwriteX. In Samba it is hard to
do this as we check the VUID and TID fields before we call the SMB
specific reply functions.

The test also shows that the list of open files must be global to the
socket, not specific to a tcon.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c95ae394c5 added a simple test for the old SMBtcon interface 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
2ddfed298d Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changes 0001-01-01 00:00:00 +00:00
Martin Pool
e051789ac6 Run test 10000 times to make measurement easier. 0001-01-01 00:00:00 +00:00
Martin Pool
cea126f62a The new string macros catch a bug at compile that previously only
trapped at runtime, which is great.  So we have to try a little harder
to provoke an overflow -- which is still caught nicely in developer
mode.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
d40e3747cf show which files we fail to create in the casetable test 0001-01-01 00:00:00 +00:00
Martin Pool
17f01f6959 Update usage message. 0001-01-01 00:00:00 +00:00
Martin Pool
dcf1705782 Add example of string overflow which is now caught in developer mode. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
f283f71104 having sticky create times is not a bug 0001-01-01 00:00:00 +00:00
Andrew Tridgell
7be44dbe00 fixed the MANGLE smbtorture test with the new paranoid string code 0001-01-01 00:00:00 +00:00
Andrew Tridgell
af415842b8 make sure we have an empty directory when we start the utable test 0001-01-01 00:00:00 +00:00
Andrew Tridgell
cec1ef09e5 fixed use_oplocks and the timeout in smbtorture startup 0001-01-01 00:00:00 +00:00
Andrew Tridgell
0f4d1172a6 added -i option for ignoring dot errors in masktest 0001-01-01 00:00:00 +00:00
Andrew Bartlett
8863ff863c Make smbtorture use the same cli_full_connection() framework as the rest of
Samba.  This fixes things like not doing *SMBSERVER etc.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Martin Pool
a387c42097 FIXME about crash on failure case. 0001-01-01 00:00:00 +00:00
Richard Sharpe
460339db22 Add *SMBSERVER fallback code to smbtorture ... 0001-01-01 00:00:00 +00:00
Richard Sharpe
1128a2fb4c Add code to allow us to specify the port to connect on when performing
a test ...
0001-01-01 00:00:00 +00:00
Martin Pool
ab77beca04 Add simple test harness that exposes StrCaseCmp for testing. 0001-01-01 00:00:00 +00:00
Tim Potter
018733eedd More const fixes and flow on fixes from yesterday's const-fest. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
d0365f20c2 Add static 0001-01-01 00:00:00 +00:00
Jeremy Allison
caf298c380 New locktest7 code based on patch from "Srikanta Shivanna" <sshivanna@pillardata.com>
Jeremy.
0001-01-01 00:00:00 +00:00
Simo Sorce
162683d2b5 correct init for vfs.conn, thanks Stefan 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
5de622968d Add -V option (to print out version) to utilities where possible
(pdbedit already has a -V option..)
0001-01-01 00:00:00 +00:00
Andrew Bartlett
ce52f1c2ed Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enable
users w/o full administrative access on computer accounts to join a
computer into AD domain.

The patch and detailed changelog is available at:
http://www.itcollege.ee/~aandreim/samba

This is a list of changes in general:

1. When creating machine account do not fail if SD cannot be changed.
   setting SD is not mandatory and join will work perfectly without it.
2. Implement KPASSWD CHANGEPW protocol for changing trust password so
   machine account does not need to have reset password right for itself.
3. Command line utilities no longer interfere with user's existing
   kerberos ticket cache.
4. Command line utilities can do kerberos authentication even if
   username is specified (-U). Initial TGT will be requested in this case.

I've modified the patch to share the kinit code, rather than copying it,
and updated it to current CVS.  The other change included in the original patch
(local realms) has been left out for now.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
b031e81f4f Fixup delete on close torture.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
45d4e58ca5 Samba janitors: applying mbp's redundant umask fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
510cd30a6e Got complete (I hope) coverage of the OPEN TRUNCATE ATTRIBUTES test.
Now to make Samba pass it :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fdc14aa6f6 Added first part of attribute matrix tests. Not run and compiled in right now...
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
fe1cc779d5 Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
92a777d0ea BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
784d15761c Finish adding strings to all talloc_init() calls.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
842e08e52a Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
41b56d975b Please compile with :
-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual
if you're using gcc. It really does help !
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
657aa857a5 Added HIDDEN/NORMAL attribute test.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
163ac34401 Fix the build.
Build farm! Build farm!  Please check the build farm!

...or at least run make torture.
0001-01-01 00:00:00 +00:00
Jim McDonough
51e0f5c2dd Fix build. Extra parm was added to cli_full_connection, but not in locktest2.c. 0001-01-01 00:00:00 +00:00
Simo Sorce
738b9237ed forgot some bits from previous rpc_secdesc.h rework patch 0001-01-01 00:00:00 +00:00
Andrew Bartlett
ace7738e12 Fix the compile issue in bin/samtest, and make the 'system' token just have the
System sid.  This avoids comparing with ACEs that we don't yet support in the
ADS Domain security descriptor.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b9036900d0 Remove sam/api.c.
In order to reduce complexity, this patch removes the upper layer of the SAM
API.  Also, we remove the function pointers on the sam context - there really
is no point making these replaceable - that's for the modules.

Move a number of functions in include/interface.c around to allow for use of
'static' and to keep the external API in one chunk, at the bottem.  All these
functions were renamed to remove the context_sam -> sam

Consequential changes in the samtest module, and back out metze's change for
ACB filtering, becouse I think it belongs in the SAM backeds.  (But I will take
debate on this one).

Changes to the lib/util_sid.c code to create a 'system' token, and make it a
SAM_ASSERT() enforced requirement to have a token on those calls that specify
it.  samtest now uses this.

We should have a samtest call to set your own token.

We also need to extend our se_access code to cover the things that Win2k is
returning in it's access tokens.  Currently our system token doesn't pass, due
to unexpected flags.  (When running sam_ads against Win2k)

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
b01c55ed5b Fix 'plugin' command 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
9d529256c5 Patch from metze to fix enum_accounts 0001-01-01 00:00:00 +00:00
Andrew Bartlett
24fb0cde2f Add the beginings of sam_ads to the tree.
This module, primarilly the work of "Stefan (metze) Metzmacher"
<metze@metzemix.de>, uses the Active Directory schema to store the
user/group/other information.  I've been testing it against a real AD server,
and it is intended to work with OpenLDAP as well.

I've moved a few functions around in our other libads code, which has made it
easier to tap into that existing code.

Also, I've made some changes to the SAM interface, I hope there are not too
many objections...   To ensure we don't get silly bugs in the skel module, it
is now in the default compile.  This way you should not forget to update it :-)

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
ee3b497962 notify user when no {domains,accounts} were found 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
81156d6556 Add samtest command 'enum_accounts' + few typo fixes in sam/interface.c 0001-01-01 00:00:00 +00:00