[krbdev.mit.edu #8882] When doing a kdb5_util load with ldap backend the password expiration date is not loading

"Machin, Glenn D via RT" <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.bugs
Message-ID <[email protected]>
Thu Mar 05 13:51:57 2020: Request 8882 was acted upon.
 Transaction: Ticket created by [email protected]
       Queue: krb5
     Subject: When doing a kdb5_util load with ldap backend the password expiration date is not loading
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=8882 >


Identified the problem to be not setting KADM5_PW_EXPIRATION in the db entry mask.



krb5-1.17/src/kadmin/dbutil/dump.c



process_k5beta7_princ()



Add KADM5_PW_EXPIRATION to mask:



Change:

dbentry->mask = KADM5_LOAD | KADM5_PRINCIPAL | KADM5_ATTRIBUTES |

        KADM5_MAX_LIFE | KADM5_MAX_RLIFE |

        KADM5_PRINC_EXPIRE_TIME | KADM5_LAST_SUCCESS |

        KADM5_LAST_FAILED | KADM5_FAIL_AUTH_COUNT;



To:



dbentry->mask = KADM5_LOAD | KADM5_PRINCIPAL | KADM5_ATTRIBUTES |

        KADM5_MAX_LIFE | KADM5_MAX_RLIFE |

        KADM5_PRINC_EXPIRE_TIME | KADM5_LAST_SUCCESS |

        KADM5_LAST_FAILED | KADM5_FAIL_AUTH_COUNT | KADM5_PW_EXPIRATION;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.