1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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 commit is contained in:
Simo Sorce 2005-05-12 14:39:03 +00:00 committed by Gerald (Jerry) Carter
parent 8d63cd33a2
commit 5f10707e8a

View File

@ -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