Issue 6165 - Support offline modify (slapmodify) for cn=config
Summary: Support offline modify (slapmodify) for cn=config
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.16
Hardware: All All
: --- development
Target Milestone: 2.5.0
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-08 23:09 UTC by Quanah Gibson-Mount
Modified: 2020-10-14 21:00 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 Quanah Gibson-Mount 2009-06-08 23:09:18 UTC
Full_Name: Quanah Gibson-Mount
Version: 2.4.16
OS: NA
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (75.111.29.239)


The slapmodify function already exists, but we've never built a tool around it. 
It would be useful to be able to have a utility that validates commands that
users can use to modify cn=config while slapd is offline, rather than resorting
to text editors that don't do validation of the changes being made.
Comment 1 Howard Chu 2009-06-23 00:05:29 UTC
moved from Incoming to Software Enhancements
Comment 2 ando@openldap.org 2010-04-18 20:17:33 UTC
> Full_Name: Quanah Gibson-Mount
> Version: 2.4.16
> OS: NA
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (75.111.29.239)
>
>
> The slapmodify function already exists, but we've never built a tool
> around it.
> It would be useful to be able to have a utility that validates commands
> that
> users can use to modify cn=config while slapd is offline, rather than
> resorting
> to text editors that don't do validation of the changes being made.

What about this?

<ftp://ftp.openldap.org/incoming/slapmodify>

;)  p.

Comment 3 Quanah Gibson-Mount 2010-04-19 22:13:56 UTC
--On Sunday, April 18, 2010 10:17 PM +0200 masarati@aero.polimi.it wrote:

>> Full_Name: Quanah Gibson-Mount
>> Version: 2.4.16
>> OS: NA
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (75.111.29.239)
>>
>>
>> The slapmodify function already exists, but we've never built a tool
>> around it.
>> It would be useful to be able to have a utility that validates commands
>> that
>> users can use to modify cn=config while slapd is offline, rather than
>> resorting
>> to text editors that don't do validation of the changes being made.
>
> What about this?
>
> <ftp://ftp.openldap.org/incoming/slapmodify>

Very cute, but it fails the second portion of the requirement, which is 
command validation. ;)

--Quanah


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 4 ando@openldap.org 2010-04-20 04:02:36 UTC
> Very cute, but it fails the second portion of the requirement, which is
> command validation. ;)

Here's a poor man's implementation.  It *should* work for add & modify;
don't quite know how to delete entries; this also implies renaming. 
probably, this would need be_tool_rename & be_tool_delete hooks.  Cannot
compete in efficiency with slapadd; uses newly added ldifutil stuff
(ITS#6194).  Please test.

p.

Comment 5 Quanah Gibson-Mount 2010-04-20 22:10:49 UTC
--On Tuesday, April 20, 2010 4:03 AM +0000 masarati@aero.polimi.it wrote:

>
>> Very cute, but it fails the second portion of the requirement, which is
>> command validation. ;)
>
> Here's a poor man's implementation.  It *should* work for add & modify;
> don't quite know how to delete entries; this also implies renaming.
> probably, this would need be_tool_rename & be_tool_delete hooks.  Cannot
> compete in efficiency with slapadd; uses newly added ldifutil stuff
> (ITS#6194).  Please test.

Cool, thanks!  I'll give it a spin :)

I believe delete support was added to back-ldif in HEAD, but I'm not sure 
how it works either.

--Quanah



--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 6 ando@openldap.org 2010-04-21 18:52:13 UTC
changed notes
changed state Open to Test
moved from Software Enhancements to Development
Comment 7 OpenLDAP project 2014-08-01 21:05:02 UTC
added to HEAD
review contextCSN behavior
no man page