> What I'm trying to do is enable the lastbind module in a centos7 server, so I applied this patch to the rpmbuild process:

the patch needs add "-DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC" to the options list.