Adding a krb5_get_change_password_message() function?

Stef Walter stefw at gnome.org
Tue May 8 09:00:07 EDT 2012


On 04/25/2012 06:23 PM, Greg Hudson wrote:
> On 04/25/2012 07:43 AM, Stef Walter wrote:
>> I was wondering if we want to add a krb5_get_change_password_message()
>> which changes the result_string returned from krb5_change_password()
>> into a displayable message explaining to the user more info about the
>> password rejection and policy requirements?

...

> So, I'm not wild about the idea, but it seems reasonable enough, and I
> don't have a better alternative.  If you implement this, please include
> test cases (just a C program to feed some krb5_data values to the API
> and verify the results) and choose a shorter name for the API, like
> krb5_chpw_message() (similar to krb5_chpw_result_code_string()).

Attached is a patch which implements this. Is this what you had in mind?

Cheers,

Stef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Produce-readable-messages-from-active-directory-pass.patch
Type: text/x-patch
Size: 36620 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/krbdev/attachments/20120508/2310349a/attachment-0001.bin


More information about the krbdev mailing list