summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-06-14 03:04:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:08 -0500
commit785b452a042f00b561df55243e8aaee920d84ce6 (patch)
treed3151940fa8cbaf9b3c96e103a0b44577e6f6919 /source4/lib/ldb
parent5ec2c79dc58f340a9635b34400797fa85361c6ba (diff)
downloadsamba-785b452a042f00b561df55243e8aaee920d84ce6.tar.gz
samba-785b452a042f00b561df55243e8aaee920d84ce6.tar.xz
samba-785b452a042f00b561df55243e8aaee920d84ce6.zip
r7561: moved OID constants into ldb.h and used manifest constants in ldb_match.c
(This used to be commit 42cbb155c20779c458f727488c8554842b24681b)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/include/ldb.h6
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_match.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 5773e39fa9e..7a28d05b380 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -72,6 +72,12 @@ struct ldb_val {
/*
+ well known object IDs
+*/
+#define LDB_OID_COMPARATOR_AND "1.2.840.113556.1.4.803"
+#define LDB_OID_COMPARATOR_OR "1.2.840.113556.1.4.804"
+
+/*
results are given back as arrays of ldb_message_element
*/
struct ldb_message_element {
diff --git a/source4/lib/ldb/ldb_tdb/ldb_match.c b/source4/lib/ldb/ldb_tdb/ldb_match.c
index 51b0ab9aa76..4c11542971f 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_match.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_match.c
@@ -333,8 +333,8 @@ static int ltdb_extended_match(struct ldb_module *module,
const char *oid;
int (*comparator)(struct ldb_val *, struct ldb_val *);
} rules[] = {
- { "1.2.840.113556.1.4.803", comparator_and},
- { "1.2.840.113556.1.4.804", comparator_or}
+ { LDB_OID_COMPARATOR_AND, comparator_and},
+ { LDB_OID_COMPARATOR_OR, comparator_or}
};
int (*comp)(struct ldb_val *, struct ldb_val *) = NULL;
struct ldb_message_element *el;