s3:pdb_ads: we need to make the fd for tldap/tsocket non-blocking
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Jun 2009 14:31:31 +0000 (16:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 29 Jun 2009 20:18:14 +0000 (22:18 +0200)
metze

source3/passdb/pdb_ads.c

index b7c42c58c9baacc13e2ca3ea171884e9c2105bee..be4b4b26d8030fb1325009f5fbe6500b816afd75 100644 (file)
@@ -2074,6 +2074,8 @@ static struct tldap_context *pdb_ads_ld(struct pdb_ads_state *state)
                return NULL;
        }
 
+       set_blocking(fd, false);
+
        state->ld = tldap_context_create(state, fd);
        if (state->ld == NULL) {
                close(fd);