#1453 service principal required field but hidden
Closed: Fixed None Opened 12 years ago by admiyo.

The add service dialog does not tag the principal field as required, since it is actually built out of two fields that are not submitted. The required field is a hidden field.

A better approach would be to create a custom widget that composes the value for the principal, and have the entire widget get flagged as 'required'.


Another option is to mark the 'service type' and 'host name' fields as required (in the widget). The krbprincipalname can remain required (in the metadata) and hidden. That way if any of these fields is empty the error message will appear at the correct field. If both 'service type' and 'host name' are provided, the krbprincipalname will be constructed from these values, so it will pass validation.

This is basically the same as #1818 which is fixed in the patch for #1394.

Metadata Update from @admiyo:
- Issue assigned to edewata
- Issue set to the milestone: FreeIPA 2.1.2 (bug fixing)

7 years ago

Login to comment on this ticket.

Metadata