[Freeipa-devel] [PATCH] Certificate management for services.

Endi Sukma Dewata edewata at redhat.com
Sat Oct 9 04:23:44 UTC 2010


Hi,

Please review the attached patch. Thanks!

This is an initial implementation of certificate management for
services. It addresses the mechanism required to view and update
certificates. The complete UI implementation will be addressed in
subsequent patches.

On the server side, the service.py has been modified to define
usercertificate in the service object's takes_params. This is
needed to generate the proper JSON metadata which is needed by
the UI. It also has been modified to accept null certificate for
deletion.

On the client side, the service details page has been modified to
display the base64-encoded certificate in a text area. When the
page is saved, the action handler will store the base64-encoded
certificate in the proper JSON structure. Also the service name
and service hostname are now displayed in separate fields.

The details configuration has been modified to support displaying
and updating certificates. The structure is changed to use maps
to define sections and fields. A section contains name, label,
and an array of fields. A field contains name, label, setup
function, load function, and save function. This is used to
implement custom interface and behavior for certificates.

All other entities, test cases, and test data have been updated
accordingly. Some functions and variables have been renamed to
improve clarity and consistency.

--
Endi S. Dewata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: edewata-freeipa-0019-Certificate-management-for-services.patch
Type: text/x-patch
Size: 54614 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101009/1cde84d2/attachment.bin>


More information about the Freeipa-devel mailing list