diff options
author | Simo Sorce <idra@samba.org> | 2005-05-12 14:39:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:41 -0500 |
commit | 62ccaf2d86c269acd7fb39bc83793577ab1c05f4 (patch) | |
tree | 39bda9ba700d2500ba1efc6a02e14396d7caa116 /source4/lib/ldb | |
parent | 15a8f0ff0ad6104505f5275a901cf0cf8eb8f9b9 (diff) | |
download | samba-62ccaf2d86c269acd7fb39bc83793577ab1c05f4.tar.gz samba-62ccaf2d86c269acd7fb39bc83793577ab1c05f4.tar.bz2 samba-62ccaf2d86c269acd7fb39bc83793577ab1c05f4.zip |
r6759: let us have a wildcard attribute so that we can set a default for all attributes
example:
*: CASE_INSENSITIVE
by placing it in the @ATTRIBUTES object you make all the matching be case insensitive
to make an excepion to the general rule now you just need to create an entry like:
name: CASE_SENSITIVE
the key CASE_SENSITIVE currently does not exist but has the effect of making the code
ignore the wildcard default flag and being ldb case sensitive by default it let the
"name" attribute be case sensitive again
Tridge, can you look at this commit?
Should we introduce a CASE_SENSITVE/BINARY flag and handle it in the code ?
Simo.
(This used to be commit 5f10707e8ac36db03f3aa3e1ee1c40a9d9da2016)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_cache.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_cache.c b/source4/lib/ldb/ldb_tdb/ldb_cache.c index 8cc6616d52..ec22aca3ec 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_cache.c +++ b/source4/lib/ldb/ldb_tdb/ldb_cache.c @@ -272,7 +272,13 @@ int ltdb_attribute_flags(struct ldb_module *module, const char *attr_name) attrs = ldb_msg_find_string(ltdb->cache->attributes, attr_name, NULL); if (!attrs) { - return ret; + + /* check if theres a wildcard attribute */ + attrs = ldb_msg_find_string(ltdb->cache->attributes, "*", NULL); + + if (!attrs) { + return ret; + } } /* we avoid using strtok and friends due to their nasty |