#6409 [RFE] extend ipa-getkeytab to support other LDAP bind methods
Closed: Fixed Opened by mbabinsk.

Currently ipa-getkeytab supports only two bind methods: simple bind using ldaps://$server, or GSSAPI bind to ldap://$server which precludes the use of this command as an universal interface to request service keytabs in various contexts (e.g. installers).

It would be nice if other bind methods, like LDAPI autobind, are supported. For this we propose to extend the utility as follows:

-s, -D, -w options will be kept for backward compatibility

-H <LDAP_URI> option will be added to specify full LDAP uri. By default the URI will be constructed from retrieved server name as is done now. Specifying this options precludes use of -s.

-Y <MECH> to specify SASL bind mechanism (EXTERNAL, GSSAPI, etc.)

Exact options/behavior are of course open to discussion, but this nicely mirrors the interface of openldap client utilities.


moving to 4.5 because it will simplify installer refactoring

master:

  • 294fc3dc5645eeb7942908c3e351c06aa0af329e ipa-getkeytab: expose CA cert path as option
  • 0c68c27e51c2a30265a760382d7d4fab7d21937b extend ipa-getkeytab to support other LDAP bind methods
  • 8480d0e3333f6813439e7b3321a0e33ce80d30f1 Modernize ipa-getkeytab test suite
  • 2725e440bf1e4930f9b1d19223424bcb0d4b7066 Extend keytab retrieval test suite to cover new options

Test fix:

master:

  • 3ecda74d14066f6609d72422041bcc0c6499de77 test_ipagetkeytab: use system-wide IPA CA cert location in tests

Metadata Update from @mbabinsk:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.5

Metadata