Lines Matching refs:lu
562 aldap_free_url(struct aldap_url *lu)
564 free(lu->buffer);
565 free(lu->filter);
569 aldap_parse_url(char *url, struct aldap_url *lu)
575 if ((lu->buffer = p = strdup(url)) == NULL)
581 lu->protocol = LDAP;
593 lu->port = strtonum(++forward2, 0, PORT_MAX, &errstr);
601 lu->host = p;
612 lu->dn = p;
627 lu->attributes[i] = p;
631 lu->attributes[i] = p;
645 lu->scope = LDAP_SCOPE_BASE;
647 lu->scope = LDAP_SCOPE_ONELEVEL;
649 lu->scope = LDAP_SCOPE_SUBTREE;
660 lu->filter = p;
665 free(lu->buffer);
666 lu->buffer = NULL;
674 struct aldap_url *lu;
676 if ((lu = calloc(1, sizeof(*lu))) == NULL)
679 if (aldap_parse_url(url, lu))
682 if (aldap_search(ldap, lu->dn, lu->scope, lu->filter, lu->attributes,
686 aldap_free_url(lu);
689 aldap_free_url(lu);