ace0bbf ipa-kdb: refactor KDB driver to prepare for KDB version 9

8 files Authored by abbra 2 years ago, Committed by frenaud 2 years ago,
    ipa-kdb: refactor KDB driver to prepare for KDB version 9
    
    MIT Kerberos 1.20 changes DAL interface around PAC record issuance:
    sign_authdata callback is removed and replaced with issue_pac one.
    The signatures are different and logic changed as well.
    
    Prepare for KDB version 9 by moving PAC implementation into separate
    source files. ipa_kdb_mspac.c is left with most of the common code.
    
    FreeIPA supports sign_authdata callback since KDB version 6, move current
    implementation to ipa_kdb_mspac_v6.c.
    
    KDB version 8 actually changed sign_authdata interface and we accounted
    to that in ipa_kdb.c with a stub that re-uses v6 version. Keep it as it
    is right now.
    
    Finally, add KDB version 9 stub files. Compiling against MIT Kerberos
    1.20 does not work yet, thus explicit #error message in ipa_kdb.c. This
    will be worked on later.
    
    Related: https://pagure.io/freeipa/issue/9083
    
    Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    
        
file modified
+3 -0
file modified
+7 -1
file modified
+40 -1
file modified
+18 -297
file modified
+9 -0