#4881 [RFE] Simplify adding user-specific attributes
Opened 9 years ago by pspacek. Modified 7 years ago

The raw idea is:

  • Provide a CLI/Web UI to define a new attribute (and possibly mark this attribute with X-USER-ADDED mark)
  • Provide a command to define auxiliary object class made from user-added attributes
  • Mark the new object class with some marker like X-USER-ADDED or something else (it maybe not necessary)

Then:

  • User can add the auxiliary object class to default list of object classes for existing object
  • WebUI will auto-generate additional editor fields for attributes in these
  • The auxiliary will be added on modification if user specified non-empty value for at least one new attribute
  • CLI commands can handle new attributes with --setattr options

Other problems - maybe phase 2 material:

  • Indexes (can be deferred)

I envision the following command:

ipa <obj> add-schema --schema <file>

Obj can be "user", "group" etc. We can start with just user.

The file will have an object class and attribute definition.
The utility will:
- Check that schema is correct
- Make sure it does not have mandatory attributes
- Load this object class into the schema
- Add object class to the list of object class definitions for the object (currently we have one just for the user entry)

The UI will read this definition and offer the new attribute in the UI during modify operation.

In future we might also add something like:

ipa <obj> schema-suspend <objectclass>

that would remove the object class from the list of definitions so that it is not offered any more for addition/modification in UI.

Metadata Update from @pspacek:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.5 backlog

7 years ago

Login to comment on this ticket.

Metadata