From 4cd5be26378bcc5aab2333ba487a814e5dd6816c Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 18 May 2006 03:41:25 +0100 Subject: [PATCH] rpcrt4: A NULL AuthInfo is allowed. Pass the server principal name into AcquireCredentialsHandleA. --- dlls/rpcrt4/rpc_binding.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c index 73bff581e68..6bc31829018 100644 --- a/dlls/rpcrt4/rpc_binding.c +++ b/dlls/rpcrt4/rpc_binding.c @@ -1027,9 +1027,6 @@ RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, unsigned char *ServerPrinc TRACE("%p %s %lu %lu %p %lu %p\n", Binding, debugstr_a((const char*)ServerPrincName), AuthnLevel, AuthnSvc, AuthIdentity, AuthzSvr, SecurityQos); - if (!AuthIdentity) - return RPC_S_INVALID_AUTH_IDENTITY; - if (AuthnLevel != RPC_C_AUTHN_LEVEL_CONNECT) { FIXME("unsupported AuthnLevel %lu\n", AuthnLevel); @@ -1064,7 +1061,7 @@ RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, unsigned char *ServerPrinc } TRACE("found package %s for service %ld\n", packages[i].Name, AuthnSvc); - r = AcquireCredentialsHandleA(NULL, packages[i].Name, SECPKG_CRED_OUTBOUND, NULL, + r = AcquireCredentialsHandleA((SEC_CHAR *)ServerPrincName, packages[i].Name, SECPKG_CRED_OUTBOUND, NULL, AuthIdentity, NULL, NULL, &cred, &exp); FreeContextBuffer(packages); if (r == ERROR_SUCCESS)