Andrew Tridgell
ddce3b5ac8
two more NT status codes that we get on DRS with w2k8-R2
2009-06-12 12:23:46 +10:00
Andrew Bartlett
9b261c008a
s4:heimdal: import lorikeet-heimdal-200906080040 (commit 904d0124b46eed7a8ad6e5b73e892ff34b6865ba)
...
Also including the supporting changes required to pass make test
A number of heimdal functions and constants have changed since we last
imported a tree (for the better, but inconvenient for us).
Andrew Bartlett
2009-06-12 07:45:48 +10:00
Andrew Tridgell
a5003de56b
fixed the encoding/decoding of the reverse attribute for server side sort
2009-06-10 11:45:53 +10:00
Sam Liddicott
ebf5523b6e
s4: smbcli_transport_send hit the socket right away if possible
...
[Metze; "make test" on git master outputs exactly the same test summary
with our without this patch (apart from the "using seed" lines)]
If the transport socket is writable, then push the queue along
rather than wait until the caller returns back to the tevent loop.
This strategy keeps the sockets piping hot, and is particularly good
for cases where reading requests from one socket causes lots of
writes on another socket, or where lots of writes are made in a batch.
It doesn't matter if the socket is not writeable yet, packet_queue_run
will return quite cheaply in such a case.
Signed-off-by: Sam Liddicott <sam@liddicott.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-09 18:51:31 +02:00
Stefan Metzmacher
d153430e32
s4:libcli/smb2: add smb2_transport_credits_ask_num()
...
metze
2009-06-09 16:49:30 +02:00
Stefan Metzmacher
5b99fa5c4f
s4:libcli/smb2: only add the 1 byte dynamic buffer padding for non compounded requests
...
metze
2009-06-09 16:49:30 +02:00
Stefan Metzmacher
d777879aaa
s4:libcli/smb2: add support sending compounded requests
...
metze
2009-06-09 16:49:29 +02:00
Stefan Metzmacher
81275c84d3
s4:libcli/smb2: prepare SMB2 signing code for compounded requests
...
metze
2009-06-09 16:49:29 +02:00
Kai Blin
57ea909b32
libwbclient: Add async call framework.
2009-05-30 09:17:37 +02:00
Andrew Kroeger
554923ce1b
s4: Add additional 2-letter SID/RID mappings.
...
Information from http://msdn.microsoft.com/en-us/library/aa379602(VS.85).aspx
2009-05-29 12:37:26 +10:00
Stefan Metzmacher
53df343644
s4:libcli/smb2: remove old dialect revision constants
...
metze
2009-05-26 09:50:50 +02:00
Stefan Metzmacher
01b05df766
s4:libcli/smb2: use new SMB2_DIVELECT_REVISION constants
...
Also send them in the order a windows client would
send them (the lowest first).
metze
2009-05-26 09:50:43 +02:00
Stefan Metzmacher
d0051462b9
s4:libcli/smb2: add some more SMB2 constants
...
metze
2009-05-26 09:39:25 +02:00
Stefan Metzmacher
04ceabf56f
s4:libcli/smb2: fix session setup with raw NTLMSSP
...
metze
2009-05-20 19:58:37 +02:00
Stefan Metzmacher
540b713075
s4:libcli/smb2: use raw ntlmssp if the server didn't provide a sec blob
...
metze
2009-05-20 19:58:37 +02:00
Stefan Metzmacher
5b55e47b71
s4:libcli/smb2: fill in transport->negotiate.secblob with the correct data
...
metze
2009-05-20 19:58:36 +02:00
Günther Deschner
9a13af9a99
s4: try to fix privileges implementation in order to pass the RPC-SAMR-USERS-PRIVILEGES test.
...
Guenther
2009-05-20 13:35:05 +02:00
Stefan Metzmacher
ac7f4fa380
s4:libcli/raw: initialy read the first 4 bytes only
...
metze
2009-05-20 10:16:42 +02: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
Volker Lendecke
993bdd87b5
Move SMB2 constants to a separate file
2009-05-11 15:54:24 +02:00
Volker Lendecke
ce8f3528f1
Fix SMB2_CAP_DFS
2009-05-11 15:54:24 +02:00
Stefan Metzmacher
5604e8d614
s4:libcli: remember operating system and lan manager strings from session setup
...
metze
2009-05-01 15:46:08 +02:00
Stefan Metzmacher
b97a591e2c
s4:libcli/raw: write can return STATUS_BUFFER_OVERFLOW as a real error
...
We should not try to parse the result if the status is not NT_STATUS_OK.
metze
2009-05-01 15:12:07 +02:00
nadezhda ivanova
90cc5e72ba
Fix of a bug in the security.descriptor.as_sddl() method
...
security.descriptor.as_sddl() method did not work correctly when invoked without
supplying the domain sid. Returned the same value as when the sid was provided.
Test added for this case in libcli/security/tests/bindings.py
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-04-23 18:21:25 +02:00
Kai Blin
c93e2d9d43
errormap: Change the WBC_ERR_UNKNOWN_ERROR to map to NT_STATUS_UNSUCCESSFUL
...
This allows us to distinguish on NTSTATUS level if we got a
WBC_ERR_UNKNOWN_ERROR or WBC_ERR_NSS_ERROR.
2009-04-23 00:23:56 +02:00
Kai Blin
7a9be21916
errormap: Add wbcErr to NTSTATUS mappings
2009-04-22 00:14:45 +02:00
Björn Jacke
42e3ae6550
libcli: fix a "not handled in switch" compile warning
...
return NULL also for RAW_CLOSE_GENERIC
2009-04-22 00:03:22 +02:00
Björn Jacke
c78a4ac7ce
ѕ4: fix a "not handled in switch" compile warning
2009-04-22 00:03:21 +02:00
Jelmer Vernooij
2eff2de2f8
Move the security_descriptor utility code to the top-level.
2009-04-21 15:14:35 +02:00
Andrew Bartlett
6c9caed481
Merge commit 'origin/master' into libcli-auth-merge-without-netlogond
2009-04-20 16:53:02 +02:00
Jelmer Vernooij
5df2795ffc
Add a unit test for security_descriptor.as_sddl() without arguments.
2009-04-20 15:10:29 +02:00
Andrew Bartlett
927a8b3304
Move libcli/auth to the top level
2009-04-14 14:19:39 +10:00
Zach Loafman
9d95f8704d
s/NT_STATUS_WIN7_INVALID_RANGE/NT_STATUS_INVALID_LOCK_RANGE/g
2009-04-01 20:59:52 -07:00
Zach Loafman
afa71fbad9
s4:smb2: Add lease break support for SMB2.1
...
Add the structures and marshalling for the lease break variants of the
oplock break / oplock break ack messages.
2009-04-01 08:30:25 -07:00
Zach Loafman
92f3686c96
s4:smb2: Add rudimentary SMB2.1 lease support to libcli
...
Add the structures, constants, and marshalling for SMB2.1 leases.
2009-03-28 01:01:47 -07:00
Jelmer Vernooij
c42fc5e103
display_sec: Move to common libcli/security directory.
2009-03-25 21:29:13 +01:00
Stefan Metzmacher
84a140f187
move source4/libcli/cldap => libcli/cldap
...
metze
2009-03-19 16:25:59 +01:00
Stefan Metzmacher
c600e8ef42
s4:cldap: rewrite the cldap library based on tsocket
...
metze
2009-03-19 16:25:59 +01:00
Zach Loafman
8595f260eb
s4 libcli: Add back Longhorn beta dialect as a constant
...
Also tweak how the dialect array and count is initialized.
2009-03-18 11:03:33 -07:00
Zach Loafman
7bf2a213cd
s4 torture: Add a string version for NT_STATUS_WIN7_INVALID_RANGE
...
Also submitted a request to cifs-protocol for a real name for this
thing. Use win7 target logic in smb2 lock test, SMB2-LOCK now passes
against Win7.
2009-03-17 13:43:27 -07:00
Zach Loafman
6c08e329fa
s4 libcli: Add SMB2.1 dialect to libcli
...
Negotiate 2.1 if possible, leave negotiate results in
transport->negotiate.dialect_revision.
2009-03-17 13:43:27 -07:00
Stefan Metzmacher
df145c3382
s4:errormap: map ECANCELED to NT_STATUS_CANCELLED
...
metze
2009-03-06 07:31:33 +01:00
Jelmer Vernooij
9551ab8f7b
Merge branch 'master' of git://git.samba.org/samba into convenience
2009-03-01 22:25:57 +01:00
Jelmer Vernooij
7ab8f373c8
Use common header file for character set handling in Samba 3 and Samba 4.
2009-03-01 22:24:34 +01:00
Jelmer Vernooij
8568b4fa9f
Add header files for secace and secacl.
2009-03-01 20:06:55 +01:00
Jelmer Vernooij
94069bd274
s4: Use same function signature for convert_* as s3.
2009-03-01 19:55:46 +01:00
Jelmer Vernooij
da6721e323
Move secacl to top-level.
2009-03-01 18:15:36 +01:00
Jelmer Vernooij
99b288156f
Move secace.c to top-level.
2009-03-01 18:00:26 +01:00
Jelmer Vernooij
9ffb6d2d9e
Add allow_badcharcnv argument to all conversion function, for
...
consistency with Samba 3.
2009-03-01 06:33:40 +01:00
Stefan Metzmacher
f6b0a99cef
libcli/ldap: move generic ldap control encoding code to ldap_message.c
...
As they can we static there, we pass the specific handlers as parameter
where we need to support controls.
metze
2009-02-24 17:55:41 +01:00