]> git.sur5r.net Git - openldap/commitdiff
Quick and dirty hack to add password modify replication.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 14 Jul 2001 01:26:02 +0000 (01:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 14 Jul 2001 01:26:02 +0000 (01:26 +0000)
servers/slapd/back-ldbm/passwd.c
servers/slapd/repl.c
servers/slapd/tools/mimic.c

index 9165831bad315da8fe25e21fc5c8d159da420d03..c4f81e7c806fe9f1c2ac3da7811f952b7e6c8a64 100644 (file)
@@ -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:
index 443fe81d932f6565172d24fcdadc6970ff4cd245..dc85c33a572faa0dca5f9e2c61af965ea869c739 100644 (file)
@@ -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;
index b5d67cf9707c0cb340ab3dc6733ab118fa244e3b..55ea31cb56584eebfbce8b76695a8dadc87e0bc5 100644 (file)
@@ -163,3 +163,8 @@ void connection2anonymous( Connection *c )
        assert(0);
 }
 
+void replog( Backend *be, Operation *op, char *dn, void *change)
+{
+       assert(0);
+}
+