r24986: LDB has a function for comparing things that must meet the rules of
authorAndrew Bartlett <abartlet@samba.org>
Fri, 7 Sep 2007 07:29:25 +0000 (07:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:05:23 +0000 (15:05 -0500)
attribute names.

Andrew Bartlett
(This used to be commit 46e387580622bd6d5d621399e08c5d5003c91bbf)

source4/dsdb/samdb/samdb.c

index 9454daceee168b14810d8a22977bf5e4d4ed56fb..fdc78e3cad23576d7ed0af0b28f9d9f546f7a912 100644 (file)
@@ -645,7 +645,7 @@ struct ldb_message_element *samdb_find_attribute(struct ldb_context *ldb,
        }
 
        for (i=0;i<el->num_values;i++) {
-               if (strcasecmp(value, (char *)el->values[i].data) == 0) {
+               if (ldb_attr_cmp(value, (char *)el->values[i].data) == 0) {
                        return el;
                }
        }