Home | History | Annotate | Download | only in lib

Lines Matching refs:ludp

115                              LDAPURLDesc **ludp);
116 static void _ldap_free_urldesc (LDAPURLDesc *ludp);
192 LDAPURLDesc *ludp = NULL;
221 rc = ldap_url_parse(data->change.url, &ludp);
223 rc = _ldap_url_parse(conn, &ludp);
419 rc = ldap_search_s(server, ludp->lud_dn, ludp->lud_scope,
420 ludp->lud_filter, ludp->lud_attrs, 0, &ldapmsg);
664 if(ludp)
665 ldap_free_urldesc(ludp);
767 * yields ludp->lud_dn = "".
771 static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
785 ludp->lud_scope = LDAP_SCOPE_BASE;
786 ludp->lud_port = conn->remote_port;
787 ludp->lud_host = conn->host.name;
815 ludp->lud_dn = Curl_convert_UTF8_to_tchar(unescaped);
820 if(!ludp->lud_dn) {
826 ludp->lud_dn = unescaped;
852 ludp->lud_attrs = calloc(count + 1, sizeof(TCHAR *));
854 ludp->lud_attrs = calloc(count + 1, sizeof(char *));
856 if(!ludp->lud_attrs) {
881 ludp->lud_attrs[i] = Curl_convert_UTF8_to_tchar(unescaped);
886 if(!ludp->lud_attrs[i]) {
894 ludp->lud_attrs[i] = unescaped;
897 ludp->lud_attrs_dups++;
913 ludp->lud_scope = str2scope(p);
914 if(ludp->lud_scope == -1) {
919 LDAP_TRACE (("scope %d\n", ludp->lud_scope));
947 ludp->lud_filter = Curl_convert_UTF8_to_tchar(unescaped);
952 if(!ludp->lud_filter) {
958 ludp->lud_filter = unescaped;
978 LDAPURLDesc *ludp = calloc(1, sizeof(*ludp));
982 if(!ludp)
985 rc = _ldap_url_parse2 (conn, ludp);
987 _ldap_free_urldesc(ludp);
988 ludp = NULL;
990 *ludpp = ludp;
994 static void _ldap_free_urldesc (LDAPURLDesc *ludp)
998 if(!ludp)
1001 free(ludp->lud_dn);
1002 free(ludp->lud_filter);
1004 if(ludp->lud_attrs) {
1005 for(i = 0; i < ludp->lud_attrs_dups; i++)
1006 free(ludp->lud_attrs[i]);
1007 free(ludp->lud_attrs);
1010 free (ludp);