kadm5_hook rename
John Hascall
john at iastate.edu
Sun May 3 11:41:29 EDT 2015
Well, as long as I'm complaining about omissions in the kadm5_hook
interface,
here's another one
*(looks like my dream of getting rid of a local mod is nowjust swapping a
local mod for a slightly less obnoxious local mod)*.
ret = k5_kadm5_hook_chpass(handle->context, handle->hook_handles,
*handle->current_caller*,
KADM5_HOOK_STAGE_PRECOMMIT,
principal, keepold,
new_n_ks_tuple, new_ks_tuple, NULL);
Because we do bi-directional password sync (MIT KDC <--> WinAD KDC),
we need a way to prevent an endless loop of the same password change going
around and around forever. I'm open to better suggestions, but what we've
used thus far is to look at which principal (handle->current_caller) is
making the
update and if it is the ADsyncer, then the MIT side doesn't send the update
back.
John
On Sat, May 2, 2015 at 10:44 PM, John Hascall <john at iastate.edu> wrote:
> I wasn't exactly sure how you intended the major/minor version numbering
> business to work, but here's a set of patches (based off of 1.13.1) which
> add a rename function to a version 2 of kadm5_hook_vftable:
>
> kadm5_ret_t (*rename)(krb5_context ctx,
> kadm5_hook_modinfo *modinfo,
> int stage,
> krb5_principal source, /* old name */
> krb5_principal target); /* new name */
>
> Are we the only place which makes much use of rename?
>
> John
> ------------------------->8--------- snippy snip
> ---------8<-------------------
> begin 440 kadm5_hook_rename_patches.tgz
> M'XL(`"J6154``^U:ZW/:1A#/U_)7;"<S'5["DD#@X#IC-W433_S(.$Z_:@0Z
> M0$7H-)(@(1G_[]T]22"$>"1V2*:]WR0\Q-W>/NY^>[M)X]GWAZJVU(YAX+M`
> M_EU\UG1#U_1VJZ-VZ'FGTS:>&0?0[=DTC*P`X%G`>;1MW,<18^XA%#HL&D=A
> MT%<<K^].;::, at YZAC"U[8I at CSL>F[TZ'CM<8/6X-55/5=JNU*?Y&$V.=QK_=
> MIGVBM=L='/\T)F['_SS^BJ(`[H"C9`<<T0XX*M@!#1XXPU]T53,455<T#72M
> MJ[6[K69C<89!4=NJ6JK5:GM)3(21/-#T;E/KMHY7A!DH[.P,E+9:;T,-7SMP
> M=E8"J-)?4."5%480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_\2]/\+._M_Z__\P.H:L
> M_PZ!`O[?UOO[:O;?VO?3NTV]VVK+OI_L^TE(2$A(2$A(2$A(2$A(2$A(2$A(
> ?2$A(2$A(2$A(2$A(2$A(2$A(2.R/?P'3]3Z0`%```$A(
> `
> end
>
> On Sat, May 2, 2015 at 9:57 AM, John Hascall <john at iastate.edu> wrote:
>
>>
>> Is there a reason why the kadm5_hook interface does not seem to have any
>> support for a principal "rename" operation?
>>
>> John
>>
>
>
More information about the Kerberos
mailing list