Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #1754
Something went wrong while setting issue due date.
Closed
Open
Issue created 12 years ago by bmortier@bmortierMaintainer
  • New related issue

  • New related issue

tools for upgrading schema

Closed

tools for upgrading schema

actually its( a pin to upgrade schema because Fd is too alive ! ;-)

what about adopting the following philosophy : 1/ freezing actual schema 2/ store in FD ( or in flat file) the version of installed schema 3/ when modifying a schema, the ldif file corresponding to diff of schema MUST be generated 4/ when install new version , apply a perl script or a trigger in debian package for update schema

In the same time content of ldap tree could be updated ( change name of attribute eg.) It could be done by a generated perl script based on previous ldfi diff file or trough fusiondirectory-setup

IMHO, this problematic MUST be resolved for none LDAP expert like me

(from redmine: issue id 1754, created on 2013-01-16, closed on 2014-09-03)

  • Changesets:
    • Revision da256afa by Benoit MORTIER on 2013-04-05T15:44:59.000Z:
Fixes: #1754 tools for upgrading schema
  • Custom Fields:
    • Bug in version: 1.0.5
  • Uploads:
    • patch-update-schema.diff
    • update-schema.sh

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    0

    Link issues together to show that they're related. Learn more.

    Activity


    • bmortier
      bmortier @bmortier · 12 years ago
      Author Maintainer

      hello

      update schema is equivalent to drop all attribute and object and re import it.

      the ldif action "replace" could be used for this. in addition, update a schem meean: 1/ find the order number of schema to modified

      ORDER_NUMBER=ldapsearch -Y EXTERNAL -H ldapi:/// -b 'cn=schema,cn=config' cn | grep "{" | grep -r ^# | grep myschema$ | awk -F "{|}" '{print $2}'

      2/ run fusiondirectory-schema2ldif with -n and -b option fusiondirectory-schema2ldif -r -n $ORDER_NUMBER -b cn=schema,cn=config /etc/ldap/schema/fusiondirectory/myschema.schema > update-myschema.ldif

      3/ update schema ldapmodify -Y EXTERNAL -H ldapi:/// -f update-myschema.ldif

      see my diff for fusiondirectory-schema2ldif

      (from redmine: written on 2013-03-23)

      By agallavardin on 2017-09-02T14:54:00 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 12 years ago
      Author Maintainer

      Hello,

      i have patched fusiondirectory-schema2ldif with your patch, and updated the man page, can you write a little script based on you explanation that i can put into the manpage for explanation of -r -n

      Cheers

      (from redmine: written on 2013-04-05)

      By bmortier on 2017-09-02T14:54:00 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 12 years ago
      Author Maintainer

      doen you'll find as attachement

      (from redmine: written on 2013-04-10)

      By agallavardin on 2017-09-02T14:54:00 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 12 years ago
      Author Maintainer

      Hello,

      finally we started a complete new project for converting schema to ldif its called https://forge.fusiondirectory.org/projects/schema2ldif

      So we have removed the old fusiondirectory-schema2ldif.

      we need to write a better tool for creating diff of schema to be inserted into a cn backend based on a ldif

      Cheers

      (from redmine: written on 2013-04-22)

      By bmortier on 2017-09-02T14:54:00 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 10 years ago
      Author Maintainer

      This is now handled by fusiondirectory-insert-schema -m option

      Close issue

      (from redmine: written on 2014-09-03)

      By Côme Chilliet on 2017-09-02T14:54:01 (imported from GitLab)

    • bmortier closed 7 years ago

      closed

      By Côme Chilliet on 2017-09-02T14:54:01 (imported from GitLab)

    • bmortier added fusiondirectory-insert-schema label 6 years ago

      added fusiondirectory-insert-schema label

      By bmortier on 2018-10-15T13:35:19 (imported from GitLab)

    • bmortier added Added label 6 years ago

      added Added label

      By bmortier on 2018-10-15T13:35:21 (imported from GitLab)

    Please register or sign in to reply
    0 Assignees
    None
    Assign to
    Labels
    0
    None
    0
    None
      Assign labels
    • Manage project labels

    Milestone
    No milestone
    None
    Due date
    None
    None
    None
    Time tracking
    No estimate or time spent
    Confidentiality
    Not confidential
    Not confidential

    You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

    Lock issue
    Unlocked
    1
    1 Participant
    bmortier
    Reference:

    Menu

    Explore Projects Groups Topics Snippets