ldap_api_fn.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef LDAP_API_FN_H
00034 #define LDAP_API_FN_H
00035
00036 #include <ldap.h>
00037
00038 #include "../../str.h"
00039 #include "../../sr_module.h"
00040
00041 #define LDAP_MAX_FILTER_LEN 1024
00042
00043
00044
00045
00046 int ldap_params_search(
00047 int* _ld_result_count,
00048 char* _lds_name,
00049 char* _dn,
00050 int _scope,
00051 char** _attrs,
00052 char* _filter,
00053 ...);
00054
00055 int ldap_url_search(
00056 char* _ldap_url,
00057 int* _ld_result_count);
00058
00059 int ldap_get_attr_vals(
00060 str *_attr_name,
00061 struct berval ***_vals);
00062
00063 int ldap_inc_result_pointer(void);
00064
00065 int ldap_str2scope(char* scope_str);
00066
00067 int get_ldap_handle(char* _lds_name, LDAP** _ldap_handle);
00068
00069 void get_last_ldap_result(LDAP** _last_ldap_handle,
00070 LDAPMessage** _last_ldap_result);
00071
00072 #endif