1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-15 16:23:49 +03:00
Commit Graph

169 Commits

Author SHA1 Message Date
Stefan Metzmacher
8458ee72c5 r17567: add error code I got from DsGetNCChanges
when I don't use the DRSUAPI_SUPPORTED_EXTENSION_STRONG_ENCRYPTION
flag on DsBind

metze
2007-10-10 14:15:38 -05:00
Stefan Metzmacher
e15a015a1d r17414: add new error code
metze
2007-10-10 14:15:23 -05:00
Stefan Metzmacher
e40d62363c r16949: add and fix some NOTIFY return codes
metze
2007-10-10 14:10:02 -05:00
Günther Deschner
075242b976 r16801: Adding WERR_DS_DRA_ACCESS_DENIED.
Guenther
2007-10-10 14:09:46 -05:00
Andrew Tridgell
1a57b16715 r15794: fixed a problem with DOS status codes - found by kukks (thanks!) 2007-10-10 14:08:21 -05:00
Stefan Metzmacher
4e8c9bbd76 r15775: add some privilege related WERROR codes
metze
2007-10-10 14:08:17 -05:00
Stefan Metzmacher
2c9db94291 r15661: add NT_STATUS_OBJECTID_NOT_FOUND
metze
2007-10-10 14:08:04 -05:00
Jelmer Vernooij
c19c2b51d3 r15328: Move some functions around, remove dependencies.
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
2007-10-10 14:05:17 -05:00
Andrew Tridgell
77f32a2735 r14876: added ENOSYS to unix error mapping 2007-10-10 14:00:11 -05:00
Stefan Metzmacher
9ec706238c r14860: create libcli/security/security.h
metze
2007-10-10 13:59:44 -05:00
Jelmer Vernooij
7146c1600f r14724: Rearrange some source files, install more headers. 2007-10-10 13:59:14 -05:00
Jelmer Vernooij
657a893b25 r14498: Revert part of my commit that removed support for compilers that
don't support immediate structures
2007-10-10 13:57:34 -05:00
Jelmer Vernooij
6046dd8220 r14473: Modern splint has no problems with immediate structures. 2007-10-10 13:57:30 -05:00
Jelmer Vernooij
f7312dab3b r14470: Remove some unnecessary headers. 2007-10-10 13:57:29 -05:00
Jelmer Vernooij
3dd477ca51 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
2007-10-10 13:57:27 -05:00
Jelmer Vernooij
7054ebf024 r14402: Generate seperate headers for RPC client functions. 2007-10-10 13:57:19 -05:00
Jelmer Vernooij
1228358767 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
2007-10-10 13:52:24 -05:00
Jelmer Vernooij
26bf2a393b r13652: Move some more stuff out off include/ 2007-10-10 13:52:04 -05:00
Stefan Metzmacher
1768a698a4 r12910: fix bug #3069
metze
2007-10-10 13:51:02 -05:00
Jelmer Vernooij
c722f665c9 r12694: Move some headers to the directory of the subsystem they belong to. 2007-10-10 13:49:39 -05:00
Jelmer Vernooij
70e7449318 r12608: Remove some unused #include lines. 2007-10-10 13:49:03 -05:00
Jelmer Vernooij
8aae0f168e r12510: Change the DCE/RPC interfaces to take a pointer to a
dcerpc_interface_table struct rather then a tuple of interface
name, UUID and version.

This removes the requirement for having a global list of DCE/RPC interfaces,
except for these parts of the code that use that list explicitly
(ndrdump and the scanner torture test).

This should also allow us to remove the hack that put the authservice parameter
in the dcerpc_binding struct as it can now be read directly from
dcerpc_interface_table.

I will now modify some of these functions to take a dcerpc_syntax_id
structure rather then a full dcerpc_interface_table.
2007-10-10 13:47:48 -05:00
Stefan Metzmacher
b1afcced39 r11740: add some EA error codes
metze
2007-10-10 13:46:20 -05:00
Andrew Tridgell
1d29ad2a27 r11620: switch the ldap client code over to using the generic packet code 2007-10-10 13:45:59 -05:00
Stefan Metzmacher
6375a9a95d r11546: add more errno ntstatus mappings, to get more usefull errors from socket_wrapper
metze
2007-10-10 13:45:52 -05:00
Andrew Bartlett
de83b8cd18 r11404: Another torture test and a new WERR.
Andrew Bartlett
2007-10-10 13:45:32 -05:00
Stefan Metzmacher
b436206c49 r10867: add WERR_UNKNOWN_REVISION errorcode
metze
2007-10-10 13:39:37 -05:00
Stefan Metzmacher
e753114e86 r10545: map ECONNRESET to NT_STATUS_CONNECTION_RESET
metze
2007-10-10 13:39:04 -05:00
Jelmer Vernooij
a5b88bcd42 r10513: Reduce some use of pstring. The main reason some parts of the code still
use pstring is next_token() now.
2007-10-10 13:38:58 -05:00
Tim Potter
cc24af6545 r10103: Put an #ifdef guard around ENOTSUP to fix systems that don't have it
(OpenBSD 3.7).
2007-10-10 13:37:59 -05:00
Stefan Metzmacher
e4424d2a6d r9638: add error code that you get when you call DsGetNCChanges() with a tmp_highest_usn which is
higher than the real highest of the source dsa

