Lines 1070-1075
Link Here
|
1070 |
return(NULL); |
1070 |
return(NULL); |
1071 |
} |
1071 |
} |
1072 |
|
1072 |
|
|
|
1073 |
const char *util_ldap_set_shmem_cache(cmd_parms *cmd, void *dummy, const char *shmem_cache) |
1074 |
{ |
1075 |
util_ldap_state_t *st = |
1076 |
(util_ldap_state_t *)ap_get_module_config(cmd->server->module_config, |
1077 |
&ldap_module); |
1078 |
|
1079 |
st->shmem_cache = shmem_cache; |
1080 |
|
1081 |
return(NULL); |
1082 |
} |
1073 |
|
1083 |
|
1074 |
void *util_ldap_create_config(apr_pool_t *p, server_rec *s) |
1084 |
void *util_ldap_create_config(apr_pool_t *p, server_rec *s) |
1075 |
{ |
1085 |
{ |
Lines 1097-1103
Link Here
|
1097 |
(util_ldap_state_t *)ap_get_module_config(s->module_config, |
1107 |
(util_ldap_state_t *)ap_get_module_config(s->module_config, |
1098 |
&ldap_module); |
1108 |
&ldap_module); |
1099 |
|
1109 |
|
1100 |
apr_status_t result = util_ldap_cache_init(pool, st->cache_bytes); |
1110 |
apr_status_t result = util_ldap_cache_init(pool, st->cache_bytes, st->shmem_cache); |
1101 |
char buf[MAX_STRING_LEN]; |
1111 |
char buf[MAX_STRING_LEN]; |
1102 |
|
1112 |
|
1103 |
apr_strerror(result, buf, sizeof(buf)); |
1113 |
apr_strerror(result, buf, sizeof(buf)); |
Lines 1325-1330
Link Here
|
1325 |
" DER_FILE - file in binary DER format " |
1335 |
" DER_FILE - file in binary DER format " |
1326 |
" BASE64_FILE - file in Base64 format " |
1336 |
" BASE64_FILE - file in Base64 format " |
1327 |
" CERT7_DB_PATH - Netscape certificate database file "), |
1337 |
" CERT7_DB_PATH - Netscape certificate database file "), |
|
|
1338 |
AP_INIT_TAKE1("LDAPSharedMemCache", util_ldap_set_shmem_cache, NULL, RSRC_CONF, |
1339 |
"Specifies the LDAP Cache Shared Memory file. "), |
1328 |
{NULL} |
1340 |
{NULL} |
1329 |
}; |
1341 |
}; |
1330 |
|
1342 |
|