1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

5331 Commits

Author SHA1 Message Date
Andrew Tridgell
950f662484 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.
(This used to be commit f21274e07b361ef40fdc0fe23e96f1c9c63a091c)
2007-10-10 13:19:09 -05:00
Andrew Bartlett
dbd2688c90 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
(This used to be commit 50a54bf4e9bf04d2a8e0aebb3482a2ff655c8bbb)
2007-10-10 13:19:09 -05:00
Andrew Bartlett
06348629b9 r8109: Try to print out more helpful debug messages on DCERPC server-side
gensec failure to start.

Andrew Bartlett
(This used to be commit bc8f8d2dcfbcf06bb9c49981bc3811b252a4b9b0)
2007-10-10 13:19:09 -05:00
Andrew Bartlett
d92b30fe38 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
(This used to be commit d13b9f548e9d3696505178476d2615835cae8fe2)
2007-10-10 13:19:09 -05:00
Andrew Tridgell
74942e1a11 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
(This used to be commit 87cdd117081193d215c5a9e3603438e058ad777b)
2007-10-10 13:19:08 -05:00
Andrew Tridgell
b3383236a2 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
(This used to be commit 3136ad9634f0a5ab46e4f83e093df87fdd36484d)
2007-10-10 13:19:08 -05:00
Tim Potter
766e8e1acb r8105: Add ejsrpc push/pull functions for uint16 and uint8.
(This used to be commit ee27943e215126a2048d1082437ef2597d913371)
2007-10-10 13:19:08 -05:00
Andrew Tridgell
e0d521ca79 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
(This used to be commit ff5549e87ffae9f062394f30d8fd1ae95b614735)
2007-10-10 13:19:08 -05:00
Tim Potter
b48c121454 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.
(This used to be commit ad1700ca8e1af7933a183172f4a5ad4b56280474)
2007-10-10 13:19:08 -05:00
Tim Potter
f684f1da97 r8101: Fix some indentation.
(This used to be commit baa8f0836f34c94a2f3d831e315575cfa7ced7c3)
2007-10-10 13:19:08 -05:00
Volker Lendecke
661a6f7c44 r8099: clean up after BASE-TCON
(This used to be commit 23bff7bf6cf437e78db50b09f69fd1fbdf6aab35)
2007-10-10 13:19:08 -05:00
Rafal Szczesniak
ce7a0d47ea r8098: Add my copyright and remove unecessary header dependency.
rafal
(This used to be commit 88e7b9c2371383c469e2db73d4c8dca70aca7586)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
45500d4176 r8096: Remove function that has became libnet_Lookup fuction.
rafal
(This used to be commit 9885749e36435b301c992e50d0a189860cfa4b5e)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
8cedebd993 r8095: Fix compiler warning.
rafal
(This used to be commit 6736ab102f60f8e14d10f430f3e5a0eef478bc81)
2007-10-10 13:19:07 -05:00
Rafal Szczesniak
dd36f13320 r8094: Fix compiler warnings.
rafal
(This used to be commit cca6d792945477b86b2dd91f3c90152b69ee2a15)
2007-10-10 13:19:07 -05:00
Simo Sorce
b43e245927 r8091: fix invalid attribute names s/_/-/g
this will fix the build
(This used to be commit 9a8872b168c68bade31cab09bea609d2143c4e97)
2007-10-10 13:19:07 -05:00
Simo Sorce
3fe6ca1c18 r8084: do not leak memory on errors
(This used to be commit 2e328e6c2fc2c66b0d0de910cd43ab232049bc90)
2007-10-10 13:19:07 -05:00
Simo Sorce
e6b353e764 r8083: check attribute type is valid (only ascii alphanum chars and '-' char)
fail if not
(This used to be commit b1a61cd5d03b4c61b81c810123ffeb3621831617)
2007-10-10 13:19:06 -05:00
Simo Sorce
1c5105065a 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
(This used to be commit 624a73148d125690ce18515f19231d26df207738)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
2e419725b0 r8081: Add simple test for RpcConnect function.
rafal
(This used to be commit 0209fc67adae9d2003f06c826557306c2141a6a8)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
12d4893c28 r8080: Use libnet_context where using libnet_Lookup functions now.
rafal
(This used to be commit 1815a6af06aa791bfecb4aee8742701975d35318)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
c2e76c4648 r8079: Dcerpc pipe in libnet_context is just pipe now, instead of explicit samr.
rafal
(This used to be commit e7870156dacb2e0346e24f8490bfd90e8b21ea96)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
90046a1de2 r8078: rpc connect function uses structure now.
rafal
(This used to be commit 34592b6a92591122180649de251f2ddc181fe382)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
4fa6a156bc r8077: Propagate changes in rpc connect routine to functions using it
(it's quite common).

rafal
(This used to be commit 798b00c24ae30a08ac81342d13130a6a2f9d3a08)
2007-10-10 13:19:06 -05:00
Rafal Szczesniak
e6b54f7acf 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
(This used to be commit d0ea136356bcb9c6c01120d8683b71e8689d5e5b)
2007-10-10 13:19:05 -05:00
Rafal Szczesniak
d5f76aad22 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
(This used to be commit b28d2e96392e89e39f2499f54b6e549a8f3cfb4b)
2007-10-10 13:19:05 -05:00
Andrew Tridgell
f663c67c4e r8074: demonstrate calling echo_AddOne() from ejs
(This used to be commit 0c534699efb24abefd9879859cde6a9ac61e5af3)
2007-10-10 13:19:05 -05:00
Andrew Tridgell
9331714787 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.
(This used to be commit b1ea58ddc482c373783d16331dd07378010ba39a)
2007-10-10 13:19:05 -05:00
Andrew Tridgell
75883a2237 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.
(This used to be commit c03753faa46d52ae4606546b57962e10c41ea3ad)
2007-10-10 13:19:05 -05:00
Andrew Tridgell
52f481b666 r8070: a (as yet not working) example of how rpc calls might be made from js scripts
(This used to be commit b9e73fa932e8289b756b557faeca1690c02a21ed)
2007-10-10 13:19:05 -05:00
Andrew Tridgell
643e5d8239 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
(This used to be commit a782541db3de6ca3b599a220265cf9e6cb0c4d7b)
2007-10-10 13:19:04 -05:00
Andrew Tridgell
e7f84503c0 r8068: reduced the verbosity of the EPM code
(This used to be commit 4c5974fc3dabd090284b2ed455a0af114ddbec1d)
2007-10-10 13:19:04 -05:00
Andrew Tridgell
8139838acf 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
(This used to be commit d7d7f7292b7032dcad6d6245510af229f12f7085)
2007-10-10 13:19:04 -05:00
Andrew Tridgell
8283c40fde 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
(This used to be commit a12950195173337869c5894c86327e7e75cf289f)
2007-10-10 13:19:04 -05:00
Andrew Tridgell
95a9d9aabf r8059: fixed handling of delete on close fir directories
(This used to be commit 14f51a99bccffac0ca284d1315ab6d4b10f3711f)
2007-10-10 13:19:04 -05:00
Andrew Tridgell
e7c530a9ea r8058: added testing of delete on close for files and directories
(This used to be commit 214e51b3c8021dfe31ad951603bae64fa281b0f8)
2007-10-10 13:19:04 -05:00
Andrew Tridgell
6ecc79b888 r8057: use our defined push/pull types in the validate code (fixes a warning)
(This used to be commit 4e14ebf51e871d6d70a194e2725c2158675dc6fc)
2007-10-10 13:19:04 -05:00
Andrew Tridgell
eab25a4d01 r8056: make the realm lowercase in our ldb (better matches w2k3)
(This used to be commit 39cfb6f739f33a33dcbee708a9a2e5f1c6c12287)
2007-10-10 13:19:03 -05:00
Andrew Tridgell
c7377de49f r8055: added canonicalName to our domainDns record
(This used to be commit 1ba296b9d0ed1cf0961bdd3cde03f1ce56e1d72b)
2007-10-10 13:19:03 -05:00
Stefan Metzmacher
ccaf752e35 r8054: add OSVersion, OSVersionEx, DNSMachineName PrintServerData
metze
(This used to be commit 47781fccbc9a4fc3867e4c3959a17765c7e4dc71)
2007-10-10 13:19:03 -05:00
Andrew Tridgell
4354bebda7 r8053: requests from mmc show that the auth info for a bind should be 4 byte aligned, not
8 byte aligned
(This used to be commit c112a2b23e6cd2c55fbb7e8096a7c523a91d6814)
2007-10-10 13:19:03 -05:00
Stefan Metzmacher
133d41d43d r8052: that looks nicer:-)
metze
(This used to be commit dad0371a9fea0de080650cb081beafdaa773ceda)
2007-10-10 13:19:03 -05:00
Andrew Tridgell
361d126d01 r8051: separate out the MAX EAs test, as it fills disk too much to be run regularly
(This used to be commit dac526845ea89ba732300105b3f82210b0828102)
2007-10-10 13:19:03 -05:00
Stefan Metzmacher
88df3c81ee r8050: - make use of more [value()] properties
- the out subcontext's need to have a fixed size of r->in.offered,
  to make windows clients happy

