浏览代码

164017 - Attribute uniqueness plugin now only checks for conflicts in subtrees that the operation applies to

Nathan Kinder 20 年之前
父节点
当前提交
a6e1e9a065
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      ldap/servers/plugins/uiduniq/uid.c

+ 8 - 2
ldap/servers/plugins/uiduniq/uid.c

@@ -383,8 +383,14 @@ searchAllSubtrees(int argc, char *argv[], const char *attrName,
    */
   for(;argc > 0;argc--,argv++)
   {
-    result = search(*argv, attrName, attr, values, dn);
-        if (result) break;
+    /*
+     * The DN should already be normalized, so we don't have to
+     * worry about that here.
+     */
+    if (slapi_dn_issuffix(dn, *argv)) {
+      result = search(*argv, attrName, attr, values, dn);
+      if (result) break;
+    }
   }
   return result;
 }