1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

5245 Commits

Author SHA1 Message Date
Andrew Tridgell
a3b8a00d7f r8125: fixed an error code mapping based on the updated torture tests 2007-10-10 13:19:11 -05:00
Andrew Tridgell
93c2d93ed8 r8124: added a set of file sharing tests that pass against w2k3 2007-10-10 13:19:11 -05:00
Andrew Tridgell
acd9fad3a4 r8123: fixed the RAW-NOTIFY and RAW-QFSINFO tests against w2k3 2007-10-10 13:19:11 -05:00
Andrew Tridgell
b71fbcf5e2 r8122: more fixes from testing dos error code handling against w2k3 2007-10-10 13:19:11 -05:00
Andrew Tridgell
aefa9e53fa r8121: yuck. w2k3 seems to choose ERRDOS:ERRbaduid or
NT_STATUS_INVALID_HANDLE on a per call basis for a bad vuid. That
means it is doing checking for a valid vuid in each backend function,
rather than globally. I don't want to emulate that as it is way too
error prone, and could easily lead to a security hole, so instead
accept either error code in our test suite.
2007-10-10 13:19:11 -05:00
Andrew Tridgell
d77b3820d1 r8120: added in the newly found DOS locking error codes into the pvfs backend 2007-10-10 13:19:11 -05:00
Andrew Tridgell
5521060c08 r8119: fixed two error code returns in the smb server now that we have
torture code that can tell the difference between dos and ntstatus
codes without mapping
2007-10-10 13:19:10 -05:00
Andrew Tridgell
0f76449a08 r8118: remove a debugging hack that should not have been in the last commit 2007-10-10 13:19:10 -05:00
Andrew Tridgell
0b22744f40 r8117: fixed a bunch more dos error code handing.
The biggest change was fixing the RAW-CONTEXT test. It was forcing
capabilities to zero in an attempt to not negotiated extended
security, but as a side effect it was forcing negotiation of dos error
codes. This confused the hell out of the test code!

Also fixed a bunch of places incorrectly using NT_STATUS_V() instead
of NT_STATUS_EQUAL() and several places that had the wrong dos status
codes
2007-10-10 13:19:10 -05:00
Andrew Tridgell
692bb1c8a1 r8116: demonstrate a little trick that can be used to track down where an
error is coming from. In this case I needed to know where a
NT_STATUS_ACCESS_DENIED was being returned, which is a very common
error, but I needed to know which place in the code was giving it
2007-10-10 13:19:10 -05:00
Andrew Tridgell
97cb705713 r8115: added support for 2 more dos error codes found during testing 2007-10-10 13:19:10 -05:00
Andrew Tridgell
8649945cf9 r8114: fixed the build after tpots ejs commit .... 2007-10-10 13:19:10 -05:00
Andrew Tridgell
980c09cfca r8113: this should fix the build on systems without heimdal 2007-10-10 13:19:09 -05:00
Andrew Bartlett
b7c3c2f671 r8112: Remove extra headers, and add #ifdef to allow the 'not yet using
Heimdal' case.

Andrew Bartlett
2007-10-10 13:19:09 -05:00
Andrew Tridgell
f21274e07b r8111: fixed the client library to work against w2k3 with nt status codes
disabled. The main change is to turn off spnego, which cannot work at
all without nt status codes (w2k3 gives a ERRHRD:ERRgeneral error when
you try)

I also modified NT_STATUS_EQUAL() to allow for nt->dos code equality,
but only when nt status codes are disabled in smb.conf. That keeps all
the existing torture code working, while still allowing us to
correctly catch the cases where forced dos error codes are needed

The dos->ntstatus mapping table has been removed completely, as it
doesn't really make sense, is impossible to get right, and with the
new dos status handling isn't needed. When matching a nt status code
to a dos status code it makes far more sense to map from the nt code
to the dos code and compare, rather than the reverse, as the nt->dos
mapping is what windows has to do internally, so there really is a
valid mapping table.
2007-10-10 13:19:09 -05:00
Andrew Bartlett
50a54bf4e9 r8110: More PAC work. I still can't get WinXP to accept the PAC, but we are
much closer.

