1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-21 03:17:08 +03:00

151 Commits

Author SHA1 Message Date
Günther Deschner
ad5794ad5c Remove unused marshalling for LSA_REMOVE_ACCT_RIGHTS.
Guenther
(This used to be commit 80e39330bf15cc57f2780a5b900d8a2b14d92fa9)
2008-02-14 15:29:51 +01:00
Günther Deschner
d64ae7328a Remove unused marshalling for LSA_ENUM_ACCT_RIGHTS.
Guenther
(This used to be commit 34c0e64026b7f5f223c7d7f1d7e162b5659f3bd3)
2008-02-14 15:11:35 +01:00
Günther Deschner
25bc71f117 Remove unused marshalling for LSA_ADD_ACCT_RIGHTS.
Guenther
(This used to be commit 15b97d1aafd6c8ad936944b611188154b191167f)
2008-02-14 14:40:27 +01:00
Günther Deschner
ff85aec193 Remove unused marshalling for LSA_ADDPRIVS and LSA_REMOVEPRIVS.
Guenther
(This used to be commit 5b700aba1a2e1559c17fec9d82e87312e8a5b15d)
2008-02-14 14:01:49 +01:00
Günther Deschner
c6cd8ec909 Remove unused marshalling for LSA_LOOKUP_PRIV_VALUE.
Guenther
(This used to be commit 8125d8557fb4b27873f8eabc6ad1019491d18cce)
2008-02-14 13:53:27 +01:00
Günther Deschner
341e5ea3eb Remove unused marshalling for LSA_ENUMPRIVSACCOUNT.
Guenther
(This used to be commit 004598bc1322b6e2deb62115713768682fee988e)
2008-02-14 13:13:09 +01:00
Günther Deschner
8f7cc004ff Remove unused marshalling for LSA_ENUM_ACCOUNTS.
Guenther
(This used to be commit 8c476ad51622f76bf8f03f6255369b8e19f24a72)
2008-02-14 01:34:34 +01:00
Günther Deschner
834fa856da Move some lsa init routines around.
Guenther
(This used to be commit 8d3e7e8bb067b9e0aab79bc460647e8a6176102e)
2008-02-13 23:01:33 +01:00
Günther Deschner
2600cb6b9b Remove unused marshalling for LSA_ENUM_TRUST_DOM.
Guenther
(This used to be commit 90b07714ddb16ef87865cdf4f9c64c0372200e42)
2008-02-13 00:37:19 +01:00
Günther Deschner
a473d10915 Remove unused marshalling for LSA_UNK_GET_CONNUSER.
Guenther
(This used to be commit 5550c5c387ad66ffe8532e669b6155a28c6e54d1)
2008-02-11 20:49:50 +01:00
Günther Deschner
76f654e21c Remove unused marshalling for LSA_PRIV_GET_DISPNAME.
Guenther
(This used to be commit d853f4f2634a3273c193cc52e7aaa4e7234a827c)
2008-02-11 19:16:05 +01:00
Günther Deschner
0e4088e626 Let rpccli_lsa_open_policy[2] be convenience wrappers around their pidl equivalents.
Guenther
(This used to be commit 4ca3b1c02ee44ddcab8d1b100497939de62558e6)
2008-02-11 17:50:18 +01:00
Günther Deschner
1042b0ce37 Remove unused marshalling for LSA_ENUM_PRIVS.
Guenther
(This used to be commit 793e5a608b1a40174088db6fbfcfc8cc6263a0da)
2008-02-11 10:49:35 +01:00
Günther Deschner
7a425d69dd Remove unused marshalling for LSA_GETSYSTEMACCOUNT.
Guenther
(This used to be commit cf3a76bf19bfeb35800e0fc31e90dc4ea5c0ff85)
2008-02-08 22:54:37 +01:00
Günther Deschner
5120373cc8 Remove unused marshalling for LSA_SETSYSTEMACCOUNT.
Guenther
(This used to be commit ddefdc5bd70620dcb94660ba5d55520e136d8d0f)
2008-02-08 22:51:58 +01:00
Günther Deschner
5c23f7d73c Remove unused marshalling for LSA_OPENACCOUNT.
Guenther
(This used to be commit bb8e77eb74c9d178a6c77f2f9c69eb1778fb5e10)
2008-02-08 22:44:42 +01:00
Günther Deschner
ef01ceff89 Remove unused marshalling for LSA_CREATEACCOUNT.
Guenther
(This used to be commit c9a8baf5077a4e93cca241a5ec73f6ade97af607)
2008-02-08 22:38:34 +01:00
Günther Deschner
99a134a74e Remove unused marshalling for LSA_QUERY_INFO.
Guenther
(This used to be commit f193d7d944e89f94b968a369d6566d13a4fbef5c)
2008-02-08 10:26:37 +01:00
Günther Deschner
b13277ed4e Remove unused marshalling for LSA_QUERY_INFO2.
Guenther
(This used to be commit 0fac016d9d0018c983576d5cc8c3e06f40360b73)
2008-02-08 10:16:08 +01:00
Günther Deschner
97ccb4f8a3 Remove unused marshalling for LSA_DELETE_OBJECT.
Guenther
(This used to be commit 3a32082ef5bb0152545b391ce4cb8ca3a28939da)
2008-02-04 22:12:41 +01:00
Günther Deschner
a1c2242f3f Remove unused marshalling for LSA_QUERY_SEC_OBJ.
Guenther
(This used to be commit 9b2aeeb36903591ea55cfdfe22f32d69703daaf1)
2008-02-04 22:12:41 +01:00
Günther Deschner
7bcf0b0262 Remove more unused LSA marshalling functions.
Guenther
(This used to be commit 95e0fb452bda4c81b26e3dec4953bbba37940467)
2008-01-25 17:22:09 +01:00
Günther Deschner
862e1685b8 Remove old lsa set info policy call.
Guenther
(This used to be commit b37b2b77edec72fc3f53b3461aa1c210e4366c1b)
2008-01-14 17:16:06 +01:00
Günther Deschner
351377a90e Remove more redundant lsa parsing functions.
Guenther
(This used to be commit 99dd28da84c270f46535bd2ffa6bfef96d2e2eed)
2008-01-14 15:51:50 +01:00
Günther Deschner
c939441411 Start removing hand-written lsa marshalling code (namely
rpccli_lsa_open_trusted_domain_by_name,
rpccli_lsa_query_trusted_domain_info_by_sid and
rpccli_lsa_query_trusted_domain_info_by_name).

Guenther
(This used to be commit f2fb3473455f20e7314a9d33f5a1c923d3057d97)
2008-01-14 15:29:43 +01: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 f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
e5a951325a [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10 15:34:30 -05:00
Volker Lendecke
929e1d9920 r24809: Consolidate the use of temporary talloc contexts.
This adds the two functions talloc_stackframe() and talloc_tos().

 * When a new talloc stackframe is allocated with talloc_stackframe(), then
 * the TALLOC_CTX returned with talloc_tos() is reset to that new
 * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse
 * happens: The previous talloc_tos() is restored.
 *
 * This API is designed to be robust in the sense that if someone forgets to
 * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and
 * resets the talloc_tos().

The original motivation for this patch was to get rid of the
sid_string_static & friends buffers. Explicitly passing talloc context
everywhere clutters code too much for my taste, so an implicit
talloc_tos() is introduced here. Many of these static buffers are
replaced by a single static pointer.

The intended use would thus be that low-level functions can rather
freely push stuff to talloc_tos, the upper layers clean up by freeing
the stackframe. The more of these stackframes are used and correctly
freed the more exact the memory cleanup happens.

This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and
lp_talloc_ctx (did I forget any?)

So, never do a

tmp_ctx = talloc_init("foo");

anymore, instead, use

tmp_ctx = talloc_stackframe()

:-)

Volker
(This used to be commit 6585ea2cb7f417e14540495b9c7380fe9c8c717b)
2007-10-10 12:30:24 -05:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10 12:28:27 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10 12:28:20 -05:00
Volker Lendecke
4ed5f70eed r23665: Remove two unneeded global variables
(This used to be commit 51a3933b3d367e3693daa6842f5a286328f4fd39)
2007-10-10 12:23:43 -05:00
Günther Deschner
7eb828135b r23627: Allow to pass down the lookup-level to rpccli_lsa_lookup_names().
Guenther
(This used to be commit e9a7512a9f630340004913f1379452eea8a9b6ae)
2007-10-10 12:23:38 -05:00
Jeremy Allison
2e6deee020 r23400: Fix lsa crash bug #4683. The "names" enum struct
in a lookup_sidX reply isn't optional - like the
lookup_sidX query it needs to be defined in the
struct.
All this will go away with PIDL (thank goodness....).
Jerry - I think this is a showstopper to be merged
for 3.0.25b.
I'll be watching the build farm to see if anything broke.
Jeremy.
(This used to be commit 9300b92f7a51eb80fdc039d8dad23ea9ce82aa8f)
2007-10-10 12:23:13 -05:00
Jeremy Allison
71ee55f98d r23080: Fix bug #4637 - we hads missed some cases where
we were calling PRS_ALLOC_MEM with zero count.
Jeremy.
(This used to be commit 9a10736e6fa276ca4b0726fbb7baf0daafbdc46d)
2007-10-10 12:22:43 -05:00
Gerald Carter
d34f6bb969 r22852: merge fixes for CVE-2007-2446 and CVE-2007-2447 to all branches
(This used to be commit f65214be68c1a59d9598bfb9f3b19e71cc3fa07b)
2007-10-10 12:22:02 -05:00
Jeremy Allison
61f95f1f97 r22585: Get us into a consistent state with TALLOC_ZERO_ARRAY also.
Jeremy.
(This used to be commit c622fb8536d955952a0fbf2441a4cb45a9feb9b0)
2007-10-10 12:19:47 -05:00
Jeremy Allison
138668d5d2 r22577: Change all of parse/*.c to use standard form. Fix some
marshalling bugs.
Jeremy.
(This used to be commit 3df99006f8a52af7cff0fbca1bf16157a8648254)
2007-10-10 12:19:46 -05:00
Günther Deschner
1f3b19d569 r18678: Fix the build. (never commit before breakfeast).
Guenther
(This used to be commit e1e9b57ce24c9825a8904697918818df7e83b50b)
2007-10-10 12:00:46 -05:00
Volker Lendecke
8cfb182bdb r17136: Fix alignment on lsaquery. This broke in particular level 6, where the client
tried to figure out which role we are.

Needs to go into 23a.

Thanks to Karolin for insisting and setting up the test case :-)

Volker
(This used to be commit 3482bb1ef57e60397df8dcf1b29999161359c42a)
2007-10-10 11:38:14 -05:00
Jeremy Allison
fbdcf2663b r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
to do the upper layer directories but this is what
everyone is waiting for....

Jeremy.
(This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10 11:19:14 -05:00
Jeremy Allison
96a54e7d23 r16369: Klocwork #1035.
Jeremy.
(This used to be commit 6924d1cd443e4f7eb7b634c97c92effd6373ff12)
2007-10-10 11:18:49 -05:00
Jeremy Allison
9a38c05154 r15884: Fix bug #3803 from jason@ncac.gwu.edu - bad comparison.
Jeremy.
(This used to be commit 1d9dbe3b662ea757224ca4d8c991ae73bb92ae8d)
2007-10-10 11:17:11 -05:00
Günther Deschner
655b04e4f8 r15041: Adding rpc client calls to manipulate auditing policies on remote CIFS
servers. Also add a new "net rpc audit" tool. The lsa query infolevels
were taken from samb4 IDL, the lsa policy flags and categories are
partly documented on msdn. I need to cleanup the double
lsa_query_info_policy{2}{_new} calls next.

Guenther
(This used to be commit 0fed66926f4b72444abfc8ffb8c46cca8d0600aa)
2007-10-10 11:15:59 -05:00
Jeremy Allison
4d9ad70060 r14774: Fix null deref coverity bugs #260, #261, #262.
Jeremy.
(This used to be commit 46e575af17cefb0ce7a1fdfacf29f90ae36fa72e)
2007-10-10 11:15:47 -05:00
Volker Lendecke
2a7601fcb4 r14134: Fix Coverity bug # 137
(This used to be commit 62e58d939bf3abf71bb19aade57d406e07403bc8)
2007-10-10 11:15:13 -05:00
Jeremy Allison
8d5ef34aa3 r13521: Implement LOOKUPNAME3 and 4.
Jeremy.
(This used to be commit 6ec0e9124a1a7b19c9853b8e26075cbbb8751f10)
2007-10-10 11:10:09 -05:00
Jeremy Allison
85160e654e r13458: Add parsing functions - but stub internals for lookupnames3 and 4.
Jeremy.
(This used to be commit f1a362580ae37730dc8393a79f832aed5d0ea4be)
2007-10-10 11:10:04 -05:00
Jeremy Allison
e22d38bdde r13455: Prepare to add lookupnames2.
Jeremy.
(This used to be commit 2274709587bd1f27bea2eacf633182f20cd07b1e)
2007-10-10 11:10:04 -05:00
Jeremy Allison
06cf1e18e5 r13447: Added LSA_LOOKUPSIDS2 and LSA_LOOKUPSIDS3.
Jeremy.
(This used to be commit a164cfab420a2439dad8fd85f8b4d652087fa6b9)
2007-10-10 11:10:03 -05:00
Gerald Carter
0af1500fc0 r13316: Let the carnage begin....
Sync with trunk as off r13315
(This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)
2007-10-10 11:06:23 -05:00