1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

50 Commits

Author SHA1 Message Date
Volker Lendecke
79cd97cc3f Use dom_sid_string for sid_string_talloc
Remove some code duplication, but introduce one more dependency on librpc/ndr.
Easily turned around so that librpc/ndr depends on lib/util_sid if necessary
(This used to be commit 3a0b1b2060)
2007-12-15 22:33:52 +01:00
Volker Lendecke
c046a2f527 Add ndr_errstr
(This used to be commit e3b36073f1)
2007-11-11 09:12:30 +01:00
Stefan Metzmacher
909b03d3c6 ndr: change NTSTAUS into enum ndr_err_code (samba3 handwritten stuff)
ndr_misc.c
ndr_sec.h
ndr_sec_helper.c
librpc/ndr/sid.c

metze
(This used to be commit 42590e917a)
2007-11-09 21:23:15 +01:00
metze
427b48a92c ndr: change NTSTAUS into enum ndr_err_code (basic stuff)
librpc/ndr/

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25916 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit b1b8088caf)
2007-11-09 21:23:14 +01:00
Volker Lendecke
0fb6a301d9 Fix some warnings
(This used to be commit df42038f88)
2007-11-09 15:17:35 +01:00
Stefan Metzmacher
84df457860 use samba4's librpc/ndr/uuid.c
metze
(This used to be commit c148e91fde)
2007-11-09 11:51:20 +01:00
Stefan Metzmacher
128fa582a6 sync the most parts of librpc/ndr with samba4
metze
(This used to be commit 201800a4c9)
2007-11-08 14:36:13 +01:00
Stefan Metzmacher
248e900374 we should not ignore convert_string_talloc() failures.
In all other places in ndr_string.c we already use False...

metze
(This used to be commit 9a201fd4c8)
2007-11-08 13:52:56 +01:00
metze
e0c24fa248 - check return value of ndr_push_set_switch_value()
- fix memory leaks in error pathes

metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25798 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit a0d0a06a9e)
2007-11-07 12:13:09 +01:00
metze
aef317ea57 use error and out logic
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25797 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 55d01b3f5b)
2007-11-07 12:13:09 +01:00
metze
a01f9e3fc0 use NT_STATUS_HAVE_NO_MEMORY()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25796 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit be1f2f1abf)
2007-11-07 12:11:34 +01:00
metze
a0f59767f4 use NDR_CHECK()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25794 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 91ccaa8e70)
2007-11-07 12:11:33 +01:00
metze
f966752da7 check the return value of ndr_push_set_switch_value()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25793 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit aa155b2c29)
2007-11-07 12:11:33 +01:00
metze
ff595ad9c8 use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK()
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25792 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit f3dde8c7b7)
2007-11-07 12:11:32 +01:00
metze
0f904f7d2a the return value of ndr_pull_set_switch_value() should be checked
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25779 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 1563a08cb0)
2007-11-07 12:10:31 +01:00
metze
ac8cf500d4 use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK() macros
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25778 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit b542eaf825)
2007-11-07 12:10:30 +01:00
metze
e04b21f7d4 add NDR_ERR_UNREAD_BYTES and don't use NTSTATUS directly
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25777 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 52c422f4d7)
2007-11-07 12:10:30 +01:00
metze
fbb8cff0b8 create ndr_pull_union_blob_all() and match the logic of the struct fns
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25774 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 8ed241532a)
2007-11-07 12:10:29 +01:00
metze
5a57da8e37 add NDR_ERR_INVALID_POINTER
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25744 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 3625ed395c)
2007-10-27 10:27:38 +02:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c)
2007-10-18 17:40:25 -07:00
Jeremy Allison
8e54530b52 Add start of IPv6 implementation. Currently most of this is avoiding
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
(This used to be commit 3f6bd0e1ec)
2007-10-10 18:25:16 -07:00
Günther Deschner
07cbec10b1 r25593: Add missing security_secinfo bits as seen while managing security descriptor
inheritance with regedit.

Guenther
(This used to be commit 534ee13596)
2007-10-10 12:31:16 -05:00
Stefan Metzmacher
c2628e19a7 r24552: merge from SAMBA_4_0:
rename dcerpc_interface_table -> ndr_interface_table
rename dcerpc_interface_list  -> ndr_interface_list

and move them to libndr.h

metze
(This used to be commit f57d23d0f1)
2007-10-10 12:29:56 -05:00
Stefan Metzmacher
24c594d0b3 r24541: merge from SAMBA_4_0:
rename struct dcerpc_endpoint_list/struct dcerpc_authservice_list
into ndr_interface_string_array and move it to libndr.h

metze
(This used to be commit 9fec0d6c2c)
2007-10-10 12:29:55 -05:00
Stefan Metzmacher
68821746d8 r24538: merge from SAMBA_4_0:
rename struct dcerpc_interface_call -> struct ndr_interface_call
and move it to librpc/ndr/libndr.h

metze
(This used to be commit 24e096b365)
2007-10-10 12:29:55 -05:00
Stefan Metzmacher
5da47f8518 r24533: merge from SAMBA_4_0:
rename dcerpc_syntax_id -> ndr_syntax_id

