[16210] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Pasword quality pluggable interface project review

daemon@ATHENA.MIT.EDU (Russ Allbery)
Mon Aug 30 19:58:46 2010

From: Russ Allbery <rra@stanford.edu>
To: "krbdev\@mit.edu" <krbdev@mit.edu>
In-Reply-To: <1283209974.9882.249.camel@ray> (Greg Hudson's message of "Mon,
	30 Aug 2010 19:12:54 -0400")
Date: Mon, 30 Aug 2010 16:58:39 -0700
Message-ID: <87mxs3k5zk.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

Greg Hudson <ghudson@MIT.EDU> writes:

> * Add a new error code KADM5_PASS_Q_GENERIC.

> * Add the following arguments to the check method:
>   - const char **languages: null-terminated list of client language tags
> or NULL
>   - char **language_out: language chosen by plugin, or NULL (memory
> allocated by module; we can't simply point into languages because fuzzy
> matches are a possibility).
>   - char **errmsg_out: error message from plugin or NULL (memory
> allocated by module).

It would be really lovely if, rather than having to do string composition
myself inside the module, the caller would provide a krb5_context and let
me just call krb5_set_error_message to set the error message from the
plugin.

I realize this doesn't help with localization, but it would make life much
less painful for plugin authors in the current world where localization
doesn't work anyway, and maybe in the long run we could localize
krb5_set_error_message and allow that interface to continue to be used.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post