diff options
author | Simo Sorce <ssorce@redhat.com> | 2011-06-02 11:59:51 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2011-08-26 08:24:49 -0400 |
commit | 5746bbe92a82946a6fa8d8db2be54e075564535d (patch) | |
tree | 501a267667551ceaeff56eed36082620f33e4435 | |
parent | d1cc660db27a4b5184dd51f0a650709ee0047859 (diff) | |
download | freeipa-5746bbe92a82946a6fa8d8db2be54e075564535d.tar.gz freeipa-5746bbe92a82946a6fa8d8db2be54e075564535d.tar.xz freeipa-5746bbe92a82946a6fa8d8db2be54e075564535d.zip |
ipa-pwd-extop: do not append mkvno to krbExtraData
mkvno is actually available as part of the key material.
There is no need to store it in the krbExtraData field as it is unused there.
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c index dc295fc7e..9e292b22e 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c @@ -1410,9 +1410,8 @@ int ipapwd_set_extradata(const char *dn, time_t unixtime) { Slapi_Mods *smods; - Slapi_Value *va[3] = { NULL }; + Slapi_Value *va[2] = { NULL }; struct berval bv; - char mkvno[4] = { 0x00, 0x08, 0x01, 0x00 }; char *xdata; int xd_len; int p_len; @@ -1427,11 +1426,6 @@ int ipapwd_set_extradata(const char *dn, smods = slapi_mods_new(); - /* always append a master key kvno of 1 for now */ - bv.bv_val = mkvno; - bv.bv_len = 4; - va[0] = slapi_value_new_berval(&bv); - /* data type id */ xdata[0] = 0x00; xdata[1] = 0x02; @@ -1449,13 +1443,12 @@ int ipapwd_set_extradata(const char *dn, bv.bv_val = xdata; bv.bv_len = xd_len; - va[1] = slapi_value_new_berval(&bv); + va[0] = slapi_value_new_berval(&bv); slapi_mods_add_mod_values(smods, LDAP_MOD_REPLACE, "krbExtraData", va); ret = ipapwd_apply_mods(dn, smods); - slapi_value_free(&va[1]); slapi_value_free(&va[0]); slapi_mods_free(&smods); |