Skip to content
Snippets Groups Projects
Commit a79b0ed5 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#9000 memberof: noop a noop rename

parent 9c82e498
No related branches found
No related tags found
No related merge requests found
......@@ -364,6 +364,12 @@ memberof_value_modify(
struct berval values[ 4 ], nvalues[ 4 ];
int mcnt = 0;
if ( old_ndn != NULL && new_ndn != NULL &&
ber_bvcmp( old_ndn, new_ndn ) == 0 ) {
/* DNs compare equal, it's a noop */
return;
}
op2.o_tag = LDAP_REQ_MODIFY;
op2.o_req_dn = *ndn;
......
......@@ -262,6 +262,11 @@ $LDAPMODIFY -h $LOCALHOST -p $PORT1 \
>> $TESTOUT 2>&1 << EOF
dn: cn=Cartoonia,ou=Groups,$BASEDN
changetype: modrdn
newrdn: cn=Toon town
deleteoldrdn: 1
dn: cn=Toon town,ou=Groups,$BASEDN
changetype: modrdn
newrdn: cn=Toon Town
deleteoldrdn: 1
EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment