00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
#ifndef APR_LDAP_URL_H
00017
#define APR_LDAP_URL_H
00018
00019
#if APR_HAS_LDAP
00020
00021
#include "apu.h"
00022
#include "apr_pools.h"
00023
00024
00025
00026
00027
typedef struct apr_ldap_url_desc_t {
00028
struct apr_ldap_url_desc_t *lud_next;
00029
char *lud_scheme;
00030
char *lud_host;
00031
int lud_port;
00032
char *lud_dn;
00033
char **lud_attrs;
00034
int lud_scope;
00035
char *lud_filter;
00036
char **lud_exts;
00037
int lud_crit_exts;
00038 } apr_ldap_url_desc_t;
00039
00040
#ifndef APR_LDAP_URL_SUCCESS
00041
#define APR_LDAP_URL_SUCCESS 0x00
00042
#define APR_LDAP_URL_ERR_MEM 0x01
00043
#define APR_LDAP_URL_ERR_PARAM 0x02
00044
#define APR_LDAP_URL_ERR_BADSCHEME 0x03
00045
#define APR_LDAP_URL_ERR_BADENCLOSURE 0x04
00046
#define APR_LDAP_URL_ERR_BADURL 0x05
00047
#define APR_LDAP_URL_ERR_BADHOST 0x06
00048
#define APR_LDAP_URL_ERR_BADATTRS 0x07
00049
#define APR_LDAP_URL_ERR_BADSCOPE 0x08
00050
#define APR_LDAP_URL_ERR_BADFILTER 0x09
00051
#define APR_LDAP_URL_ERR_BADEXTS 0x0a
00052
#endif
00053
00054
00055
00056
00057
00058
APU_DECLARE(
int) apr_ldap_is_ldap_url(const
char *url);
00059
00060 APU_DECLARE(
int) apr_ldap_is_ldaps_url(const
char *url);
00061
00062 APU_DECLARE(
int) apr_ldap_is_ldapi_url(const
char *url);
00063
00064 APU_DECLARE(
int) apr_ldap_url_parse_ext(apr_pool_t *pool,
00065 const
char *url_in,
00066 apr_ldap_url_desc_t **ludpp,
00067
apr_ldap_err_t **result_err);
00068
00069 APU_DECLARE(
int) apr_ldap_url_parse(apr_pool_t *pool,
00070 const
char *url_in,
00071 apr_ldap_url_desc_t **ludpp,
00072
apr_ldap_err_t **result_err);
00073
00074 #endif
00075
00076 #endif