[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: options to maintain computed attributes?
- To: Michael Ströder <michael@stroeder.com>, openldap-technical@openldap.org
- Subject: Re: options to maintain computed attributes?
- From: Jephte Clain <jephte.clain@univ-reunion.fr>
- Date: Fri, 04 Dec 2015 15:59:58 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=univ-reunion-fr.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=pP/8InIhTSpu5SvyY3Hxk0EdKUhTxux25Va2FFabLtg=; b=t5BdQVCUPkogXhAH9SOIYrJf+QkPAn2jTogHHTK4nV5RdPH69PES676fw53Rzd2xc4 MiQRmX7/tTThkJ4aj/YFW2LgPOgrv/SN773fcbTCkDGOdCW1GSdOSDpOORUmTlPkSs2f whhz9XNe+ey3adjKOWEHm8ib+F88xMVu2VYOM/7kzBIV/3O9ABUxFKz6KGPUOtPQ968s v5DNUfnpJKnaGMEK2GlaWUl7z31XPGDY1nT9EdAF/wcQrGmDrWrEMhq5q/bMHY83UQSv L+7QQektgkbi+iaYrmq8PsrHlUqqTu9e4TvAbhevz1x6w2awTsLD67lYsumUi11t0DfT mWIg==
- In-reply-to: <56617971.1040802@stroeder.com>
- References: <566160F3.5080204@univ-reunion.fr> <56617971.1040802@stroeder.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.0
Le 04/12/2015 15:30, Michael Ströder a écrit :
Jephte Clain wrote:
I may have a need soon to implement "computed" attributes in LDAP, to
accommodate dumb clients that are unable to properly update the database
for example, an attribute masterAttr may have values like "A:B" (its value
updated by the dumb client), but other clients need the A or B part separately.
So whenever masterAttr is updated with value "A:B", firstPartAttr have to be
updated with "A" and secondPartAttr with "B"
Hello,
thank you for your response,
Note that splitting the value pairs into distinct attributes within the same
entry does not work for multi-valued attributes.
what do you mean? if masterAttr, firstPartAttr and secondPartAttr are
multivalued, shouldn't it be possible?
I mean, with:
masterAttr: A:B
masterAttr: A:C
I would get:
firstPartAttr: A
firstPartAttr: A
secondPartAttr: B
secondPartAttr: C
Or am I missing something? Would the *PartAttr attributes have to have
special syntax to allow duplicate values?
- is there an overlay like slapo-rwm but for attribute values? I searched but
did not found anything. So I guess the answer is no.
AFAICS, no.
- using a combination of back-perl, back-relay and slapo-translucent? is that
even possible
Yes. Many moving parts though.
- using back-sock as an overlay to monitor modifications and update the modified
objects accordingly?
Yes. Not the best performance though. And you need a recent OpenLDAP release
with back-sock fixes.
- a script that monitor the accesslog database and update the modified objects
accordingly?
Yes.
- biting the bullet and writing an overlay myself?
Yes, most probably gives the best performance.
OK. So what do you recommend?
I know a bit of C, but I haven't written in that language for some years
now (the last thing I wrote was a plugin for PostgreSQL)
I could use some help, especially where to start? I have trouble finding
docs about native plugins.
Thanks in advance for any suggestion.
Best regards,
Jephté CLAIN
Ciao, Michael.
--
*Jephté CLAIN | Développeur, Intégrateur d'applications*
Service Systèmes d'Information
Direction des Systèmes d'Information <http://dsi.univ-reunion.fr>
Tél: +262 262 93 86 31 <tel:+262262938631> || Gsm: +262 692 29 58 24
<tel:+262692295824>
www.univ-reunion.fr <http://www.univ-reunion.fr> || Facebook
<http://www.facebook.com/pages/Universit%C3%A9-de-La-R%C3%A9union-OFFICIEL/197176816990430>
|| Twitter <http://twitter.com/univ_reunion>