Issue 5330 - back-null upgrade
Summary: back-null upgrade
Status: UNCONFIRMED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: backends (show other issues)
Version: unspecified
Hardware: All All
: --- development
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-18 18:13 UTC by Hallvard Furuseth
Modified: 2020-03-18 20:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Hallvard Furuseth 2008-01-18 18:13:09 UTC
Full_Name: Hallvard B Furuseth
Version: HEAD
OS: 
URL: 
Submission from: (NULL) (129.240.6.233)
Submitted by: hallvard


I'll be upgrading back-null a bit.  At the moment just support for
Back-config, Modify-Increment Extension and empty rootpw.


Maybe grow it to a useful template of a nontrivial backend later
(after I learn how to write that), with access control, referrals,
various extensions...  Might be almost-unused and thus subject to
code rot, but less so than documentation of the backend API.

However I imagine that could slow it down somewhat, so it might
become less useful when used to benchmark backends.  (E.g. if you
run a test with some backend, then with back-null, diff the time
to see how much was spent in the backend.)

Comment 1 Hallvard Furuseth 2008-01-18 18:19:08 UTC
moved from Incoming to Software Enhancements
Comment 2 Howard Chu 2008-01-21 13:12:55 UTC
h.b.furuseth@usit.uio.no wrote:
> Full_Name: Hallvard B Furuseth
> Version: HEAD
> OS:
> URL:
> Submission from: (NULL) (129.240.6.233)
> Submitted by: hallvard
>
>
> I'll be upgrading back-null a bit.  At the moment just support for
> Back-config, Modify-Increment Extension and empty rootpw.

> Maybe grow it to a useful template of a nontrivial backend later
> (after I learn how to write that), with access control, referrals,
> various extensions...  Might be almost-unused and thus subject to
> code rot, but less so than documentation of the backend API.
>
> However I imagine that could slow it down somewhat, so it might
> become less useful when used to benchmark backends.  (E.g. if you
> run a test with some backend, then with back-null, diff the time
> to see how much was spent in the backend.)

I don't believe back-null should ever handle access controls or referrals. It 
shouldn't have any config options at all, really. Create some other backend if 
you want a dummy template that shows how all the other APIs are tied in.

-- 
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP     http://www.openldap.org/project/

Comment 3 Hallvard Furuseth 2008-01-30 10:03:38 UTC
hyc@symas.com writes:
> h.b.furuseth@usit.uio.no wrote:
>> I'll be upgrading back-null a bit.  At the moment just support for
>> Back-config, Modify-Increment Extension and empty rootpw.
>
>> Maybe grow it to a useful template of a nontrivial backend later
>> (after I learn how to write that), with access control, referrals,
>> various extensions...  Might be almost-unused and thus subject to
>> code rot, but less so than documentation of the backend API.
>> (...)
>
> I don't believe back-null should ever handle access controls or
> referrals.

OK.  However it shouldn't need to _handle_ referrals, since it can have
no referral objects.  I think the complete implementation would be to
set SLAP_BFLAG_REFERRALS and LDAP_CONTROL_MANAGEDSAIT in the init
function.  Assuming the default_referral code in BDB which neither of us
understand (ITS#5339) is unnecessary.

SLAP_BFLAG_INCREMENT and (I think) LDAP_CONTROL_X_PERMISSIVE_MODIFY can
be set without needing any extra code, and LDAP_CONTROL_NOOP will need
one line for the update functions.

> It shouldn't have any config options at all, really.

Does that mean I shouldn't add back-config support either?

I do find "bind on" useful.  And it would be convenient to accept and
ignore the "directory" option, so it can be used as a drop-in
replacement for a minimal back-bdb/back-ldif config.


My current motivation is nothing major, just to push back-null through
"cd tests/ && ./run -b null all".

> Create some other backend if you want a dummy template that shows how
> all the other APIs are tied in.

OK.  Just need to think of something for it to do...

-- 
Hallvard