1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
Commit Graph

1337 Commits

Author SHA1 Message Date
Günther Deschner
6aa84ad8c5 Move some samr init functions around (to allow easier identification of new
calls).

Guenther
(This used to be commit c51c126049)
2008-02-12 12:30:51 +01:00
Günther Deschner
c3f68ad29f Remove unused marshalling for SAMR_ENUM_DOM_USERS.
Guenther
(This used to be commit 4521f31a72)
2008-02-12 11:38:31 +01:00
Günther Deschner
90631dd2c2 Removing unused ACCT_-flags.
Guenther
(This used to be commit d1e5a5a7f9)
2008-02-12 09:48:47 +01:00
Günther Deschner
a473d10915 Remove unused marshalling for LSA_UNK_GET_CONNUSER.
Guenther
(This used to be commit 5550c5c387)
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 d853f4f263)
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 4ca3b1c02e)
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 793e5a608b)
2008-02-11 10:49:35 +01:00
Günther Deschner
ebec5010b4 Remove unused marshalling for SAMR_ENUM_DOMAINS.
Guenther
(This used to be commit 31132f33e2)
2008-02-09 02:05:39 +01:00
Günther Deschner
5da927716a Remove unused marshalling for NET_DSR_GETDCNAME.
Guenther
(This used to be commit 65c2aa344e)
2008-02-08 23:38:13 +01:00
Günther Deschner
7a425d69dd Remove unused marshalling for LSA_GETSYSTEMACCOUNT.
Guenther
(This used to be commit cf3a76bf19)
2008-02-08 22:54:37 +01:00
Günther Deschner
5120373cc8 Remove unused marshalling for LSA_SETSYSTEMACCOUNT.
Guenther
(This used to be commit ddefdc5bd7)
2008-02-08 22:51:58 +01:00
Günther Deschner
5c23f7d73c Remove unused marshalling for LSA_OPENACCOUNT.
Guenther
(This used to be commit bb8e77eb74)
2008-02-08 22:44:42 +01:00
Günther Deschner
ef01ceff89 Remove unused marshalling for LSA_CREATEACCOUNT.
Guenther
(This used to be commit c9a8baf507)
2008-02-08 22:38:34 +01:00
Günther Deschner
400ac70117 Remove unused marshalling for SAMR_LOOKUP_NAMES.
Guenther
(This used to be commit 593768c3e9)
2008-02-08 15:30:35 +01:00
Günther Deschner
99a134a74e Remove unused marshalling for LSA_QUERY_INFO.
Guenther
(This used to be commit f193d7d944)
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 0fac016d9d)
2008-02-08 10:16:08 +01:00
Günther Deschner
e1af5066d5 Remove unused marshalling for SAMR_QUERY_DISPINFO.
Guenther
(This used to be commit c09e619a58)
2008-02-08 00:17:54 +01:00
Günther Deschner
f27a5561aa Use pidl for _samr_QueryDisplayInfo().
Guenther
(This used to be commit b6d1283121)
2008-02-08 00:10:40 +01:00
Günther Deschner
f564a5476b Remove unused marshalling for SAMR_QUERY_USERGROUPS.
Guenther
(This used to be commit 232a505535)
2008-02-07 14:25:29 +01:00
Günther Deschner
815ab1ac94 Remove unused marshalling for SAMR_QUERY_GROUPINFO.
Guenther
(This used to be commit 680dbd3ef6)
2008-02-07 14:13:09 +01:00
Günther Deschner
28124ad667 Use pidl for _samr_QueryGroupInfo().
Guenther
(This used to be commit e808524269)
2008-02-07 14:03:48 +01:00
Günther Deschner
de3aec7026 Remove unused marshalling for SAMR_QUERY_ALIAS_INFO.
Guenther
(This used to be commit 03dff0194b)
2008-02-07 13:38:08 +01:00
Günther Deschner
f7ad51084c Use pidl for _samr_QueryAliasInfo().
Guenther
(This used to be commit 62dacea87a)
2008-02-07 13:34:57 +01:00
Günther Deschner
bffbee263f Remove unused marshalling for SAMR_SET_GROUPINFO.
Guenther
(This used to be commit 2bcc01fd13)
2008-02-07 11:03:44 +01:00
Günther Deschner
009d09dcae Remove unused marshalling for SAMR_SET_ALIASINFO.
Guenther
(This used to be commit f56b5f976a)
2008-02-07 10:56:35 +01:00
Günther Deschner
44f1485f0b Remove unused marshalling for NET_DSR_GESITENAME.
Guenther
(This used to be commit c2682273fd)
2008-02-07 10:42:59 +01:00
Günther Deschner
f79051fe19 Remove unused marshalling for NET_GETANYDCNAME and NET_GETANYDCNAME.
Guenther
(This used to be commit a495e0e7c1)
2008-02-07 10:31:09 +01:00
Günther Deschner
3e731a4936 Remove unused marshalling for SAMR_CHGPASSWD_USER.
Guenther
(This used to be commit ac8db3d29b)
2008-02-07 10:07:01 +01:00
Günther Deschner
04152f475f Remove last SAM_UNK struct defines.
Guenther
(This used to be commit 2f877d730b)
2008-02-07 10:07:01 +01:00
Günther Deschner
38e5cf8f95 Remove marshalling for SAMR_CHGPASSWD3.
Guenther
(This used to be commit 41fc592f3a)
2008-02-07 10:07:00 +01:00
Günther Deschner
d3311c5c50 Remove most of SAM_UNK_INFO marshalling.
Guenther
(This used to be commit a1145770d1)
2008-02-06 02:10:26 +01:00
Günther Deschner
1430ab2dd3 Remove unused marshalling for SAMR_SET_DOMAIN_INFO.
Guenther
(This used to be commit c67581e1e4)
2008-02-06 02:10:18 +01:00
Günther Deschner
149fe79ad7 Remove unused marshalling for SAMR_QUERY_DOMAIN_INFO.
Guenther
(This used to be commit 28ef04437c)
2008-02-06 02:10:09 +01:00
Günther Deschner
80d1590cbb Remove unused marshalling for SAMR_QUERY_DOMAIN_INFO2.
Guenther
(This used to be commit d4dc2781ad)
2008-02-06 02:07:47 +01:00
Günther Deschner
1beccd34d7 Add some helper init routines for samr_DomInfo structures.
They will probably move to another place later.

