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
Stefan Metzmacher
7b1c5c94f6
s4:libcli/ldap: don't use 'void **out' as arguments as the behavior is not defined in C.
...
metze
2009-02-24 17:55:41 +01:00
Stefan Metzmacher
18b30e5646
libcli/ldap: move ldap_ndr from source4/ to toplevel
...
metze
2009-02-24 17:55:40 +01:00
Stefan Metzmacher
ef0fa403f1
libcli/ldap: move ldap_errors.h to the toplevel and install it
...
metze
2009-02-24 17:55:39 +01:00
Stefan Metzmacher
536318549f
libcli/ldap: move ldap_message.[ch] from source4/ to the toplevel
...
metze
2009-02-24 17:55:39 +01:00
Stefan Metzmacher
1ab9c1a402
s4:libcli/ldap: remove reference to DEBUG()
...
This prepares using ldap_message.c in source3/ later
metze
2009-02-24 17:55:38 +01:00
Stefan Metzmacher
12184d4132
s4:libcli: split out LIBCLI_LDAP_MESSAGE subsystem
...
metze
2009-02-24 17:55:37 +01:00
Andrew Tridgell
bb7e6f0f51
Worked around a problem with select/poll/epoll and gnutls
...
Our packet layer relies on the event system reliably telling us when a
packet is available. When we are using a socket layer like TLS then
things get a bit trickier, as there may be bytes in the encryption
buffer which could be read even if there are no bytes at the socket
level. The GNUTLS library is supposed to prevent this happening by
always leaving some data at the socket level when there is data to be
processed in its buffers, but it seems that this is not always
reliable.
To work around this I have added a new packet option
packet_set_unreliable_select() which tells the packet layer to not
assume that the socket layer has a reliable select, and to instead
keep trying to read from the socket until it gets back no data. This
option is set for the ldap client and server when TLS is negotiated.
This seems to fix the problems with the ldaps tests.
2009-02-18 17:37:45 +11:00
Stefan Metzmacher
3c9ad421fb
s4:libcli/ldap: use const char * const *attributes as in all other places
...
metze
2009-02-13 13:44:36 +01:00
Stefan Metzmacher
f023bf94f1
s4:libcli/smb2: fix c++ warning
...
metze
2009-02-05 18:18:33 +01:00
Stefan Metzmacher
0963028d1d
s4:libcli: remove unused line in config.mk
...
metze
2009-02-02 15:16:10 +01:00
Stefan Metzmacher
9c387c189e
s4:resolve/dns_ex: undefine class because it's used in heimdal/lib/roken/resolve.h
...
metze
2009-02-02 13:09:08 +01:00
Stefan Metzmacher
87ce6b198a
s4:libcli/raw: s/class/eclass
...
metze
2009-02-02 13:09:08 +01:00
Stefan Metzmacher
0ac7792e02
s4:libcliraw: s/private/private_data
...
metze
2009-02-02 13:08:51 +01:00
Stefan Metzmacher
e5e0a06485
s4:wrepl_request: s/private/private_data
...
metze
2009-02-02 13:08:50 +01:00
Stefan Metzmacher
476aa1f00d
s4:smb2: s/private/private_data
...
metze
2009-02-02 13:08:49 +01:00
Stefan Metzmacher
e08dfe008e
s4:dgram: s/private/private_data
...
metze
2009-02-02 13:08:48 +01:00
Stefan Metzmacher
1bb0104070
s4:cldap: s/private/private_data
...
metze
2009-02-02 13:08:42 +01:00
Stefan Metzmacher
096b4a9bd0
s4:libcli/smb2: s/class/info_class
...
metze
2009-02-02 13:08:39 +01:00