]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix kdb5_ldap_util stashsrvpw password file logic 369/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 16 Dec 2015 17:51:36 +0000 (12:51 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 6 Apr 2016 18:19:24 +0000 (14:19 -0400)
commite2d7a66f48bcf3da846faf39d6433a122ae0be3c
tree01ed3a38b7f4712f6cbcffde400627dbe38b4d3d
parent9a892a37611675d8eaec0a0c1d91fbc300eb1b69
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.

ticket: 8295
src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.h