mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:kdc: Improve debug message of samba_kdc_fetch_server()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
206909d52b
commit
bd590c0396
@ -2381,7 +2381,21 @@ static krb5_error_code samba_kdc_fetch_server(krb5_context context,
|
|||||||
flags, kvno,
|
flags, kvno,
|
||||||
realm_dn, msg, entry);
|
realm_dn, msg, entry);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
krb5_warnx(context, "samba_kdc_fetch: message2entry failed");
|
char *client_name = NULL;
|
||||||
|
krb5_error_code code;
|
||||||
|
|
||||||
|
code = krb5_unparse_name(context, principal, &client_name);
|
||||||
|
if (code == 0) {
|
||||||
|
krb5_warnx(context,
|
||||||
|
"samba_kdc_fetch: message2entry failed for "
|
||||||
|
"%s",
|
||||||
|
client_name);
|
||||||
|
} else {
|
||||||
|
krb5_warnx(context,
|
||||||
|
"samba_kdc_fetch: message2entry and "
|
||||||
|
"krb5_unparse_name failed");
|
||||||
|
}
|
||||||
|
SAFE_FREE(client_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user