Mailing List Archive

[Bug 53149] mod_ldap should/could use mod_socache
https://bz.apache.org/bugzilla/show_bug.cgi?id=53149

--- Comment #3 from Ruslan Semchenko <lastdayserq22@gmail.com> ---
Created attachment 38919
--> https://bz.apache.org/bugzilla/attachment.cgi?id=38919&action=edit
Simple code

1. Added mod_socache module to handle various caches:
- Use `socache_socache dbm:/path/to/ldap_cache.dbm` for LDAP cache.
- Used `socache_socache shmcb:/path/to/other_cache.shmcb` for other caches.

2. Configured mod_ldap cache options using mod_socache:
- `LDAPCacheEntries` sets the maximum number of cache entries.
- `LDAPCacheTTL` sets cache lifetime (in seconds).
- `LDAPCacheSize` sets the maximum cache size in kilobytes.
- `LDAPCacheURI` specifies the URI to access the LDAP server.
- `LDAPCacheSharedCache` sets the shared cache path for mod_ldap and
mod_socache modules.
Note that you need to replace `/path/to/ca.crt`, `/path/to/ldap_cache.dbm` and
`/path/to/other_cache.shmcb` with the appropriate values ??for your
configuration. Also configure the rest of the values ??(e.g.
`ldap.example.com`, `dc=example,dc=com`, `cn=admin,dc=example,dc=com` and
`adminpassword`) according to your LDAP configuration- server.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 53149] mod_ldap should/could use mod_socache [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=53149

--- Comment #4 from Eric Covener <covener@gmail.com> ---
(In reply to Ruslan Semchenko from comment #3)
> Created attachment 38919 [details]
> Simple code
>
> 1. Added mod_socache module to handle various caches:
> - Use `socache_socache dbm:/path/to/ldap_cache.dbm` for LDAP cache.
> - Used `socache_socache shmcb:/path/to/other_cache.shmcb` for other
> caches.
>
> 2. Configured mod_ldap cache options using mod_socache:
> - `LDAPCacheEntries` sets the maximum number of cache entries.
> - `LDAPCacheTTL` sets cache lifetime (in seconds).
> - `LDAPCacheSize` sets the maximum cache size in kilobytes.
> - `LDAPCacheURI` specifies the URI to access the LDAP server.
> - `LDAPCacheSharedCache` sets the shared cache path for mod_ldap and
> mod_socache modules.
> Note that you need to replace `/path/to/ca.crt`, `/path/to/ldap_cache.dbm`
> and `/path/to/other_cache.shmcb` with the appropriate values ??for your
> configuration. Also configure the rest of the values ??(e.g.
> `ldap.example.com`, `dc=example,dc=com`, `cn=admin,dc=example,dc=com` and
> `adminpassword`) according to your LDAP configuration- server.

LDAPCacheSharedCache and LDAPCacheURI don't exist.
mod_ldap doesn't have code to talk to mod_socache.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org