kpasswd: don't log "Changing password for %s" when setting password
Fix a regression introduced in c89d3f3b
where administrative password changes
would be logged as user password changes, if enforce_on_admin_set was set.
This commit is contained in:
@@ -379,6 +379,8 @@ change (krb5_auth_context auth_context,
|
||||
goto out;
|
||||
}
|
||||
krb5_warnx (context, "%s is changing password for %s", admin, client);
|
||||
} else {
|
||||
krb5_warnx (context, "Changing password for %s", client);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -402,7 +404,6 @@ change (krb5_auth_context auth_context,
|
||||
KRB5_KPASSWD_SOFTERROR, pwd_reason);
|
||||
goto out;
|
||||
}
|
||||
krb5_warnx (context, "Changing password for %s", client);
|
||||
}
|
||||
|
||||
ret = krb5_data_realloc(pwd_data, pwd_data->length + 1);
|
||||
|
Reference in New Issue
Block a user