[PATCH] inititialize krb5 error-tables
lha at stacken.kth.se
Tue Jul 20 21:59:00 GMT 2004
Guenther Deschner <gd at SerNet.DE> writes:
>> if you do something like this with heimdal you get mostly more relevant
>> error strings.
> Yeah, I though about that too, but MIT-kerberos-errors can not
> represented this way, right?
> So, if Samba stays with error_message(), it's a must to initialize the
> error-table before each krb5_init_context, is this correct?
If you use add_to_error_table()/error_message(), once for the program is
But I really most say you should use what I proposed since that will give
you error-messages that useful. Like krb5_kt_get_entry will return error
"failed to find host/datan.it.su.se at SU.SE(1) in keytab /etc/krb5.keytab"
instead of just KRB5_KT_NOTFOUND.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 477 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20040720/22867d84/attachment.bin
More information about the samba-technical