mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
Quick and dirty hack to add password modify replication.
This commit is contained in:
parent
a453d7eacf
commit
ca43453b95
3 changed files with 17 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue