summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-18 07:41:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:36 -0500
commitfe1d56dd3bc901e7dcba8e7d013bfbc47f4a4ea8 (patch)
treec5da146b162e855814b7bc75df92ac4aacac39ea /source4/lib
parent2ad24b9ba191ed9d2b77dbf3f667504e05bc9707 (diff)
downloadsamba-fe1d56dd3bc901e7dcba8e7d013bfbc47f4a4ea8.tar.gz
samba-fe1d56dd3bc901e7dcba8e7d013bfbc47f4a4ea8.tar.bz2
samba-fe1d56dd3bc901e7dcba8e7d013bfbc47f4a4ea8.zip
r22989: allow '@foo' attributes searchable as we allow '@foo' attributes
in all other places too... metze (This used to be commit 4e32aafb9ebdcc70966aaa2e3891ec9a0959535d)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb_parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c
index b0baaa2f7b..4f608eed39 100644
--- a/source4/lib/ldb/common/ldb_parse.c
+++ b/source4/lib/ldb/common/ldb_parse.c
@@ -264,6 +264,10 @@ static enum ldb_parse_op ldb_parse_filtertype(void *mem_ctx, char **type, char *
/* retrieve attributetype name */
t = p;
+ if (*p == '@') { /* for internal attributes the first char can be @ */
+ p++;
+ }
+
while ((isascii(*p) && isalnum((unsigned char)*p)) || (*p == '-')) { /* attribute names can only be alphanums */
p++;
}