Lines Matching full:url
176 struct aldap_urlq *url; in parse_conf() local
227 if ((url = calloc(1, sizeof(*url))) == NULL) { in parse_conf()
232 if (parse_server_line(value, &(url->s)) == 0) { in parse_conf()
233 free(url); in parse_conf()
236 TAILQ_INSERT_TAIL(&(ctx->s), url, entries); in parse_conf()
314 do_conn(struct auth_ctx *ctx, struct aldap_url *url) in do_conn() argument
324 dlog(1, "host %s, port %d", url->host, url->port); in do_conn()
326 if (url->protocol == LDAPI) { in do_conn()
329 if (strlcpy(un.sun_path, url->host, in do_conn()
331 dlog(0, "socket '%s' too long", url->host); in do_conn()
336 dlog(0, "can't create socket '%s'", url->host); in do_conn()
344 (void)snprintf(port, sizeof(port), "%u", url->port); in do_conn()
345 if ((code = getaddrinfo(url->host, port, in do_conn()
367 dlog(0, "aldap_open(%s:%hd) failed", url->host, url->port); in do_conn()
373 if (url->protocol == LDAPTLS) { in do_conn()
394 if (url->protocol == LDAPTLS || url->protocol == LDAPS) { in do_conn()
413 if (aldap_tls(ctx->ld, tls_config, url->host) < 0) { in do_conn()
428 struct aldap_urlq *url; in conn() local
430 TAILQ_FOREACH(url, &(ctx->s), entries) { in conn()
431 if (do_conn(ctx, &(url->s))) in conn()