metze
(This used to be commit 7facd9bf3f)
2007-10-10 12:29:54 -05:00
Günther Deschner
968c43f874 r24360: Make ndr_print_debug_helper() output readable.
Guenther
(This used to be commit 45ee3b55d5)
2007-10-10 12:29:36 -05:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Volker Lendecke
de565785f5 r23410: Merge the core of the cluster code.
I'm 100% certain I've forgotten to merge something, but the main code
should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and
messages_ctdbd.c.

There should be no changes to the non-cluster case, it does survive make
test on my laptop.

It survives some very basic tests with ctdbd enables, I did not do the
full test suite for clusters yet.

Phew...

Volker
(This used to be commit 15553d6327)
2007-10-10 12:23:14 -05:00
Volker Lendecke
7192160599 r22747: Fix some C++ warnings
(This used to be commit a66a04e9f1)
2007-10-10 12:21:54 -05:00
Volker Lendecke
e6383f4762 r22736: Start to merge the low-hanging fruit from the now 7000-line cluster patch.
This changes "struct process_id" to "struct server_id", keeping both is
just too much hassle. No functional change (I hope ;-))

Volker
(This used to be commit 0ad4b1226c)
2007-10-10 12:21:52 -05:00
Jelmer Vernooij
0389cad7c4 r22055: Port the endpoint mapper (and functions it requires) to Samba 3.
(This used to be commit ad98126187)
2007-10-10 12:19:06 -05:00
Stefan Metzmacher
56ba447668 r22001: change prototype of dump_data(), so that it takes unsigned char * now,
which matches what samba4 has.

also fix all the callers to prevent compiler warnings

metze
(This used to be commit fa322f0cc9)
2007-10-10 12:18:59 -05:00
Volker Lendecke
eca13022ef r21960: Fix bugs 4463,4464,4465,4466. Thanks Jason :-)
(This used to be commit a2e27c4431)
2007-10-10 12:18:52 -05:00
Andrew Tridgell
a2d9f07d4c r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
(This used to be commit 05bd5cb6ee)
2007-10-10 12:18:36 -05:00
Andrew Tridgell
5e74df4202 r21813: fixed an integer overflow error in the ndr push code.
Jerry, you might like to consider this for 3.0.25
(This used to be commit 4b1c4cd25a)
2007-10-10 12:18:35 -05:00
Jelmer Vernooij
7d2152b8dc r21562: Regenerate gen_ndr after pidl changes.
(This used to be commit 952f648d81)
2007-10-10 12:18:13 -05:00
Volker Lendecke
8bfa935161 r21074: Preparation for the import of samba4 notify: Add the file notify.idl and the
resulting marshalling/unmarshalling routines in gen_ndr/

Volker
(This used to be commit a2ea54c234)
2007-10-10 12:17:33 -05:00
Jelmer Vernooij
203622b734 r20839: Fix other C++ warnings
(This used to be commit d948d828d5)
2007-10-10 12:17:11 -05:00
Volker Lendecke
fb5d4f9c86 r19916: Fix some c++ warnings
(This used to be commit fb5bcb826e)
2007-10-10 12:16:09 -05:00
Jeremy Allison
3a60a67432 r18793: Fix BE string handling in the auto-generated
code. Should now work again with ASU.
Jeremy.
(This used to be commit 53e97bf928)
2007-10-10 12:00:58 -05:00
Gerald Carter
82f12507a4 r18791: print the error string and not the raw value
(This used to be commit 2363954637)
2007-10-10 12:00:58 -05:00
Volker Lendecke
d52612a7d9 r18667: Two C++ warnings
(This used to be commit 8c60e71229)
2007-10-10 12:00:45 -05:00
Jelmer Vernooij
0da8adbc59 r18632: Make C++ compilers happy.
(This used to be commit 609224565f)
2007-10-10 11:52:01 -05:00
Jelmer Vernooij
e5db7fee0f r18572: Use the autogenerated client and server for the echo interface and implement
some of the missing functions. RPC-ECHO now passes against Samba3.
(This used to be commit 9e9a053661)
2007-10-10 11:51:51 -05:00
Gerald Carter
96dd10cc00 r18274: Cleanup unnecessary empty headers and add a comment
why the remaining ones are needed
(This used to be commit e4fc8ba7fb)
2007-10-10 11:51:19 -05:00
Gerald Carter
2b27c93a9a r18271: Big change:
* autogenerate lsa ndr code
* rename 'enum SID_NAME_USE' to 'enum lsa_SidType'
* merge a log more security descriptor functions from
  gen_ndr/ndr_security.c in SAMBA_4_0

The most embarassing thing is the "#define strlen_m strlen"
We need a real implementation in SAMBA_3_0 which I'll work on
after this code is in.
(This used to be commit 3da9f80c28)
2007-10-10 11:51:18 -05:00
Gerald Carter
c1e0e75dc8 r18237: include dcerpc.h here to fix compile of autogenerated unixinfo files
(This used to be commit 3757f249aa)
2007-10-10 11:51:17 -05:00
Gerald Carter
82ed086618 r18193: Not quite to autogenerated NDR but closer thanks to Jelmer's
initial work.  I'm including the librpc/gen_ndr directory
in svn temporarily just to get some compile issues straightened
out.
(This used to be commit cf271aa433)
2007-10-10 11:51:08 -05:00