This changes PIDL to allow a subcontext to have a pad8 flag, saying to
pad behind to an 8 byte boundary.  This is the only way I can explain
the 4 trainling zeros in the signature struct.

Far more importantly, the PAC code is now under self-test, both in
creating/parsing our own PAC, but also a PAC from my win2k3 server.
This required changing auth_anonymous, because I wanted to reuse the
anonymous 'server_info' generation code.

I'm still having trouble with PIDL, particulary as surrounds value(),
but I'll follow up on the list.

Andrew Bartlett
2007-10-10 13:19:09 -05:00
Andrew Bartlett
bc8f8d2dcf r8109: Try to print out more helpful debug messages on DCERPC server-side
gensec failure to start.

Andrew Bartlett
2007-10-10 13:19:09 -05:00
Andrew Bartlett
d13b9f548e r8108: Fix indentation, and remove a discard_const_p() that we don't need any more.
Perhaps like minimal_includes.pl, we should have a way to find these
automaticly.  Hmm...

Andrew Bartlett
2007-10-10 13:19:09 -05:00
Andrew Tridgell
87cdd11708 r8107: now that we properly separate DOS and NT status codes all the places
that relied on the mapping need to be fixed. The first thing is to get
all the torture tests working against w2k3 again with nt status codes
enabled. The 2nd step will be to make them pass with nt status
disabled.

This starts on the first task, fixing the assumption that
NT_STATUS_INVALID_LOCK_SEQUENCE is a valid substitute for
ERRDOS:ERRbadaccess
2007-10-10 13:19:08 -05:00
Andrew Tridgell
3136ad9634 r8106: the use of a static string for dos error codes was causing problems in
the torture code. To fix this, get rid of dos_errstr() and instead
move the strings into the nt_errstr() table, using cpp to generate the
strings
2007-10-10 13:19:08 -05:00
Tim Potter
ee27943e21 r8105: Add ejsrpc push/pull functions for uint16 and uint8. 2007-10-10 13:19:08 -05:00
Andrew Tridgell
ff5549e87f r8104: - added support for our client library to not negotiate nt status codes, controlled
with 'nt status support' option.

- make nt_errstr() display nice strings for dos status codes encoded
  using NT_STATUS_DOS()

- no longer map between dos and nt status codes in the client library,
  instead return using NT_STATUS_DOS()

- fixed the RAW-CONTEXT test to look for
  NT_STATUS_DOS(ERRSRV, ERRbaduid) instead of NT_STATUS_INVALID_HANDLE
2007-10-10 13:19:08 -05:00
Tim Potter
ad1700ca8e r8103: Add an argument separator between the hardcoded args and $PIDL_EXTRA_ARGS
so the first extra arg isn't interpreted as a parameter to the last
hardcoded arg.
2007-10-10 13:19:08 -05:00
Tim Potter
baa8f0836f r8101: Fix some indentation. 2007-10-10 13:19:08 -05:00
Volker Lendecke
23bff7bf6c r8099: clean up after BASE-TCON 2007-10-10 13:19:08 -05:00
Rafal Szczesniak
88e7b9c237 r8098: Add my copyright and remove unecessary header dependency.
rafal
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
9885749e36 r8096: Remove function that has became libnet_Lookup fuction.
rafal
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
6736ab102f r8095: Fix compiler warning.
rafal
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
cca6d79294 r8094: Fix compiler warnings.
rafal
2007-10-10 13:19:07 -05:00
Simo Sorce
9a8872b168 r8091: fix invalid attribute names s/_/-/g
this will fix the build
2007-10-10 13:19:07 -05:00
Simo Sorce
2e328e6c2f r8084: do not leak memory on errors 2007-10-10 13:19:07 -05:00
Simo Sorce
b1a61cd5d0 r8083: check attribute type is valid (only ascii alphanum chars and '-' char)
fail if not
2007-10-10 13:19:06 -05:00
Simo Sorce
624a73148d r8082: large rewite of ldb_dn.c
- we do not support multpiple attribute components anymore, makes code a lot easier
  they will be readded later if we found out they are really used, so far my tests
  show w2k3 do not handle them as well

