Windows connects to an upper case NETLOGON pipe, and we can't find the
socket to connect to until we lower case the name.
Andrew Bartlett
struct tevent_req *subreq;
int ret;
enum ndr_err_code ndr_err;
+ char *lower_case_npipe = strlower_talloc(talloc_tos(), npipe);
+
+ if (!lower_case_npipe) {
+ return NULL;
+ }
req = tevent_req_create(mem_ctx, &state,
struct tstream_npa_connect_state);
state->unix_path = talloc_asprintf(state, "%s/%s",
directory,
- npipe);
+ lower_case_npipe);
+ talloc_free(lower_case_npipe);
if (tevent_req_nomem(state->unix_path, req)) {
goto post;
}