Günther Deschner
a45ec4db73
doserrors: print out some more werrors.
...
Guenther
2009-07-02 22:00:41 +02:00
Matthias Dieter Wallnöfer
a8e757ba4c
A fix in the ACL code used by both SAMBA 3 and 4
...
This fixes an uninitialised structure. It has been found through valgrind
in the RAW-ACLs test suite (Bug #6397 ).
2009-06-19 11:32:01 +10:00
Andrew Kroeger
71515ba190
s4: Call va_end() after all va_start()/va_copy() calls.
...
This corrects the issues reaised in bug #6129 , and some others that were not
originally identified. It also accounts for some code that was in the original
bug report but appears to have since been made common between S3 and S4.
Thanks to Erik Hovland <erik@hovland.org> for the original bug report.
2009-06-18 13:49:25 +10:00
Andrew Bartlett
f666da6940
Add const to cast, to fix warning
2009-06-18 13:49:25 +10:00
Andrew Tridgell
ddce3b5ac8
two more NT status codes that we get on DRS with w2k8-R2
2009-06-12 12:23:46 +10:00
Jeremy Allison
4b0658d448
Replace the "ipv4" specific strings in libcli/cldap/cldap.c with "ip". CLDAP can
...
run over IPv4/IPv6, even though some of the netlogon messages are IPv4 specific.
Fix the new ads_cldap_netlogon() to be IPv6/IPv4 agnostic. This compiles but
I don't have a good test env. for this (although as the previous code was
*completely* broken over IPv6 this will expose previously hidden bugs if it's broken :-).
Jeremy.
2009-06-08 15:21:48 -07:00
Andrew Tridgell
da3ee27900
add NT_STATUS_HAVE_NO_MEMORY_AND_FREE()
...
In many places we use NT_STATUS_HAVE_NO_MEMORY() to auto-return when a
memory allocation fails. In quite a few places where we use this, we
end up leaving a tmp_ctx behind, which creates a memory leak.
This macro takes a memory context to free when returning the error
2009-06-04 14:10:10 +10:00
Jelmer Vernooij
88876ac571
errormap: Remove wbc -> NTSTATUS error map for now. It is not used.
...
This was breaking the Samba 4 installation since it added dependencies
on header files we weren't installing.
Confirmed with Kai.
2009-05-15 16:05:37 +02:00
Günther Deschner
aa84ca6e6b
error-codes: add some more WERRORs to table.
...
These tables really should be auto-generated at some point...
Guenther
2009-05-12 23:52:43 +02:00
Volker Lendecke
831b73ec82
Fix an unitialized variable warning
2009-05-10 07:43:24 +02:00
Günther Deschner
e7a8577df1
error-codes: add some more group specific windows error codes.
...
Guenther
2009-05-05 21:10:02 +02:00
Tim Prouty
72bd5ff983
libcli: Fix shadowed name in header also
2009-05-04 14:38:59 -07:00
Tim Prouty
032bb807c7
libcli: Fix shadowed variable warning
2009-05-04 08:52:26 -07:00
Stefan Metzmacher
92a1890b90
libcli/named_pipe_auth: add tstream_npa_connect_send/recv()
...
Add a tstream client implemenation for the named pipe auth
code. This supports byte and message mode.
metze
2009-05-01 17:42:08 +02:00
Volker Lendecke
2146310fb7
Fix a couple of warnings
2009-04-23 14:35:50 +02:00
Kai Blin
7a9be21916
errormap: Add wbcErr to NTSTATUS mappings
2009-04-22 00:14:45 +02:00
Jelmer Vernooij
7a0a134e0c
Fix includes for security_descriptor file for the non-merged build.
2009-04-21 17:19:22 +02:00
Jelmer Vernooij
0bd8b7c5ff
Fix make install; don't install drsuapi.h and fix the location of
...
credentials.h
2009-04-21 16:50:20 +02:00
Jelmer Vernooij
2eff2de2f8
Move the security_descriptor utility code to the top-level.
2009-04-21 15:14:35 +02:00
Jelmer Vernooij
3e75c9bd33
Use a static copy of the samsync header file as Samba3 doesn't generate
...
prototype headers.
2009-04-21 15:14:34 +02:00
Jeremy Allison
4e1b633dab
Stop autogenerated files from being created.
...
Jeremy.
2009-04-20 09:06:21 -07:00
Jeremy Allison
fe77eac5f3
Add previously generated header files now needed in merged build.
...
Jeremy.
2009-04-20 08:48:07 -07:00
Andrew Bartlett
8a5d94e329
libcli/auth Ensure we cancel the transaction when schannel not detected
...
(found by jra on code review)
Andrew Bartlett
2009-04-20 13:55:04 +02:00
Andrew Bartlett
02ecdd8f29
libcli/auth: Don't pass back lm_sess_key as the same pointer as user_sess_key
...
This ensures that a talloc_free() of both pointers won't double-free
(sharing pointers like this is evil anyway).
Andrew Bartlett
2009-04-20 10:54:57 +02:00
Andrew Bartlett
fa37dbf960
Fix building the now common msrpc_parse code
2009-04-16 10:17:57 +10:00
Andrew Bartlett
0879cbaf2b
Fix building the common libcli/samsync code
2009-04-16 10:17:34 +10:00
Andrew Bartlett
86b50a0e6e
Add missing header, remove generated header
...
(This isn't a rename, honest :-)
2009-04-15 14:23:33 +10:00
Andrew Bartlett
0b4e9ce45a
common:libcli/auth Add missing samsync config.mk
2009-04-15 14:00:24 +10:00
Andrew Bartlett
53afa1adac
libcli/auth Push schannel check into common libcli/auth
...
This means we have a single choke point to ensure the remote client is
using schannel.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Andrew Bartlett
5095d7b1c8
Rework Samba4 to use the new common libcli/auth code
...
In particular, this is the rename from creds_ to netlogon_creds_, as
well as other links to use the new common crypto.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Andrew Bartlett
eed0c4f6c9
Rework netlogon credentials for the top level
...
This makes constructor functions that return the allocated structure,
rather than having the caller pass them in, and makes the server init
function also check the first credential.
The rename of creds_ to netlogon_creds should make it more clear what
this code works with.
Andrew Bartlett
2009-04-14 16:23:43 +10:00
Andrew Bartlett
f23eea294a
Push schannel_state.c into the top level.
...
This is the server side state for netlogon credential chaining
Andrew Bartlett
2009-04-14 16:23:43 +10:00
Andrew Bartlett
df8e1908ef
Use common samsync delta decryption functions in libnet_samsync.c
...
Andrew Bartlett
2009-04-14 16:23:43 +10:00
Andrew Bartlett
7cff049e7e
libcli/auth Don't compile against un-needed Samba4 headers
2009-04-14 16:23:42 +10:00
Andrew Bartlett
6c8f7e4005
Port Samba4 to the new combined libcli/auth functions
...
For example, some of the new shared functionality was previously in the wkssvc
torture test.
Andrew Bartlett
2009-04-14 16:23:41 +10:00
Andrew Bartlett
a19966375a
Move ntlm_check.h into the common libcli/auth
2009-04-14 16:23:41 +10:00
Andrew Bartlett
f28f113d8e
Rework Samba3 to use new libcli/auth code (partial)
...
This commit is mostly to cope with the removal of SamOemHash (replaced
by arcfour_crypt()) and other collisions (such as changed function
arguments compared to Samba3).
We still provide creds_hash3 until Samba3 uses the credentials code in
netlogon server
Andrew Bartlett
2009-04-14 16:23:35 +10:00
Andrew Bartlett
fd3be5c4e5
Merge smbencrypt.c between Samba3 and Samba4
2009-04-14 14:19:42 +10:00
Andrew Bartlett
8e73b652f9
Rework trivial msrpc parser to use convert_string_talloc()
...
Also avoid still string conversions when trying to match NTLMSSP in
the header of the NTLMSSP packet.
This also changes a few things to avoid const warnings.
Andrew Bartlett
2009-04-14 14:19:40 +10:00
Andrew Bartlett
9feea7fa4c
Move MSRPC-PARSE into the common libcli/auth
...
This is a depenceny of smbencrypt.c
2009-04-14 14:19:39 +10:00
Andrew Bartlett
872cb0257c
Move DRSUAPI per-attribute decryption into a common file
...
This file (contining metze's decryption routines) is now also be used by
Samba3's DRSUAPI implementation
Andrew Bartlett
2009-04-14 14:19:39 +10:00
Andrew Bartlett
927a8b3304
Move libcli/auth to the top level
2009-04-14 14:19:39 +10:00
Günther Deschner
43eb50655e
error-codes: add WERR_CM_INVALID_POINTER.
...
Guenther
2009-04-10 01:06:55 +02:00
Günther Deschner
cc98d3ae9f
error-codes: add some service related error codes.
...
Patch initially from: Danny Tylman <danny.tylman@insightix.com>
Guenther
2009-04-08 21:54:28 +02:00
Stefan Metzmacher
7e1411b5c7
libcli/cldap: convert to tsocket_* function to tdgram_*
...
metze
2009-04-02 21:54:02 +02:00
Zach Loafman
9d95f8704d
s/NT_STATUS_WIN7_INVALID_RANGE/NT_STATUS_INVALID_LOCK_RANGE/g
2009-04-01 20:59:52 -07:00
Stefan Metzmacher
794525f342
libcli/cldap: fix memory/resource leak
...
We need to remove the message id, when a search request is finished
metze
2009-04-01 16:41:14 +02:00
Jelmer Vernooij
30a3dec549
Merge branch 'master' of ssh://git.samba.org/data/git/samba into displaysec
2009-03-26 15:28:18 +01:00
Günther Deschner
5603c0f2ba
error-codes: add WERR_DS_DRA_SOURCE_DISABLED.
...
Guenther
2009-03-26 14:52:22 +01:00
Jelmer Vernooij
c42fc5e103
display_sec: Move to common libcli/security directory.
2009-03-25 21:29:13 +01:00