Lines Matching refs:ludp
127 LDAPURLDesc **ludp);
128 static void _ldap_free_urldesc(LDAPURLDesc *ludp);
307 LDAPURLDesc *ludp = NULL;
333 rc = ldap_url_parse(data->state.url, &ludp);
335 rc = _ldap_url_parse(data, conn, &ludp);
538 rc = ldap_search_s(server, ludp->lud_dn, ludp->lud_scope,
539 ludp->lud_filter, ludp->lud_attrs, 0, &ldapmsg);
740 if(ludp)
741 ldap_free_urldesc(ludp);
839 * yields ludp->lud_dn = "".
844 const struct connectdata *conn, LDAPURLDesc *ludp)
859 ludp->lud_scope = LDAP_SCOPE_BASE;
860 ludp->lud_port = conn->remote_port;
861 ludp->lud_host = conn->host.name;
895 ludp->lud_dn = curlx_convert_UTF8_to_tchar(unescaped);
900 if(!ludp->lud_dn) {
906 ludp->lud_dn = unescaped;
932 ludp->lud_attrs = calloc(count + 1, sizeof(TCHAR *));
934 ludp->lud_attrs = calloc(count + 1, sizeof(char *));
936 if(!ludp->lud_attrs) {
963 ludp->lud_attrs[i] = curlx_convert_UTF8_to_tchar(unescaped);
968 if(!ludp->lud_attrs[i]) {
976 ludp->lud_attrs[i] = unescaped;
979 ludp->lud_attrs_dups++;
995 ludp->lud_scope = str2scope(p);
996 if(ludp->lud_scope == -1) {
1001 LDAP_TRACE(("scope %d\n", ludp->lud_scope));
1030 ludp->lud_filter = curlx_convert_UTF8_to_tchar(unescaped);
1035 if(!ludp->lud_filter) {
1041 ludp->lud_filter = unescaped;
1063 LDAPURLDesc *ludp = calloc(1, sizeof(*ludp));
1067 if(!ludp)
1070 rc = _ldap_url_parse2(data, conn, ludp);
1072 _ldap_free_urldesc(ludp);
1073 ludp = NULL;
1075 *ludpp = ludp;
1079 static void _ldap_free_urldesc(LDAPURLDesc *ludp)
1081 if(!ludp)
1085 curlx_unicodefree(ludp->lud_dn);
1086 curlx_unicodefree(ludp->lud_filter);
1088 free(ludp->lud_dn);
1089 free(ludp->lud_filter);
1092 if(ludp->lud_attrs) {
1094 for(i = 0; i < ludp->lud_attrs_dups; i++) {
1096 curlx_unicodefree(ludp->lud_attrs[i]);
1098 free(ludp->lud_attrs[i]);
1101 free(ludp->lud_attrs);
1104 free(ludp);