svn commit: samba r3392 - in branches/SAMBA_4_0/source/librpc: idl
rpc
tridge at samba.org
tridge at samba.org
Sat Oct 30 11:48:09 GMT 2004
Author: tridge
Date: 2004-10-30 11:48:08 +0000 (Sat, 30 Oct 2004)
New Revision: 3392
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3392
Log:
fixed schannel over ncalrpc
Modified:
branches/SAMBA_4_0/source/librpc/idl/netlogon.idl
branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c
branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/netlogon.idl
===================================================================
--- branches/SAMBA_4_0/source/librpc/idl/netlogon.idl 2004-10-30 11:37:17 UTC (rev 3391)
+++ branches/SAMBA_4_0/source/librpc/idl/netlogon.idl 2004-10-30 11:48:08 UTC (rev 3392)
@@ -9,7 +9,7 @@
[
uuid("12345678-1234-abcd-ef00-01234567cffb"),
version(1.0),
- endpoint("ncacn_np:[\\pipe\\netlogon]","ncacn_ip_tcp:"),
+ endpoint("ncacn_np:[\\pipe\\netlogon]","ncacn_ip_tcp:","ncalrpc:"),
pointer_default(unique)
]
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c 2004-10-30 11:37:17 UTC (rev 3391)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c 2004-10-30 11:48:08 UTC (rev 3392)
@@ -362,6 +362,9 @@
DCERPC_NETLOGON_NAME,
DCERPC_NETLOGON_UUID,
DCERPC_NETLOGON_VERSION);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
/*
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c 2004-10-30 11:37:17 UTC (rev 3391)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c 2004-10-30 11:48:08 UTC (rev 3392)
@@ -1111,6 +1111,16 @@
pipe_version, NULL,
NULL, NULL);
break;
+
+ case NCALRPC:
+ status = dcerpc_parse_binding(p, p->binding_string, &b);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+ b.flags &= ~DCERPC_AUTH_OPTIONS;
+ status = dcerpc_pipe_connect_ncalrpc(p2, &b, pipe_uuid, pipe_version, NULL, NULL, NULL);
+ break;
+
default:
return NT_STATUS_NOT_SUPPORTED;
}
More information about the samba-cvs
mailing list