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 #ifndef _LD_URI_H
00026 #define _LD_URI_H
00027
00036 #include "../../lib/srdb2/db_uri.h"
00037 #include "../../lib/srdb2/db_drv.h"
00038
00039 #include <ldap.h>
00040
00041 enum auth_type {
00042 LDAP_AUTHMECH_NONE = 0,
00043 LDAP_AUTHMECH_SIMPLE,
00044 LDAP_AUTHMECH_DIGESTMD5,
00045 LDAP_AUTHMECH_EXTERNAL
00046 };
00047
00048 #define LDAP_MECHANISM_STR_DIGESTMD5 "digest-md5"
00049 #define LDAP_MECHANISM_STR_EXTERNAL "external"
00050
00051
00052
00058 struct ld_uri {
00059 db_drv_t drv;
00060 char* username;
00061 char* password;
00062 char* uri;
00063 int authmech;
00064 int tls;
00065 char* ca_list;
00066 char* req_cert;
00067 LDAPURLDesc* ldap_url;
00068 };
00069
00070
00078 int ld_uri(db_uri_t* uri);
00079
00080
00083 #endif