summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-02-20 22:34:35 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-02-20 22:34:35 +0000
commitdc3584b4179f50e556013cb99db4cb3749f02550 (patch)
tree66d1465ee4e13fedfd1d3f2e80f5031f789a60eb /source3/libsmb
parent5294b48bb806cd5e3888254e0260efac32dcfec7 (diff)
downloadsamba-dc3584b4179f50e556013cb99db4cb3749f02550.tar.gz
samba-dc3584b4179f50e556013cb99db4cb3749f02550.tar.bz2
samba-dc3584b4179f50e556013cb99db4cb3749f02550.zip
This fixes a bug (spotted by Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl>)
where we pass the client's name. We should pass the servers name. Andrew Bartlett (This used to be commit aeecb7a06b006e69879f00699f4b8b6497553d19)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cli_lsarpc.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/libsmb/cli_lsarpc.c b/source3/libsmb/cli_lsarpc.c
index d3c7db70a2..249225d894 100644
--- a/source3/libsmb/cli_lsarpc.c
+++ b/source3/libsmb/cli_lsarpc.c
@@ -108,7 +108,10 @@ NTSTATUS cli_lsa_open_policy(struct cli_state *cli, TALLOC_CTX *mem_ctx,
return result;
}
-/** Open a LSA policy handle */
+/** Open a LSA policy handle
+ *
+ * @param cli Handle on an initialised SMB connection
+ */
NTSTATUS cli_lsa_open_policy2(struct cli_state *cli, TALLOC_CTX *mem_ctx,
BOOL sec_qos, uint32 des_access, POLICY_HND *pol)
@@ -131,10 +134,10 @@ NTSTATUS cli_lsa_open_policy2(struct cli_state *cli, TALLOC_CTX *mem_ctx,
if (sec_qos) {
init_lsa_sec_qos(&qos, 2, 1, 0);
- init_q_open_pol2(&q, cli->clnt_name_slash, 0, des_access,
+ init_q_open_pol2(&q, cli->srv_name_slash, 0, des_access,
&qos);
} else {
- init_q_open_pol2(&q, cli->clnt_name_slash, 0, des_access,
+ init_q_open_pol2(&q, cli->srv_name_slash, 0, des_access,
NULL);
}
@@ -435,7 +438,9 @@ NTSTATUS cli_lsa_lookup_names(struct cli_state *cli, TALLOC_CTX *mem_ctx,
return result;
}
-/** Query info policy */
+/** Query info policy
+ *
+ * @param domain_sid - returned remote server's domain sid */
NTSTATUS cli_lsa_query_info_policy(struct cli_state *cli, TALLOC_CTX *mem_ctx,
POLICY_HND *pol, uint16 info_class,