Age | Commit message (Collapse) | Author | Files | Lines |
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Guenther
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
|
|
unneeded prs_mem_free calls.
Jeremy.
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Passes valgrind and make tests for client and server. Second version of this patch after splitting up at Simo's request. Patch to follow will delete extraneous prs_mem_free() calls.
Jeremy.
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
This ensures the results can't be easily left to leak.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
|
|
The code is not yet in common, but I hope to fix that soon.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
|
|
Guenther
|
|
|
|
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:
ccache build w/o patch
real 4m21.529s
ccache build with patch
real 3m6.402s
pch build w/o patch
real 4m26.318s
pch build with patch
real 3m6.932s
Guenther
|
|
instead of 0
metze
|
|
metze
|
|
metze
|
|
We should not rely on the backend to have a reference to the cli_state.
This will make it possible for the backend to set its cli_state reference
to NULL, when the transport is dead.
metze
|
|
Inspired by the NTLMSSP merge work by Andrew Bartlett.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
|
|
Parts of the Samba RPC client and server code misinterpret authenticated
packets.
DCE authenticated packets actually look like this :
+--------------------------+
|header |
| ... frag_len (packet len)|
| ... auth_len |
+--------------------------+
| |
| Data payload |
... ....
| |
+--------------------------+
| |
| auth_pad_len bytes |
+--------------------------+
| |
| Auth footer |
| auth_pad_len value |
+--------------------------+
| |
| Auth payload |
| (auth_len bytes long) |
+--------------------------+
That's right. The pad bytes come *before* the footer specifying how many pad
bytes there are. In order to read this you must seek to the end of the packet
and subtract the auth_len (in the packet header) and the auth footer length (a
known value).
The client and server code gets this right (mostly) in 3.0.x -> 3.4.x so long
as the pad alignment is on an 8 byte boundary (there are some special cases in
the code for this).
Tridge discovered there are some (DRS replication) cases where on 64-bit
machines where the pad alignment is on a 16-byte boundary. This breaks the
existing S3 hand-optimized rpc code.
This patch removes all the special cases in client and server code, and allows
the pad alignment for generated packets to be specified by changing a constant
in include/local.h (this doesn't affect received packets, the new code always
handles them correctly whatever pad alignment is used).
This patch also works correctly with rpcclient using sign+seal from
the 3.4.x and 3.3.x builds (testing with 3.0.x and 3.2.x to follow)
so even as a server it should still work with older libsmbclient and
winbindd code.
Jeremy
|
|
lsa_pipe_tcp is ok but network is down, then send request is ok, but select() on writeable fds loops forever since there is no response.
Signed-off-by: Bo Yang <boyang@samba.org>
|
|
Andrew Bartlett
|
|
Andrew Bartlett
|
|
This seems to be the only way to deal with mixed heimdal/MIT setups during
merged build.
Guenther
|
|
Guenther
|
|
if NTSTATUS == OK.
Jeremy.
|
|
Vl is correct, this is the wrong way to fix this.
This reverts commit 83c2c177a5e86d04da37384f1f04230c8274e1e6.
|
|
initialize return variables.
Jeremy.
|
|
Ensures no crashes in calling code that forgets to
init return as null.
Jeremy.
|
|
NT_STATUS_OK.
Guenther
|
|
This reverts commit 70c698fd547c4bc19cf77693608bbb34acac40b5.
|
|
|
|
|
|
|
|
|
|
|
|
Guenther
|
|
smbd just crashed on me: In a debug message I called a routine preparing a
string that itself used debug_ctx. The outer routine also used it after the
inner routine had returned. It was still referencing the talloc context
that the outer debug_ctx() had given us, which the inner DEBUG had already
freed.
|
|
Guenther
|
|
Signed-off-by: Günther Deschner <gd@samba.org>
|
|
This is really confusing and also breaks against windows,
as it doesn't accept fragmented bind requests.
metze
|
|
Guenther
|
|
This prepares support for HMAC-SHA256/AES.
metze
|
|
Guenther
|