Skip to content

Commit

Permalink
ipa-pwd-extop: declare operation notes support from 389-ds locally
Browse files Browse the repository at this point in the history
The function slapi_pblock_set_flag_operation_notes(); is defined in
ldap/servers/slapd/pblock.c in 389-ds but is only available through
slapi-private.h header, not through slapi-plugin.h public API.

It was introduced in ~1.4.1.7 (~2019) via https://pagure.io/389-ds-base/issue/50349.

Since we only use it with an MFA note, all versions of the 389-ds that
will support MFA note will have this function.

Fixes: https://pagure.io/freeipa/issue/9554

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
  • Loading branch information
abbra authored and flo-renaud committed Mar 14, 2024
1 parent 23b224d commit e431ce0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,11 @@ static void ipapwd_write_krb_keys(Slapi_PBlock *pb, char *dn,
}


#ifdef USE_OP_NOTE_MFA_AUTH
/* defined in ldap/servers/slapd/pblock.c in 389-ds but not exposed via slapi-plugin.h */
extern void slapi_pblock_set_flag_operation_notes(Slapi_PBlock *pb, uint32_t opflag);
#endif

/* PRE BIND Operation
*
* Used for:
Expand Down

0 comments on commit e431ce0

Please sign in to comment.