[Klone-users] KLone version 2.1.0 released

thomas fossati tho at koanlogic.com
Wed Apr 30 03:02:39 EDT 2008


Hi Radek, just a few thoughts ...

On Apr 29, 2008, at 1:34 PM, Radek wrote:
>> mmm a bit too late to put it into the release, but we can park it  
>> in wiki
>> for the moment.  If you are going to work on integrating u_pwd into  
>> your
>> app, we could perhaps update the "Login with KLone" page, no ?
>
> I need to rewrite my app to use this.  Its not so straight, I use some
> time limited passwords.  But I have an image in my head.

if you need to add some "policy" to your master password file you can  
use the .opaque field of an u_pwd_rec_t, pushing the intended  
semantics (i.e. time limits, usage counter, bad logins counter, etc.)  
into it:

=-=-=-=-=-=-=-=-=-=-=-=
user:db33f30c28364cd44195ed6105b82c29:my_policy_attrs
=-=-=-=-=-=-=-=-=-=-=-=

then in the code:

{
	...
	dbg_err_if (u_pwd_retr(pwd, user, &user_rec));
	user_policy_attr = u_pwd_rec_get_opaque(user_rec);
	if (check_my_policy(user_policy_attr))
		...
}

ciao, t.





More information about the klone-users mailing list