metze
(This used to be commit 054e1ca434b2f81de199eeb41cb6233524fc5779)
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
96a073fdea r8049: add function that returns the build version (of w2k3 here 3790)
metze
(This used to be commit 81abbdaeb180a1618e34ab56275f6eeacfcc99ce)
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
fe94ba6e71 r8046: - add somemore failure checks in the RPC-SPOOLSS test
- test AddForm on the PrintServer object

- GetForm() isn't allowed on the PrintServer object so remove NTPTR
  function for it

- accept the dns name as servername in the spoolss server

metze
(This used to be commit d8c308a4653d59514915021607fe55c5f2b38749)
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
cee17efc7c r8045: fix valgrind warning, add zero padding when the string doesn't fill the full FIXLEN
metze
(This used to be commit d8175b01db69436d8af64b97d7b7beca4ba4b552)
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
5d55ee570b r8044: give a better error code
metze
(This used to be commit fdbf822f1c90cba110d91720ea586ceef9de38b2)
2007-10-10 13:19:02 -05:00
Andrew Tridgell
f450b0a02a r8043: increase shell compatibility of ldb tests
(This used to be commit 60863b6faf7f78566052491340607cbb4b3f2e72)
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
4a8c3a9e62 r8042: give better error message
metze
(This used to be commit 70118e9529aaf7af9129df7cb3a6749598b17568)
2007-10-10 13:19:02 -05:00