]> git.sur5r.net Git - openldap/commitdiff
More for ITS#6970
authorHoward Chu <hyc@openldap.org>
Wed, 25 Feb 2015 00:30:36 +0000 (00:30 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 25 Feb 2015 00:30:36 +0000 (00:30 +0000)
modrdn had the same bug

contrib/slapd-modules/autogroup/autogroup.c

index 3186e1de973ba18734d440dc1e8b31af7f208417..98155e1a7514a3e9240c2d93f1aa242e549097f2 100644 (file)
@@ -1170,6 +1170,10 @@ autogroup_response( Operation *op, SlapReply *rs )
                                                autogroup_delete_member_from_group( op, &op->o_req_dn, &op->o_req_ndn, age );
                                } else
                                if ( is_olddn == 0 && is_newdn == 1 ) {
+                                       Entry etmp;
+                                       etmp.e_name = op->o_req_dn;
+                                       etmp.e_nname = op->o_req_ndn;
+                                       etmp.e_attrs = attrs;
                                        for ( agf = age->age_filter; agf; agf = agf->agf_next ) {
                                                if ( test_filter( op, e, agf->agf_filter ) == LDAP_COMPARE_TRUE ) {
                                                        if ( ea ) {