Remove get_default_username()

This commit is contained in:
Nicolas Williams
2017-10-12 22:52:17 -05:00
committed by Nico Williams
parent 620862049e
commit 3f1451a4c3
7 changed files with 4 additions and 91 deletions

View File

@@ -368,10 +368,10 @@ _kadm5_c_get_cred_cache(krb5_context context,
* No client was specified by the caller and we cannot
* determine the client from a credentials cache.
*/
char userbuf[128];
const char *user;
user = get_default_username ();
user = roken_get_username(userbuf, sizeof(userbuf));
if(user == NULL) {
krb5_set_error_message(context, KADM5_FAILURE, "Unable to find local user name");
return KADM5_FAILURE;