heimdal: Add parameter to windc_plugin to allow extended return codes.
authorAndrew Kroeger <andrew@sprocks.gotdns.com>
Thu, 13 Mar 2008 04:11:48 +0000 (23:11 -0500)
committerAndrew Kroeger <andrew@sprocks.gotdns.com>
Thu, 13 Mar 2008 06:16:49 +0000 (01:16 -0500)
commita550317253966c6feded683a859f8c50f298be74
treec82768f7b67c17c8570ab201a39e731f09e38f3e
parent44628c43eefa48a700293fe25b9a65ec76f1c1b2
heimdal: Add parameter to windc_plugin to allow extended return codes.

These changes add a krb5_data parameter named e_data to the windc_plugin to
allow the samba KDC to return extended error information in addition to the
standard KRB5KDC_ERR_* codes.  Windows uses the extended information to provide
detailed information in user dialogs (e.g. account disabled, logon hours
restriction, must change password, etc.).

This particular commit modifies only heimdal code.  Hopefully this can be
submitted and accepted into the upstream heimdal codebase.
(This used to be commit f542362be25e7182a0836de7a0163f6b9fce9408)
source4/heimdal/kdc/kdc-private.h
source4/heimdal/kdc/kerberos5.c
source4/heimdal/kdc/windc.c
source4/heimdal/kdc/windc_plugin.h