summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-18 12:42:00 +0100
committerGünther Deschner <gd@samba.org>2011-02-02 13:30:04 +0100
commitf21f9192f140d326d9904f1b936f1f8ceb707a02 (patch)
tree36d84b3babbd0c80e24906b9698ad07a4cc6aea9 /source3
parent39c6809eeb46a2be3de5b586483c28d32138229c (diff)
downloadsamba-f21f9192f140d326d9904f1b936f1f8ceb707a02.tar.gz
samba-f21f9192f140d326d9904f1b936f1f8ceb707a02.tar.bz2
samba-f21f9192f140d326d9904f1b936f1f8ceb707a02.zip
s3-winbind: prefer dcerpc_samr_X functions in invalidate_cm_connection.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_cm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index c1557bd8c4..98598cf581 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -63,7 +63,7 @@
#include "../libcli/auth/libcli_auth.h"
#include "../librpc/gen_ndr/ndr_netlogon_c.h"
#include "rpc_client/cli_netlogon.h"
-#include "../librpc/gen_ndr/cli_samr.h"
+#include "../librpc/gen_ndr/ndr_samr_c.h"
#include "../librpc/gen_ndr/cli_lsa.h"
#include "rpc_client/cli_lsarpc.h"
#include "../librpc/gen_ndr/ndr_dssetup_c.h"
@@ -1635,8 +1635,11 @@ void invalidate_cm_connection(struct winbindd_cm_conn *conn)
if (conn->samr_pipe != NULL) {
if (is_valid_policy_hnd(&conn->sam_connect_handle)) {
- rpccli_samr_Close(conn->samr_pipe, talloc_tos(),
- &conn->sam_connect_handle);
+ NTSTATUS result;
+ dcerpc_samr_Close(conn->samr_pipe->binding_handle,
+ talloc_tos(),
+ &conn->sam_connect_handle,
+ &result);
}
TALLOC_FREE(conn->samr_pipe);
/* Ok, it must be dead. Drop timeout to 0.5 sec. */