Fix kdb5_ldap_util stashsrvpw password file logic kdb5_ldap_util stashsrvpw has several inconsistencies with the password file determination in libkdb_ldap, and could try to fopen() a NULL filename in some cases. Factor out the determination of the configured password file and make it consistent with libkdb_ldap. DEF_SERVICE_PASSWD_FILE is no longer used after these changes, as it is not respected by libkdb_ldap. Reported by Will Fiveash. https://github.com/krb5/krb5/commit/e2d7a66f48bcf3da846faf39d6433a122ae0be3c Author: Greg Hudson Commit: e2d7a66f48bcf3da846faf39d6433a122ae0be3c Branch: master .../kdb/ldap/ldap_util/kdb5_ldap_services.c | 74 +++++++++++++------- .../kdb/ldap/ldap_util/kdb5_ldap_services.h | 2 - 2 files changed, 49 insertions(+), 27 deletions(-)