metze
2007-10-10 13:34:36 -05:00
Stefan Metzmacher
2cbbb8ace2 r9514: add some new error codes I was getting with DsGetNCChanges() and DsAddEntry()
metze
2007-10-10 13:34:25 -05:00
Andrew Bartlett
ca6cf46270 r9421: Move arcfour code into it's own file, in lib/crypto.
Andrew Bartlett
2007-10-10 13:33:37 -05:00
Tim Potter
26b191b3c9 r9222: Rename smb_tree_connect() to smb_raw_tcon() to match other raw function
names.
2007-10-10 13:31:33 -05:00
Andrew Tridgell
1936c20939 r9048: added a new DOS error code (thanks to EMC) 2007-10-10 13:31:11 -05:00
Jeremy Allison
ff58ecad04 r8174: Check DOS error codes in torture chkpath test.
Jeremy.
2007-10-10 13:19:17 -05:00
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
97cb705713 r8115: added support for 2 more dos error codes found during testing 2007-10-10 13:19:10 -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 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
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
Andrew Tridgell
f88a601882 r7941: fixed handling of ASN.1 objects bigger than 64k 2007-10-10 13:18:53 -05:00
Andrew Tridgell
f22c3b84c8 r7749: some bug fixes from testing with socket:testnonblock
- fixed some infinite loops in asn1.c

- ensure asn1 callers know if an error is end of buffer or bad data

- handle npending 0 in ldap server
2007-10-10 13:18:30 -05:00
Andrew Tridgell
fed6f4cc6c r7746: - added TLS support to our ldap server
- this involved changing the buffer handling in the ldap server quite a
  lot, as it didn't handle partial packets at all

- removed completely bogus asn1_object_length() function. You can't
  do that with BER/DER
2007-10-10 13:18:30 -05:00
Andrew Tridgell
09060994c1 r7720: - simplify the asn1 decode of ldap_search() a lot, taking advantage of
the fact that the ldap data structures now use ldb_message_element.

- fixed null termination of elements in ildap
2007-10-10 13:18:26 -05:00
Andrew Tridgell
3a3025485b r7633: this patch started as an attempt to make the dcerpc code use a given
event_context for the socket_connect() call, so that when things that
use dcerpc are running alongside anything else it doesn't block the
whole process during a connect.

Then of course I needed to change any code that created a dcerpc
connection (such as the auth code) to also take an event context, and
anything that called that and so on .... thus the size of the patch.

There were 3 places where I punted:

  - abartlet wanted me to add a gensec_set_event_context() call
    instead of adding it to the gensec init calls. Andrew, my
    apologies for not doing this. I didn't do it as adding a new
    parameter allowed me to catch all the callers with the
    compiler. Now that its done, we could go back and use
    gensec_set_event_context()

  - the ejs code calls auth initialisation, which means it should pass
    in the event context from the web server. I punted on that. Needs fixing.

  - I used a NULL event context in dcom_get_pipe(). This is equivalent
    to what we did already, but should be fixed to use a callers event
    context. Jelmer, can you think of a clean way to do that?

I also cleaned up a couple of things:

 - libnet_context_destroy() makes no sense. I removed it.

 - removed some unused vars in various places
2007-10-10 13:18:15 -05:00
Andrew Tridgell
2e3c660b2f r7626: a new ldap client library. Main features are:
- hooked into events system, so requests can be truly async and won't
   interfere with other processing happening at the same time

 - uses NTSTATUS codes for errors (previously errors were mostly
   ignored). In a similar fashion to the DOS error handling, I have
   reserved a range of the NTSTATUS code 32 bit space for LDAP error
   codes, so a function can return a LDAP error code in a NTSTATUS

 - much cleaner packet handling
2007-10-10 13:18:14 -05:00
Andrew Tridgell
1a81d28456 r7566: added support for LDAPString types in the asn.1 library 2007-10-10 13:18:10 -05:00
Andrew Tridgell
96620ab2ee r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_tree
instead of a search expression. This allows our ldap server to pass
  its ASN.1 parsed search expressions straight to ldb, instead of going
  via strings.

- updated all the ldb modules code to handle the new interface

- got rid of the separate ldb_parse.h now that the ldb_parse
  structures are exposed externally

- moved to C99 structure initialisation in ldb

- switched ldap server to using ldb_search_bytree()
2007-10-10 13:18:06 -05:00
Andrew Bartlett
7a93ac49c2 r6462: Move the arcfour sbox state into it's own structure, and allocate it
with talloc() for the NTLMSSP system.

Andrew Bartlett
2007-10-10 13:11:39 -05:00