summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-09 13:17:42 +0200
committerGünther Deschner <gd@samba.org>2008-04-09 13:18:46 +0200
commit8d0ad6413eeeefd36c21f2d1a99a085da1df0b32 (patch)
tree8e6daadb616c654d76808f99b724281be9de5e79 /source3/utils
parent9fa04934e081fc87d9a40c9bf8c371726f7be6ad (diff)
downloadsamba-8d0ad6413eeeefd36c21f2d1a99a085da1df0b32.tar.gz
samba-8d0ad6413eeeefd36c21f2d1a99a085da1df0b32.tar.bz2
samba-8d0ad6413eeeefd36c21f2d1a99a085da1df0b32.zip
Fix parameters string for rpc_trustdom_add_internals().
Guenther (This used to be commit e161bb64a8348ecf7929dbc04d5923d8bd3542ad)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index f3f187bf0b..4b2c6ca478 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -5614,14 +5614,16 @@ static NTSTATUS rpc_trustdom_add_internals(const DOM_SID *domain_sid,
{
NTTIME notime;
struct samr_LogonHours hours;
+ struct lsa_BinaryString parameters;
const int units_per_week = 168;
uchar pwbuf[516];
encode_pw_buffer(pwbuf, argv[1], STR_UNICODE);
ZERO_STRUCT(notime);
-
ZERO_STRUCT(hours);
+ ZERO_STRUCT(parameters);
+
hours.bits = talloc_array(mem_ctx, uint8_t, units_per_week);
if (!hours.bits) {
result = NT_STATUS_NO_MEMORY;
@@ -5634,7 +5636,7 @@ static NTSTATUS rpc_trustdom_add_internals(const DOM_SID *domain_sid,
notime, notime, notime,
notime, notime, notime,
NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL, NULL, &parameters,
0, 0, ACB_DOMTRUST, SAMR_FIELD_ACCT_FLAGS,
hours,
0, 0, 0, 0, 0, 0, 0,