7f072e3 ipa-kdb: Rework ipadb_reinit_mspac()

7 files Authored by jrische 2 months ago, Committed by frenaud 2 months ago,
    ipa-kdb: Rework ipadb_reinit_mspac()
    
    Modify ipadb_reinit_mspac() to allocate and initialize ipactx->mspac
    only if all its attributes can be set. If not, ipactx->mspac is set to
    NULL. This makes easier to determine if the KDC is able to generate PACs
    or not.
    
    Also ipadb_reinit_mspac() is now able to return a status message
    explaining why initialization of the PAC generator failed. This message
    is printed in KDC logs.
    
    Fixes: https://pagure.io/freeipa/issue/9535
    
    Signed-off-by: Julien Rische <jrische@redhat.com>
    Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
    
        
file modified
+4 -10
file modified
+3 -1
file modified
+189 -151