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
Stefan Metzmacher
58ca4d4e31
s4:libcli/wrepl: s/private/private_data
...
metze
2009-02-02 13:08:28 +01:00
Stefan Metzmacher
71e318cf31
s4:libcli/smb2: s/private/private_data
...
metze
2009-02-02 13:08:28 +01:00
Stefan Metzmacher
1ee4bbec1a
s4:libcli/raw: s/private/private_data
...
metze
2009-02-02 13:08:28 +01:00
Stefan Metzmacher
0db079b9eb
s4:libcli/dgram: s/private/private_data
...
metze
2009-02-02 13:08:27 +01:00
Stefan Metzmacher
8d37900828
s4:libcli/clilist.c: s/private/private_data
...
metze
2009-02-02 13:08:26 +01:00
Stefan Metzmacher
ea7ea27f2f
s4:libcli/cldap: s/private/private_data
...
metze
2009-02-02 13:08:26 +01:00
Kai Blin
07aa05f678
shared: Move dom_sid_* utility functions to top level
2009-02-01 19:42:30 +01:00
Stefan Metzmacher
5f13710ced
s4:irpc: avoid c++ reserved word 'private'
...
metze
2009-02-01 00:17:20 +01:00
Simo Sorce
380874ef86
Fix the mess with ldb includes.
...
Separate again the public from the private headers.
Add a new header specific for modules.
Also add service function for modules as now ldb_context and ldb_module are
opaque structures for them.
2009-01-30 01:02:03 -05:00
Jelmer Vernooij
a4afed1e9a
Implement as_sddl.
2009-01-22 14:49:51 +01:00
Jelmer Vernooij
fc50f7ecba
Support parsing sddl for security descriptors.
2009-01-22 14:37:59 +01:00
Stefan Metzmacher
d5b7240ac5
libcli/wrepl: return the major version of the server in wrepl_associate()
...
metze
(from samba4wins tree 1ea02d50d1607b94e15ff07568fa5056cb6e4f09)
2009-01-19 07:05:53 +01:00
Stefan Metzmacher
9967907190
util_str: setup the correct talloc name for strings
...
metze
(partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)
2009-01-19 07:05:21 +01:00
Stefan Metzmacher
1c8580cfa9
s4:libcli/ldap: convert to tevent_* api
...
metze
2009-01-03 19:58:56 +01:00
Stefan Metzmacher
5fa0d3d568
s4:socket: use a socket_wrapper aware function to auto close the fd event for sockets
...
metze
2009-01-03 19:58:53 +01:00
Tim Prouty
d217bd00a1
s4: simplify some overly-complicated logic
2008-12-30 15:21:34 -08:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
1feab85be6
Rename samba-socket -> samba_socket to fix a couple more compiler
...
warnings.
2008-12-24 00:15:43 +01:00