LDAPURLDesc

Contains URL information and the parameters for the search operation.

Structure

  typedef struct ldap_url_desc {
     struct ldap_url_desc   *lud_next;
     char    *lud_scheme;
     char    *lud_host;
     int      lud_port;
     char    *lud_dn;
     char   **lud_attrs;
     int      lud_scope;
     char    *lud_filter;
     char   **lud_exts;
     char     lud_crit_exts;
  } LDAPURLDesc;
  

Fields

lud_next

Points to the next URL.

lud_scheme

Specifies the URL scheme (either ldap or ldaps).

lud_host

Points to the name of the host as a dotted IP address or DNS format.

lud_port

Specifies the port from the URL.

lud_dn

Points to the distinguished name of the base entry from the URL.

lud_attrs

Points to a NULL-terminated list of attributes specified in the URL.

lud_scope

Specifies the scope in the URL and uses one of the following flags.

  • LDAP_SCOPE_BASE (0x00)—searches the entry specified by the base parameter.

  • LDAP_SCOPE_ONELEVEL (0x01)—searches the entry specified by the base parameter and one level beneath that entry.

  • LDAP_SCOPE_SUBTREE (0x02)—searches the entire subtree starting with the entry specified by the base parameter.

lud_filter

Points to the search filter specified in the URL.

If NULL is passed, a default filter ("objectclass=*") is used.

lud_exts

Points to a NULL-terminated list of the extensions specified in the URL.

lud_crit_exts

Specifies whether or not any critical extensions are included.