Commit 4dafbe5c authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#5575

parent e06f2efd
......@@ -10,6 +10,7 @@ OpenLDAP 2.4.11 Engineering
Fixed slapo-ppolicy DNs with whitespaces (ITS#5552)
Fixed slapo-syncprov ACL evaluation (ITS#5548)
Fixed slapo-syncprov full reload (ITS#5564)
Fixed contrib smbk5pwd terminator (ITS#5575)
Build Environment
Fixed test048 to skip if threads is not available (ITS#5529)
Documentation
......
......@@ -350,6 +350,7 @@ static int smbk5pwd_exop_passwd(
Modifications *ml;
slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
smbk5pwd_t *pi = on->on_bi.bi_private;
char term;
/* Not the operation we expected, pass it on... */
if ( ber_bvcmp( &slap_EXOP_MODIFY_PASSWD, &op->ore_reqoid ) ) {
......@@ -360,6 +361,9 @@ static int smbk5pwd_exop_passwd(
rc = be_entry_get_rw( op, &op->o_req_ndn, NULL, NULL, 0, &e );
if ( rc != LDAP_SUCCESS ) return rc;
term = qpw->rs_new.bv_val[qpw->rs_new.bv_len];
qpw->rs_new.bv_val[qpw->rs_new.bv_len] = '\0';
#ifdef DO_KRB5
/* Kerberos stuff */
do {
......@@ -596,6 +600,7 @@ static int smbk5pwd_exop_passwd(
}
#endif /* DO_SAMBA */
be_entry_release_r( op, e );
qpw->rs_new.bv_val[qpw->rs_new.bv_len] = term;
return SLAP_CB_CONTINUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment