mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Don't try to set Kerberos extradata when there is no principal
This was causing ns-slapd to segfault in the password plugin. https://pagure.io/freeipa/issue/7561 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
committed by
Christian Heimes
parent
8e165480ac
commit
45d776a7bf
@@ -595,6 +595,7 @@ parse_req_done:
|
|||||||
} else {
|
} else {
|
||||||
principal = slapi_ch_smprintf("root/admin@%s", krbcfg->realm);
|
principal = slapi_ch_smprintf("root/admin@%s", krbcfg->realm);
|
||||||
}
|
}
|
||||||
|
if (principal)
|
||||||
ipapwd_set_extradata(pwdata.dn, principal, pwdata.timeNow);
|
ipapwd_set_extradata(pwdata.dn, principal, pwdata.timeNow);
|
||||||
|
|
||||||
/* Free anything that we allocated above */
|
/* Free anything that we allocated above */
|
||||||
|
|||||||
Reference in New Issue
Block a user