[17594] in Kerberos_V5_Development

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

Getting the password in a preauth plugin

daemon@ATHENA.MIT.EDU (Yair Yarom)
Mon Apr 16 09:13:27 2012

From: Yair Yarom <irush@cs.huji.ac.il>
To: krbdev@mit.edu
Date: Mon, 16 Apr 2012 16:13:19 +0300
Message-ID: <x8qaa2bg6q8.fsf@chopin.cs.huji.ac.il>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu


Hi all,

In a preauth plugin, in the client process function, I want to get the
user's password if available. I want the password itself, and if the
user hasn't entered it yet don't prompt for it (I'll call the prompter
later for that purpose). 

Is there a correct way to get it? My current solution is to check if
((krb5_data**)rock->gak_data)[0] is not empty, but this doesn't seem the
right way.


Thanks,
    Yair.
_______________________________________________
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