Commit ca43453b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Quick and dirty hack to add password modify replication.

parent a453d7ea
......@@ -149,12 +149,14 @@ ldbm_back_exop_passwd(
*text = "entry modify failed";
goto done;
}
}
/* change the entry itself */
if( id2entry_add( be, e ) != 0 ) {
*text = "entry update failed";
rc = LDAP_OTHER;
/* change the entry itself */
if( id2entry_add( be, e ) != 0 ) {
*text = "entry update failed";
rc = LDAP_OTHER;
}
replog( be, op, e->e_dn, &ml );
}
done:
......
......@@ -54,6 +54,11 @@ replog(
fprintf( fp, "dn: %s\n", dn );
switch ( op->o_tag ) {
case LDAP_REQ_EXTENDED:
/* quick hack for extended operations */
/* assume change parameter is a Modfications* */
/* fall thru */
case LDAP_REQ_MODIFY:
fprintf( fp, "changetype: modify\n" );
ml = change;
......
......@@ -163,3 +163,8 @@ void connection2anonymous( Connection *c )
assert(0);
}
void replog( Backend *be, Operation *op, char *dn, void *change)
{
assert(0);
}
Supports Markdown
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