Guenther
(This used to be commit 0e1386f748)
2008-02-06 02:06:52 +01:00
Günther Deschner
a9333427d0 Remove unused marshalling for SAMR_REMOVE_SID_FOREIGN_DOMAIN.
Guenther
(This used to be commit 2e2b80bd03)
2008-02-05 13:19:47 +01:00
Günther Deschner
6e36f72ce6 Remove unused marshalling for SAMR_QUERY_USERALIASES.
Guenther
(This used to be commit fc55433aee)
2008-02-05 13:19:47 +01:00
Günther Deschner
23f76ed91f Remove unused marshalling for SAMR_QUERY_GROUPMEM.
Guenther
(This used to be commit 48e74f7752)
2008-02-05 13:19:47 +01:00
Günther Deschner
636229cc09 Remove marshalling for SAMR_LOOKUP_DOMAIN.
Guenther
(This used to be commit e03fd62917)
2008-02-05 10:10:06 +01:00
Günther Deschner
8a88a14267 Remove unused marshalling for SAMR_QUERY_ALIASMEM.
Guenther
(This used to be commit 1b1f9ee2e9)
2008-02-05 10:06:04 +01:00
Günther Deschner
30857dbf26 Remove unused marshalling for SAMR_ADD_ALIASMEM.
Guenther
(This used to be commit 27e0b6a1aa)
2008-02-05 10:01:35 +01:00
Günther Deschner
6a0897b363 Remove unused marshalling for SAMR_DEL_ALIASMEM.
Guenther
(This used to be commit 99d80ada6d)
2008-02-05 09:58:30 +01:00
Günther Deschner
e5f049887d Remove unused marshalling for SAMR_GET_USRDOM_PWINFO.
Guenther
(This used to be commit e1c79397fc)
2008-02-05 09:57:03 +01:00
Günther Deschner
0bffd59a4c Remove unused marshalling for SAMR_CONNECT.
Guenther
(This used to be commit 2b1bc8ab68)
2008-02-05 09:39:25 +01:00
Günther Deschner
97ccb4f8a3 Remove unused marshalling for LSA_DELETE_OBJECT.
Guenther
(This used to be commit 3a32082ef5)
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 9b2aeeb369)
2008-02-04 22:12:41 +01:00
Günther Deschner
d93631f96f Remove unused marshalling for SAMR_CONNECT_4.
Guenther
(This used to be commit 86d00328ae)
2008-02-04 19:17:41 +01:00
Günther Deschner
944f11af5b Remove unused marshalling for SAMR_ADD_GROUPMEM.
Guenther
(This used to be commit 83d1b7429e)
2008-02-04 18:45:25 +01:00
Günther Deschner
c01a62c4d6 Remove unused marshalling for SAMR_DEL_GROUPMEM.
Guenther
(This used to be commit a65c89c806)
2008-02-04 18:32:50 +01:00
Günther Deschner
f527fca984 Remove unused marshalling for SAMR_CONNECT5.
Guenther
(This used to be commit d2d91dd496)
2008-02-04 17:53:51 +01:00
Günther Deschner
c132cbbd35 Remove unused marshalling for SAMR_CONNECT_ANON.
Guenther
(This used to be commit e1cae5517f)
2008-02-04 17:53:51 +01:00
Günther Deschner
639c7fc8be Remove unused marshalling for EVENTLOG_OPEN_EVENTLOG.
Guenther
(This used to be commit 15d22925de)
2008-02-04 11:10:53 +01:00
Günther Deschner
2fd872fea7 Remove unused marshalling for EVENTLOG_CLEAR_EVENTLOG.
Guenther
(This used to be commit badbdf1b88)
2008-02-04 10:56:16 +01:00
Günther Deschner
221a2a9a5f Copy inline comment for _eventlog_ClearEventLogW() from rpc_parse to rpc_server.
Guenther
(This used to be commit 26eadadbf6)
2008-02-04 10:55:14 +01:00
Günther Deschner
2432628b14 Remove unused marshalling for EVENTLOG_GET_OLDEST_ENTRY.
Guenther
(This used to be commit f837fff80e)
2008-02-04 10:45:50 +01:00
Günther Deschner
bea5ea5cad Remove unused marshalling for EVENTLOG_GET_NUM_RECORDS.
Guenther
(This used to be commit 0c8e0916d7)
2008-02-04 10:12:08 +01:00
Günther Deschner
00073422d5 Remove unused marshalling for SAMR_SET_SEC_OBJ.
Guenther
(This used to be commit 90982cf43a)
2008-02-02 13:37:20 +01:00
Günther Deschner
33d5becfad Remove unused marshalling for SAMR_QUERY_SEC_OBJ.
Guenther
(This used to be commit b15512f8cc)
2008-02-02 13:37:19 +01:00
Günther Deschner
b708005a71 Remove unused marshalling for SAMR_CREATE_USER.
Guenther
(This used to be commit 69e8a83093)
2008-02-01 16:29:21 +01:00
Günther Deschner
42f61160f9 Remove unused marshalling for SAMR_CREATE_DOM_GROUP.
Guenther
(This used to be commit 2882d48dfe)
2008-02-01 16:29:20 +01:00
Günther Deschner
d3b25867f5 Remove unused marshalling for SAMR_CREATE_DOM_ALIAS.
Guenther
(This used to be commit 2e56289889)
2008-02-01 16:29:20 +01:00
Günther Deschner
a3b00a3244 Remove unused marshalling for SAMR_OPEN_USER.
Guenther
(This used to be commit f34c0e7ada)
2008-02-01 12:30:25 +01:00
Günther Deschner
e8c794fabe Remove unused marshalling for SAMR_OPEN_ALIAS.
Guenther
(This used to be commit c00d629d4e)
2008-02-01 12:30:07 +01:00
Günther Deschner
331c1ad49b Remove unused marshalling for SAMR_OPEN_GROUP.
Guenther
(This used to be commit 9660a341b6)
2008-02-01 12:29:45 +01:00
Günther Deschner
481a7f9572 Remove unused marshalling for SAMR_OPEN_DOMAIN.
Guenther
(This used to be commit ebf9caa004)
2008-02-01 12:29:26 +01:00
Günther Deschner
68900ea101 Remove unused marshalling for SAMR_DELETE_DOM_USER.
Guenther
(This used to be commit 905b3898e0)
2008-02-01 10:17:57 +01:00
Günther Deschner
e6fd6b4941 Remove unused marshalling for SAMR_DELETE_DOM_ALIAS.
Guenther
(This used to be commit 445887d805)
2008-02-01 10:16:02 +01:00
Günther Deschner
bd9d6a885a Remove unused marshalling for SAMR_DELETE_DOM_GROUP.
Guenther
(This used to be commit 20503717be)
2008-02-01 10:14:37 +01:00
Günther Deschner
8953619787 Remove old, unused marshalling code for SAMR_GET_DOM_PWINFO.
Guenther
(This used to be commit d74ab657df)
2008-01-31 13:39:48 +01:00
Günther Deschner
d1f5450625 Remove unused samr_close marshalling.
Guenther
(This used to be commit 93d2ad9447)
2008-01-31 11:20:26 +01:00
Günther Deschner
1a7583dd0b Remove unused rpc_ds marshalling code that is unused now.
Guenther
(This used to be commit 153253e14f)
2008-01-29 15:51:19 +01:00
Günther Deschner
a6ce6c5649 Remove hand-written rpccli_netlogon_dsr_getdcnameex[2].
Guenther
(This used to be commit 3ded8b9b7e)
2008-01-25 21:43:55 +01:00
Günther Deschner
7bcf0b0262 Remove more unused LSA marshalling functions.
Guenther
(This used to be commit 95e0fb452b)
2008-01-25 17:22:09 +01:00
Günther Deschner
05ff7fd46e Use generated DSSETUP client & server rpc functions and remove the hand-written ones.
Guenther
(This used to be commit d5ebfccebb)
2008-01-25 15:30:43 +01:00
Jeremy Allison
a0186fb78d Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.
(This used to be commit 7d94f97947)
2008-01-23 13:54:02 -08:00
Günther Deschner
a92eb76688 Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
(This used to be commit f7100156a7)
2008-01-17 16:54:46 +01:00
Günther Deschner
862e1685b8 Remove old lsa set info policy call.
Guenther
(This used to be commit b37b2b77ed)
2008-01-14 17:16:06 +01:00
Günther Deschner
351377a90e Remove more redundant lsa parsing functions.
Guenther
(This used to be commit 99dd28da84)
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 f2fb347345)
2008-01-14 15:29:43 +01:00
Volker Lendecke
7cbdb48475 Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
(This used to be commit bc3bd7a8e7)
2007-12-29 23:13:26 +01:00
Volker Lendecke
a59280792c Remove tiny code duplication
sid_size did the same as ndr_size_dom_sid
(This used to be commit 8aec5d09ba)
2007-12-29 23:12:51 +01:00
Volker Lendecke
533d6f617e Remove static zeros
(This used to be commit dbcc213710)
2007-12-28 17:02:34 +01:00
Jeremy Allison
c8071c3522 Use the %*s feature of snprintf to remove anothe static fstring.
Jeremy.
(This used to be commit 4ae4b23586)
2007-12-17 16:20:44 -08:00
Volker Lendecke
900288a2b8 Replace sid_string_static by sid_string_dbg in DEBUGs
(This used to be commit bb35e794ec)
2007-12-15 22:09:36 +01:00
Jeremy Allison
42cfffae80 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f3936)
2007-12-07 17:32:32 -08:00
Jeremy Allison
6f46f75dfc Make strhex_to_str clear on string limits. Remove pstring from web/*.c
Jeremy.
(This used to be commit f9c8d62389)
2007-12-03 17:17:05 -08:00
Jeremy Allison
cef494d903 Make init_unistr2_from_unistr take an explicit talloc context.
Make init_unistr() re-use rpcstr_push_talloc().
Jeremy.
(This used to be commit 04aecde5cf)
2007-11-27 17:48:44 -08:00
Jeremy Allison
66298d8080 More pstring elimination.
Jeremy.
(This used to be commit 15074de938)
2007-11-20 17:18:16 -08:00
Jeremy Allison
c049b8157d More trivial pstring removal.
Jeremy.
(This used to be commit bac3bb2f6e)
2007-11-20 15:31:37 -08: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
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 5c6c8e1fe9)
2007-10-10 15:34:30 -05:00
Volker Lendecke
f708132de7 r25561: Make use of [un]marshall_sec_desc
Minor cleanup only
(This used to be commit 4dc4364b68)
2007-10-10 12:31:13 -05:00
Jeremy Allison
470ebf8a35 r25399: Excise uint - > uint32 (where appropriate) or unsigned int.
Jeremy.
(This used to be commit b4ee924000)
2007-10-10 12:31:02 -05:00
Michael Adam
c97fe37ea3 r25294: Tidy up callers of unistr2_to_ascii() to pass sizeof(target_area) to
the maxeln parameter instead of sizeof(target_area) - 1 (or even
sizeof(fstring) - 1 in some places.

I hope these were really all there were.

Michael
(This used to be commit 9a28be220d)
2007-10-10 12:30:58 -05:00
Volker Lendecke
8401971a87 r24993: Apply some const
(This used to be commit 613b9fcd18)
2007-10-10 12:30:32 -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 6585ea2cb7)
2007-10-10 12:30:24 -05:00
Rafal Szczesniak
a0a32cf5d5 r24771: Use infolevel 25 to set the machine account's password (just like winxp).
This correctly updates pwdLastSet field on win2k3 server.

rafal
(This used to be commit dd6d44c166)
2007-10-10 12:30:19 -05:00
Jeremy Allison
7b24eb65a0 r24759: Comment out the _nonnull calls for 3.2.x, as agreed with tridge.
Leaving the commented out code for now, in case I need to re-test
some stuff.
Jeremy
(This used to be commit 343be04643)
2007-10-10 12:30:18 -05:00
Derrell Lipman
c638a84cb1 r24410: - I got tricked by function naming. Contrary to what seemed obvious to me,
prs_mem_free() is not the function to be called to free memory allocated by
  prs_alloc_mem().  I've added a comment so others may not get bitten too.

- Remove incorrect memory free calls added yesterday to replace SAFE_FREE.
  The memory is actually now on a talloc context, so gets freed by the caller
  when that context is freed.  We don't need to free it iternally.

Derrell
(This used to be commit 2fde343150)
2007-10-10 12:29:41 -05:00
Volker Lendecke
b87c0dde71 r24291: Fix Coverity ID 364
We've checked num_rids != 0 above.
(This used to be commit dab5449f38)
2007-10-10 12:29:25 -05:00
Volker Lendecke
84058d4933 r24067: Fix a type mismatch found by the IBM checker
(This used to be commit 411a1a2037)
2007-10-10 12:29:01 -05:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362)
2007-10-10 12:28:27 -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
4ed5f70eed r23665: Remove two unneeded global variables
(This used to be commit 51a3933b3d)
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 e9a7512a9f)
2007-10-10 12:23:38 -05:00
Jim McDonough
9c3db7adf3 r23616: Fix bugzilla #4719: must change password is not set from usrmgr.exe.
This was only affecting the newer versions of usrmgr.exe, because they
use a user_info_25 struct.  The password is getting set separately
inside that code, so the password last set time was getting set from the
password change logic.

We also were not parsing a number of fields (like logon hours) from the
user_info_25.  That should also be fixed.
(This used to be commit afabd68b6a)
2007-10-10 12:23:36 -05:00
James Peach
b1ce226af8 r23510: Tidy calls to smb_panic by removing trailing newlines. Print the
failed expression in SMB_ASSERT.
(This used to be commit 171dc060e2)
2007-10-10 12:23:23 -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 9300b92f7a)
2007-10-10 12:23:13 -05:00
Günther Deschner
1ea5dfae04 r23380: netr_getdcname returns WERROR not NTSTATUS.
Guenther
(This used to be commit 5e75ea7f2b)
2007-10-10 12:23:12 -05:00
Jeremy Allison
227ba79af9 r23342: Stop Coverity from getting confused.
Jeremy.
(This used to be commit 34144c63ad)
2007-10-10 12:23:07 -05:00
Gerald Carter
97a164ba96 r23274: merge CloseEventlog() pidl conversion from 3.0.26 && fix a few init call renames for svcctl in the previous commit
(This used to be commit ebcae48ec1)
2007-10-10 12:23:02 -05:00
Gerald Carter
d99f4f004c r23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26
(This used to be commit 0b1bc3521f)
2007-10-10 12:23:01 -05:00
Günther Deschner
d8e454664a r23210: Very funny, we thought to use netr_GetDcName (e.g. in winbind) but were using
netr_GetDcAnyName all the time (which is the correct thing to do).

Fix the naming and opcode mixup in all branches.

Guenther
(This used to be commit def6464c87)
2007-10-10 12:22:54 -05:00
Günther Deschner
94e4a468f0 r23127: Fill in some more netlogon dsgetdcname flavours (netr_DsRGetDCNameEx,
netr_DsRGetDCNameEx2) and add new ds request and reply flags, also add some
more WERROR codes.

Guenther
(This used to be commit 37ae7f4197)
2007-10-10 12:22:48 -05:00
Jeremy Allison
08be930169 r23122: Fix bug #4655. We marshall the enumdataex correctly,
but W2K3 doesn't follow our rules when sending data to
us. Ensure we look for the data at the correct offsets
when reading the data.
Too late for 3.0.25a - don't merge.
Jeremy.
(This used to be commit a871191395)
2007-10-10 12:22:48 -05:00
Volker Lendecke
2945490a0f r23091: Add rpccli_netlogon_sam_network_logon_ex, fix its parsing. This does not
use the credential chain and only works over netlogon, but it would
allow multiple outstanding auth requests for a single workstation
account.
(This used to be commit 123290d094)
2007-10-10 12:22:44 -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 9a10736e6f)
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 f65214be68)
2007-10-10 12:22:02 -05:00
Volker Lendecke
b4a7b7a888 r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; and
replace all data_blob(NULL, 0) calls.
(This used to be commit 3d3d61687e)
2007-10-10 12:22:01 -05:00
Jeremy Allison
92999cee8d r22676: Fix zero alloc with create_rpc_blob().
Jeremy.
(This used to be commit c73963a60a)
2007-10-10 12:19:54 -05:00
Jeremy Allison
32b9beb164 r22673: Fix for Jerry's reversion. We still need to check size
before talloc.
Jeremy.
(This used to be commit 9e4c6ab739)
2007-10-10 12:19:54 -05:00
Gerald Carter
a127d5331a r22630: Revert svn r22576 (parse change to enum_aliasmem(). Original code was correct
(This used to be commit cf11b43149)
2007-10-10 12:19:50 -05:00
Jeremy Allison
79de0ad946 r22588: Make all uses of TALLOC_MEMDUP consistent.
Jeremy.
(This used to be commit 8ad13718af)
2007-10-10 12:19:48 -05:00
Jeremy Allison
61f95f1f97 r22585: Get us into a consistent state with TALLOC_ZERO_ARRAY also.
Jeremy.
(This used to be commit c622fb8536)
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 3df99006f8)
2007-10-10 12:19:46 -05:00
Jeremy Allison
571845991e r22576: Fix marshalling bug in aliasmem.
Jeremy.
(This used to be commit 415c476f72)
2007-10-10 12:19:45 -05:00
Jeremy Allison
4ab6a8ebb7 r22564: Move the _strict -> _zeronull functions into lib/util.c
and out of talloc at tridge's request.
Jeremy.
(This used to be commit da78488b86)
2007-10-10 12:19:45 -05:00
Jeremy Allison
12ba88574b r22542: Move over to using the _strict varients of the talloc
calls. No functional changes. Looks bigger than it is :-).
Jeremy.
(This used to be commit f6fa3080fe)
2007-10-10 12:19:44 -05:00
Jeremy Allison
62683646dc r22163: Pure reformatting. I hate 4 space tabstops :-).
Jeremy.
(This used to be commit 99abe96b2b)
2007-10-10 12:19:18 -05:00
Gerald Carter
a1e72969d5 r22104: BUG 4439: Fix the object picket on x64 WIndopws XP/2003.
Enable the DsRoleGetPrimaryDomainInfo() server code.
Tested by Win2000/XP/2003/Vista (x86) and WinXP (x64)
(This used to be commit eab9ca7e7d)
2007-10-10 12:19:12 -05:00
Jeremy Allison
7f8d89bc54 r22062: Fix the parsing of info level 3. Flags is not a flags
field, but an offset. Fixed 64-bit display of ACLs on
printers.
Jeremy.
(This used to be commit 0c8949ff5d)
2007-10-10 12:19:07 -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
bc2b6436d0 r22009: change TDB_DATA from char * to unsigned char *
and fix all compiler warnings in the users

metze
(This used to be commit 3a28443079)
2007-10-10 12:19:00 -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
Stefan Metzmacher
a806037b87 r21987: split tdb_prs_*() functions in version which take a keystr and a TDB_DATA key
metze
(This used to be commit 724c6fa337)
2007-10-10 12:18:56 -05:00
Gerald Carter
2b52e35770 r21507: Fix some "cannot access LDAP when no root" bugs.
The two culprits were

* pdb_get_account_policy()
* pdb_get_group_sid()
(This used to be commit 6a69caf690)
2007-10-10 12:18:09 -05:00
Günther Deschner
216c5c51c5 r21393: Fix typo.
Guenther
(This used to be commit 7bbb3409a5)
2007-10-10 12:18:01 -05:00
Jeremy Allison
6663fa6bdc r21346: FIXME ! Our parsing here is wrong I think,
but for a level3 it makes no sense for
ptr_sec_desc to be NULL. JRA. Based on
a Vista sniff from Martin Zielinski <mz@seh.de>.
Jerry - part of the Vista patchset.
Jeremy.
(This used to be commit 60e26a9039)
2007-10-10 12:17:57 -05:00
Jeremy Allison
68ddb42c66 r21096: Fix formatting.
Jeremy
(This used to be commit b35fa5168e)
2007-10-10 12:17:36 -05:00
Gerald Carter
cf629dc495 r20904: This is a placeholder fix. Apparently Windows 2000
is sharing the IDL for the SAMR pipe with Windows 2003
but returning NT_STATUS_NOT_SUPPORTED rather than a DCE/RCE
fault.  We need to catch this in the general sense
by looking at the returned PDU size.  But this immediate
change fixes password changes via pam_winbind against Windows 2000
DCs.
(This used to be commit a3602cc6d4)
2007-10-10 12:17:18 -05:00
Herb Lewis
e59e787b48 r20269: merge -r20264:20267 from SAMBA_3_0_24
more no previous prototype warnings
(This used to be commit 41be182f78)
2007-10-10 12:16:38 -05:00
Volker Lendecke
f799df03d4 r19288: tdb_prs_store is right now used to store printer and share security
descriptors. Both databases are long-lived and not frequently written, so I
think storing it deserves a tdb transaction.

Volker
(This used to be commit 2d4b5f5727)
2007-10-10 12:15:28 -05:00
Günther Deschner
7b84b133fe r19161: Add NET_GETANYDCNAME (getdcname only gives the PDC while getanydcname
gives just any DC), also make sure to set timeouts in rpcclient
accordingly so that we actually get the DC's reply.

Guenther
(This used to be commit 6091c8152a)
2007-10-10 12:15:18 -05:00
Günther Deschner
adc299bd08 r19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.
Guenther
(This used to be commit 44e228ac79)
2007-10-10 12:15:16 -05:00
Volker Lendecke
7ced2e983d r19028: Implement getprinterinfo level 6 (only the status) and get rid of snum in the
getprinter calls. Survives the RPC-SAMBA3-SPOOLSS test which I will activate
when the Samba4 build farm has picked it up.

Volker
(This used to be commit d7248b6cfa)
2007-10-10 12:15:03 -05:00
Gerald Carter
bbaa0b178d r18919: * Get the new rpccli_winreg_XXXX() functions into the tree
There some broken functionality here that I'm still working on.
* remove unneeded parsing routines
(This used to be commit cbfe1a4b49)
2007-10-10 12:14:46 -05:00
Jeremy Allison
b9b964a360 r18846: Fix the same bug Volker noticed when marshalling/unmarshalling
SEC_ACE. "type" is also an enum that may be any size. Treat as
a uint8.
Jeremy.
(This used to be commit fd97f48ba3)
2007-10-10 12:01:04 -05:00
Volker Lendecke
35a8521501 r18845: Fix a type-punned warning that turned out to be a real bug: The secdesc
revision is now an enum that might be represented as anything, in particular
as an int. It's definitely not a uint16 :-)

Volker
(This used to be commit 7c5d66c971)
2007-10-10 12:01:04 -05:00
Jelmer Vernooij
7ba2554d88 r18802: Use the pidl-generated code for the srvsvc interface, both client and server code.
This has had some basic testing. I'll do more during the next couple of days and hopefully also
make RPC-SRVSVC from Samba4 pass against it.
(This used to be commit ef10672399)
2007-10-10 12:00:59 -05:00