Lines Matching refs:lu
561 aldap_free_url(struct aldap_url *lu)
563 free(lu->buffer);
564 free(lu->filter);
568 aldap_parse_url(char *url, struct aldap_url *lu)
574 if ((lu->buffer = p = strdup(url)) == NULL)
580 lu->protocol = LDAP;
592 lu->port = strtonum(++forward2, 0, PORT_MAX, &errstr);
600 lu->host = p;
611 lu->dn = p;
626 lu->attributes[i] = p;
630 lu->attributes[i] = p;
644 lu->scope = LDAP_SCOPE_BASE;
646 lu->scope = LDAP_SCOPE_ONELEVEL;
648 lu->scope = LDAP_SCOPE_SUBTREE;
659 lu->filter = p;
664 free(lu->buffer);
665 lu->buffer = NULL;
673 struct aldap_url *lu;
675 if ((lu = calloc(1, sizeof(*lu))) == NULL)
678 if (aldap_parse_url(url, lu))
681 if (aldap_search(ldap, lu->dn, lu->scope, lu->filter, lu->attributes,
685 aldap_free_url(lu);
688 aldap_free_url(lu);