mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -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:
parent
8e165480ac
commit
45d776a7bf
@ -595,7 +595,8 @@ parse_req_done:
|
||||
} else {
|
||||
principal = slapi_ch_smprintf("root/admin@%s", krbcfg->realm);
|
||||
}
|
||||
ipapwd_set_extradata(pwdata.dn, principal, pwdata.timeNow);
|
||||
if (principal)
|
||||
ipapwd_set_extradata(pwdata.dn, principal, pwdata.timeNow);
|
||||
|
||||
/* Free anything that we allocated above */
|
||||
free_and_return:
|
||||
|
Loading…
Reference in New Issue
Block a user