>>> kumar rahul <[email protected]> schrieb am 01.07.2020 um 21:28 in
Nachricht
<caoztu4ceezjwzywsh1fyxfoevep+_nmtvmvgozd+ix54k27...@mail.gmail.com>:
> Hi Quanah
> 
>     Please ignore the previous email. The location I gave you was the
> directory I have created for the accesslog database.I am new to ldap so
> bare with my primitive questions. Please find my response to your questions
> 
>   It looks like at least some of the modules in your system are compiled
> statically, which is
> likely why you currently do not have a module{0} section for loading
> modules.
> 
> [Rahul] How do I verify this if modules are compiled statically?

Good question; there is a calss olcModuleList, but that does list only the 
_loaded_ modules, not the present ones (I call the statically linkes modules 
still "modules").

Maybe a better structure than dn: cn=module{0},cn=config containing an 
olcModuleList would have been a structure that enumerates the modules by name 
(like dn: cn=back_mdb,cn=module,cn=config) and gives the type (loaded or 
build-in)...

Here for SLES12 there's also an oddity that the accesslog overlay has a 
different path than the rest:
dn: cn=module{0},cn=config
objectClass: olcModuleList
cn: module{0}
olcModulePath: /usr/lib/openldap
olcModuleLoad: {0}back_bdb.so
olcModuleLoad: {1}back_mdb.so
olcModuleLoad: {2}back_hdb.so
olcModuleLoad: {3}syncprov.so
olcModuleLoad: {4}/usr/lib/openldap/modules/accesslog.so

> 
> You'll also have to verify where on disk the accesslog overlay
> exists so that the moduleload statement pulls from the right directory.
> 
> [Rahul] How do I find out where an accesslog overlay exists on the disk?
> based on findings
> What changes I need to make in below lines for moduleload to work
> dn: cn=module{0},cn=config
> changetype: modify
> add: olcModuleLoad
> olcModuleLoad: syncprov
> olcModuleLoad: accesslog
> 
> Thanks
> Rahul
> 
> On Wed, Jul 1, 2020 at 3:14 PM kumar rahul <[email protected]> wrote:
> 
>> Hi Quanah
>>
>>    accesslog overlay file exists at following location
>> /var/lib/ldap/accesslog
>>
>> What changes I need to make in below lines for moduleload to work
>> dn: cn=module{0},cn=config
>> changetype: modify
>> add: olcModuleLoad
>> olcModuleLoad: syncprov
>> olcModuleLoad: accesslog
>>
>> Thanks
>> Rahul
>>
>> On Wed, Jul 1, 2020 at 1:38 PM Quanah Gibson-Mount <[email protected]>
>> wrote:
>>
>>> --On Wednesday, July 1, 2020 11:09 AM -0400 kumar rahul
>>> <[email protected]> wrote:
>>>
>>> > I am seeing following ERROR
>>>
>>> I have no idea how your slapd was built, etc.  But essentially the
>>> accesslog overlay must be loaded into slapd to be of use.  It looks like
>>> at
>>> least some of the modules in your system are compiled statically, which
>>> is
>>> likely why you currently do not have a module{0} section for loading
>>> modules.  You'll also have to verify where on disk the accesslog overlay
>>> exists so that the moduleload statement pulls from the right directory.
>>>
>>> Regards,
>>> Quanah
>>>
>>>
>>> --
>>>
>>> Quanah Gibson-Mount
>>> Product Architect
>>> Symas Corporation
>>> Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
>>> <http://www.symas.com>
>>>
>>



Reply via email to