small patch for lsa client code

Rafal Szczesniak mimir at diament.ists.pwr.wroc.pl
Tue Feb 12 14:42:03 GMT 2002


I found a little bug in lsa client code in Samba. It yielded me much
confusion, but it seems simple :)


cheers,
+------------------------------------------------------------+
|Rafal 'Mimir' Szczesniak <mimir at diament.ists.pwr.wroc.pl>   |
|*BSD, GNU/Linux and Samba                                  /
|__________________________________________________________/
-------------- next part --------------
--- cli_lsarpc.c.orig	Tue Feb 12 23:01:52 2002
+++ cli_lsarpc.c	Tue Feb 12 02:08:34 2002
@@ -108,7 +108,9 @@
 	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 +133,10 @@
 
 	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 +437,9 @@
 	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, 


More information about the samba-technical mailing list