Skip to content

dsconfig should have option to add base entry when creating new backend or new baseDN #478

Description

@kranskydog

the setup program has the option to add the entry for the baseDN when doing an initial configuration

[root@ldap21 opendj]# ./setup --help
Usage: setup {options}

This utility can be used to setup the Directory Server

Command options:

-a, --addBaseEntry
Indicates whether to create the base entry in the Directory Server database

Similarly, control_panel has the option to Create Base Entry

Image

However, there does not seem to be the same option when creating a backend or adding a baseDN with dsconfig, which means the entry for the baseDN must be added separately via an ldif

It would be good to have the same --addBaseEntry option in dsconfig that is found in setup

Activity

  1. changed the title [-]dsconfig should have option to add base entry when creating new backend[/-] [+]dsconfig should have option to add base entry when creating new backend or new baseDN[/+] on Feb 6, 2025
  2. vharseko commented on Feb 6, 2025

    @vharseko
    Member

    addBaseEntry = Only create the base entry (without import)

  3. kranskydog commented on Feb 6, 2025

    @kranskydog
    Author
  4. kranskydog commented on Feb 6, 2025

    @kranskydog
    Author

    Basically, with dsconfig, the only option I have is the "Leave Database Empty" option

  5. kranskydog commented on Feb 6, 2025

    @kranskydog
    Author

    [root@ldap21 ~]# /opt/opendj/bin/dsconfig create-backend -h localhost -p 4444 --bindDN "cn=Directory Manager" --bindPassword ******** --backend-name=userRoot --type jdbc --set base-dn:dc=example,dc=com --set 'db-directory:jdbc:oracle:thin:opendj/********@//orcl23xe.example.com/FREEPDB1' --set enabled:true --no-prompt --trustAll --addBaseEntry
    An error occurred while parsing the command-line arguments: The provided
    argument --addBaseEntry is not a valid global argument identifier

    See "dsconfig --help" to get more usage help

  6. vharseko commented on Feb 7, 2025

    @vharseko
    Member

    create-backend don't have addBaseEntry option

    --set base-dn:dc=example,dc=com

    base-dn

    Description
    Specifies the base DN(s) for the data that the backend handles. A single backend may be responsible for one or more base DNs. Note that no two backends may have the same base DN although one backend may have a base DN that is below a base DN provided by another backend (similar to the use of sub-suffixes in the Sun Java System Directory Server). If any of the base DNs is subordinate to a base DN for another backend, then all base DNs for that backend must be subordinate to that same base DN.

    Default Value None
    Allowed Values A valid DN.
    Multi-valued Yes
    Required Yes

    dsconfig create-backend

  7. locked and limited conversation to collaborators on Feb 7, 2025
  8. converted this issue into a discussion #481 on Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions