LDAPURLDesc is a type of structure that represents the components of an LDAP URL. LDAP URLs have the following syntax:
ldap://hostport/dn[?attributes[?scope[?filter]]]For example:
ldap://ldap.itd.umich.edu/c=US?o,description?one?o=umichCalling the
ldap_url_parse() routine creates an LDAPURLDesc structure containing the components of the URL. To free the LDAPURLDesc structure, call the ldap_free_urldesc() routine.
LDAPURLDesc is defined as follows:
typedef struct ldap_url_desc {char *lud_host;
int lud_port;
char *lud_dn;
char **lud_attrs;
int lud_scope;
char *lud_filter;
unsigned long lud_options;
} LDAPURLDesc;The fields in this structure are described below:
ldap_url_parse() function:
ldap://ldap.netscape.com:5000/o=Airius.com?cn,mail,telephoneNumber?sub?(sn=Jensen)the resulting
LDAPURLDesc structure (ludpp, in this example) contains the following values:
Last Updated: 10/01/98 17:05:28