#3859 [RFE] Allow ipa-getkeytab to optionally fetch existing keys
Closed: Fixed None Opened 8 years ago by simo.

With the right credentials (ie not by default) it would be useful to allow ipa-getkeytab to simply fetch existing crdentials instead of always generating new ones. This would help in restore situations or in clusters where multiple machines need exactly the same key.
Probably only privileged admins should be allowed to do this.


3.4 development was shifted for one month, moving tickets to reflect reality better.

In order to authorize the operation we'll need to add some metadata and ACIs to the system.
The current approach will test adding a new AUXILIARY objectlass that specifies a couple of attributes to list permitted DNs (users or groups) and a special attribute that represents the operation to authorize but is not necessarily stored in the entry, it is needed only to perform checks in a flexible way in the plugin.

This objectclass will be used to create a special SUFFIX level ACI in the cn=accounts container that will look like this (split on multiple lines for readability):

(targetattr=protectedOperation;getKeytab)
(version 3.0;
 acl "allowed retrieval of keytabs";
 allow (read)
 userattr = "allowedToPerform;getKeytab#GROUPDN";)

We may need to duplicate it with the USERDN specifier too.

The allowedToPerform attribute is multivalued and the sytntax support DNs, the protectedOperation attribute is a string. The subtype is used to allow one objectclass to cover multiple operations, in this case we identify 'getKeytab" as the operation to protect.

Adjusting time plan - 3.4 development was postponed as we focused on 3.3.x testing and stabilization.

Adjusting time plan - 3.4 development was postponed as we focused on 3.3.x testing and stabilization.

This ticket is not complete yet, moving to next month milestone.

master:

  • d04746c keytabs: Modularize setkeytab operation
  • 88bcf58 keytabs: Expose and modify key encoding function
  • 5c0e7a5 keytab: Add new extended operation to get a keytab.
  • 153a009 ipa-getkeytab: Modularize ldap_set_keytab function
  • f352702 ipa-getkeytab: Add support for get_keytab extop
  • 6b92fb2 man: Add -r option to ipa-getkeytab.1

Folow up ticket to add CLI/UI for the authorization part: #4419.

Metadata Update from @simo:
- Issue assigned to simo
- Issue set to the milestone: FreeIPA 4.0 - 2014/06

4 years ago

Login to comment on this ticket.

Metadata