- fix escaping issues, move component value to be in an ldb_val structure
  still need to handle binary values case

- make cononicalize functions leak less memory by giving a specific memory context

- fix tests scripts so that test-ldap can start
- make test not delete databases on completion so that I can inspect them
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
0209fc67ad r8081: Add simple test for RpcConnect function.
rafal
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
1815a6af06 r8080: Use libnet_context where using libnet_Lookup functions now.
rafal
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
e7870156da r8079: Dcerpc pipe in libnet_context is just pipe now, instead of explicit samr.
rafal
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
34592b6a92 r8078: rpc connect function uses structure now.
rafal
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
798b00c24a r8077: Propagate changes in rpc connect routine to functions using it
(it's quite common).

rafal
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
d0ea136356 r8076: Put name resolution methods into libnet_context. This allows libnet based
application use methods of their own choice and makes it less dependent on
smb.conf parameters.
Use libnet_context in libnet_Lookup functions which is the way to pass
default name resolution methods if caller doesn't want to bother with
specifying them.

rafal
2007-10-10 13:19:05 -05:00
Rafal Szczesniak
b28d2e9639 r8075: Make rpc connect function part of libnet api, as I suppose many
implementers of more complex function might need to use it.
Also simplify io structure which essentially does the same thing
when connecting arbitrary rpc server or a domain pdc.

rafal
2007-10-10 13:19:05 -05:00
Andrew Tridgell
0c534699ef r8074: demonstrate calling echo_AddOne() from ejs 2007-10-10 13:19:05 -05:00
Andrew Tridgell
b1ea58ddc4 r8073: a successful rpc call from ejs!
the ejs_echo.c code is the stuff that needs to be auto-generated by
pidl. It only does echo_AddOne so far.

We also need a table for registering these calls. The code is
hard-wired for echo_AddOne for now.
2007-10-10 13:19:05 -05:00
Andrew Tridgell
c03753faa4 r8071: reduce the size of the default ldb tests. We run on some pretty low powered machines
in the farm, and don't want to chew too much cpu needlessly.
2007-10-10 13:19:05 -05:00
Andrew Tridgell
b9e73fa932 r8070: a (as yet not working) example of how rpc calls might be made from js scripts 2007-10-10 13:19:05 -05:00
Andrew Tridgell
a782541db3 r8069: the beginnings of code to allow rpc calls to be made from ejs
tpot, note that this shows how you can modify passed in MprVar
variables in C call
2007-10-10 13:19:04 -05:00
Andrew Tridgell
4c5974fc3d r8068: reduced the verbosity of the EPM code 2007-10-10 13:19:04 -05:00
Andrew Tridgell
d7d7f7292b r8067: added a method for disabling the password prompt in programs that want
cmdline credentials, but don't want a prompt if none are supplied
2007-10-10 13:19:04 -05:00
Andrew Tridgell
a129501951 r8065: don't run the LOCAL-ICONV test in selftest. It does cross-checking of
the builtin iconv code with the system iconv code, and too many
platforms have broken system iconv code, making it fail in a way that
is meaningless for whether samba will work
2007-10-10 13:19:04 -05:00
Andrew Tridgell
14f51a99bc r8059: fixed handling of delete on close fir directories 2007-10-10 13:19:04 -05:00
Andrew Tridgell
214e51b3c8 r8058: added testing of delete on close for files and directories 2007-10-10 13:19:04 -05:00